diff options
Diffstat (limited to 'src-vue/src/views')
-rw-r--r-- | src-vue/src/views/DeveloperView.vue | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index 59c7927f..aa682095 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -31,6 +31,10 @@ Launch Northstar via Steam </el-button> + <el-button type="primary" @click="installLauncherGitMain"> + Install launcher from main branch + </el-button> + <br /> <br /> @@ -243,6 +247,23 @@ export default defineComponent({ showErrorNotification(error); }); }, + async installLauncherGitMain() { + + const notification = showNotification(`Installing git main`, 'Please wait', 'info', 0); + + await invoke<string>("install_git_main", { gameInstallPath: this.$store.state.game_path }) + .then((message) => { + this.release_notes_text = message; + showNotification("Done", `Installed launcher build from ${message}`); + }) + .catch((error) => { + showErrorNotification(error); + }) + .finally(() => { + // Clear old notification + notification.close(); + }); + }, async getAvailableNorthstarVersions() { await invoke<NorthstarThunderstoreReleaseWrapper[]>("get_available_northstar_versions") .then((message) => { |