From 3ae2574b45b36123fe072bfc32d62fbd683e8976 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Tue, 4 Oct 2022 23:42:15 +0200 Subject: fix: Install selected release canal Use selected release canal for install/update instead of hardcoding to main release. --- src-vue/src/plugins/store.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src-vue/src') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index ccc90b1b..b2106960 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -64,7 +64,7 @@ export const store = createStore({ switch (state.northstar_state) { // Install northstar if it wasn't detected. case NorthstarState.INSTALL: - let install_northstar_result = invoke("install_northstar_caller", { gamePath: state.game_path, northstarPackageName: ReleaseCanal.RELEASE }); + let install_northstar_result = invoke("install_northstar_caller", { gamePath: state.game_path, northstarPackageName: state.release_canal }); state.northstar_state = NorthstarState.INSTALLING; await install_northstar_result.then((message) => { @@ -81,7 +81,7 @@ export const store = createStore({ // Update northstar if it is outdated. case NorthstarState.MUST_UPDATE: // Updating is the same as installing, simply overwrites the existing files - let reinstall_northstar_result = invoke("install_northstar_caller", { gamePath: state.game_path, northstarPackageName: ReleaseCanal.RELEASE }); + let reinstall_northstar_result = invoke("install_northstar_caller", { gamePath: state.game_path, northstarPackageName: state.release_canal }); state.northstar_state = NorthstarState.UPDATING; await reinstall_northstar_result.then((message) => { @@ -190,7 +190,7 @@ async function _get_northstar_version_number(state: any) { state.installed_northstar_version = northstar_version_number; state.northstar_state = NorthstarState.READY_TO_PLAY; - await invoke("check_is_northstar_outdated", { gamePath: state.game_path, northstarPackageName: ReleaseCanal.RELEASE }) + await invoke("check_is_northstar_outdated", { gamePath: state.game_path, northstarPackageName: state.release_canal }) .then((message) => { if (message) { state.northstar_state = NorthstarState.MUST_UPDATE; -- cgit v1.2.3