You've already forked AstralRinth
forked from didirus/AstralRinth
* now utilizing tracing better * better tracing * fix mac vs pc oppositional env var issue * modified loading package * added droppable loadingbarid that sends completion message * loading bar * regressed bug on mac * fixed non-updated loading bar on playground * Loading bar improvements --------- Co-authored-by: Jai A <jaiagr+gpg@pm.me>
17 lines
592 B
JavaScript
17 lines
592 B
JavaScript
/**
|
|
* All theseus API calls return serialized values (both return values and errors);
|
|
* So, for example, addDefaultInstance creates a blank Profile object, where the Rust struct is serialized,
|
|
* and deserialized into a usable JS object.
|
|
*/
|
|
import { invoke } from '@tauri-apps/api/tauri'
|
|
|
|
// Installs pack from a version ID
|
|
export async function install(versionId, packTitle) {
|
|
return await invoke('pack_install_version_id', { versionId, packTitle })
|
|
}
|
|
|
|
// Installs pack from a path
|
|
export async function install_from_file(path) {
|
|
return await invoke('pack_install_file', { path })
|
|
}
|