Skip to content

Commit

Permalink
fix: Install selected release canal
Browse files Browse the repository at this point in the history
Use selected release canal for install/update instead of hardcoding to
main release.
  • Loading branch information
GeckoEidechse committed Oct 4, 2022
1 parent 4c812b8 commit 3ae2574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-vue/src/plugins/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const store = createStore<FlightCoreStore>({
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) => {
Expand All @@ -81,7 +81,7 @@ export const store = createStore<FlightCoreStore>({
// 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) => {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3ae2574

Please sign in to comment.