Skip to content

Commit

Permalink
Merge pull request #166 from Gawdl3y/rel/0.8.2
Browse files Browse the repository at this point in the history
Release version 0.8.2
  • Loading branch information
Gawdl3y authored Feb 29, 2024
2 parents 7551990 + 91c5572 commit 4699487
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/tauri-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "resolute-app"
version = "0.8.1"
version = "0.8.2"
description = "Resolute, a mod manager for Resonite"
authors = ["Schuyler Cebulskie <me@gawdl3y.dev>"]
license = "GPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-app/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"identifier": "dev.gawdl3y.resolute",
"productName": "Resolute",
"version": "0.8.1",
"version": "0.8.2",
"build": {
"beforeDevCommand": "npm run dev",
"beforeBuildCommand": "npm run build",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "resolute",
"private": true,
"version": "0.8.1",
"version": "0.8.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
20 changes: 12 additions & 8 deletions ui/src/components/UpdateDialog.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-dialog v-model="showDialog" persistent scrollable style="max-width: 960px">
<v-card
:title="`Resolute v${update?.version} is available!`"
:title="`Resolute v${newVersion} is available!`"
subtitle="Would you like to install the update now?"
>
<v-card-text>
Expand Down Expand Up @@ -50,7 +50,8 @@ import { renderMarkdown } from '../util';
const notify = useNotifications();
const update = ref(null);
let update = null;
const newVersion = ref('');
const releaseNotes = ref('');
const installingUpdate = ref(false);
const showDialog = ref(false);
Expand All @@ -65,19 +66,21 @@ onMounted(async () => {
async function checkForUpdate() {
// Check for an update
try {
update.value = await tauriCheckUpdate();
if (!update.value) return;
update = await tauriCheckUpdate();
if (!update) return;
info(`App update available (v${update.value.version})`);
console.debug('App update', update.value);
newVersion.value = update.version;
info(`App update available (v${newVersion.value})`);
console.debug('App update', update);
} catch (err) {
error(`Error checking for app updates: ${err}`);
return;
}
// Render the release notes
try {
releaseNotes.value = renderMarkdown(update.value.body);
releaseNotes.value = renderMarkdown(update.body);
} catch (err) {
error(`Error rendering app release notes: ${err}`);
}
Expand All @@ -91,9 +94,10 @@ async function checkForUpdate() {
async function installUpdate() {
try {
installingUpdate.value = true;
await update.value.downloadAndInstall();
await update.downloadAndInstall();
await relaunch();
} catch (err) {
console.error(err);
error(`Error installing app update: ${err}`);
notify.error(
'Error installing update',
Expand Down

0 comments on commit 4699487

Please sign in to comment.