Skip to content

Commit f66bc1e

Browse files
committed
release: v1.0.12
1 parent 00721de commit f66bc1e

7 files changed

Lines changed: 19 additions & 25 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tauri-app",
33
"private": true,
4-
"version": "1.0.11",
4+
"version": "1.0.12",
55
"homepage": "https://holdon1996.github.io/dev-stack/",
66
"type": "module",
77
"scripts": {

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tauri-app"
3-
version = "1.0.11"
3+
version = "1.0.12"
44
description = "A Tauri App"
55
authors = ["you"]
66
edition = "2021"

src-tauri/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,10 @@ fn launch_downloaded_update_installer(installer_path: &Path) -> Result<(), Strin
593593
}
594594
"exe" => {
595595
Command::new(installer_path)
596-
.arg("/S")
596+
// Tauri's NSIS installer can relaunch the app after a silent install
597+
// when the `/R` flag is present. Without it, the updated app installs
598+
// successfully but stays closed after the current process exits.
599+
.args(["/S", "/R"])
597600
.creation_flags(CREATE_NO_WINDOW)
598601
.spawn()
599602
.map_err(|e| e.to_string())?;

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "DevStack",
4-
"version": "1.0.11",
4+
"version": "1.0.12",
55
"identifier": "com.devstack.desktop",
66
"build": {
77
"beforeDevCommand": "npm run dev",

src/components/PageSettings.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ const PageSettings = () => {
154154
};
155155

156156
const publishedAtLabel = formatReleaseDate(appUpdate.publishedAt);
157+
const formattedReleaseNotes = React.useMemo(() => {
158+
if (!appUpdate.notes) return '';
159+
160+
return appUpdate.notes
161+
.replace(/\*\*(.*?)\*\*/g, '$1')
162+
.replace(/^-\s+/gm, '• ');
163+
}, [appUpdate.notes]);
157164

158165
return (
159166
<div className="flex-1 flex flex-col overflow-y-auto">
@@ -313,11 +320,11 @@ const PageSettings = () => {
313320
</div>
314321
) : null}
315322

316-
{appUpdate.notes ? (
323+
{formattedReleaseNotes ? (
317324
<div className="bg-panel/50 border border-border rounded-2xl p-4">
318325
<div className="text-[11px] text-muted uppercase tracking-[0.08em] mb-2">{t('releaseNotes')}</div>
319326
<div className="text-[12px] text-textDim whitespace-pre-wrap max-h-44 overflow-y-auto leading-relaxed">
320-
{appUpdate.notes}
327+
{formattedReleaseNotes}
321328
</div>
322329
</div>
323330
) : null}

src/components/Sidebar.jsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
import React from 'react';
22
import { useStore } from '../store';
3-
import { getVersion } from '@tauri-apps/api/app';
3+
import packageJson from '../../package.json';
44
import { Layout, Globe, Database, Code, FileText, Settings, Radio, FileCode, Server, Boxes } from 'lucide-react';
55

66
const Sidebar = () => {
77
const { activePage, setActivePage, systemStats, t } = useStore();
8-
const [appVersion, setAppVersion] = React.useState('...');
9-
10-
React.useEffect(() => {
11-
let mounted = true;
12-
13-
getVersion()
14-
.then((version) => {
15-
if (mounted) setAppVersion(version);
16-
})
17-
.catch(() => {
18-
if (mounted) setAppVersion('unknown');
19-
});
20-
21-
return () => {
22-
mounted = false;
23-
};
24-
}, []);
8+
const appVersion = packageJson.version || 'unknown';
259

2610
const navItems = [
2711
{ id: 'services', label: t('services'), icon: Layout },

0 commit comments

Comments
 (0)