Skip to content

Commit 4dfce73

Browse files
committed
chore(release): v2.1.1
1 parent 625c790 commit 4dfce73

13 files changed

Lines changed: 85 additions & 34 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
}
4848
4949
- name: Build and Publish Tauri Application
50-
uses: tauri-apps/tauri-action@v0
50+
uses: tauri-apps/tauri-action@v1.0.0
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
@@ -58,4 +58,4 @@ jobs:
5858
releaseBody: 'See release details for Checkpoint ${{ github.ref_name }}.'
5959
releaseDraft: false
6060
prerelease: false
61-
includeUpdaterJson: true
61+
uploadUpdaterJson: true

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "checkpoint",
33
"private": true,
4-
"version": "2.1.0",
4+
"version": "2.1.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

‎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 = "nodra-vault"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
description = "High-density offline freelance ledger for gaming boosters, devs, and creators"
55
authors = ["Nodra"]
66
edition = "2021"

‎src-tauri/capabilities/default.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"windows": ["main"],
66
"permissions": [
77
"core:default",
8+
"core:app:default",
89
"core:event:default",
910
"core:window:allow-minimize",
1011
"core:window:allow-toggle-maximize",

‎src-tauri/tauri.conf.json‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "CHECKPOINT",
4-
"version": "2.1.0",
4+
"version": "2.1.1",
55
"identifier": "com.checkpoint.app",
66
"build": {
77
"beforeDevCommand": "npm run dev",
@@ -33,7 +33,10 @@
3333
},
3434
"bundle": {
3535
"active": true,
36-
"targets": ["nsis", "msi"],
36+
"targets": [
37+
"nsis",
38+
"msi"
39+
],
3740
"icon": [
3841
"icons/32x32.png",
3942
"icons/128x128.png",
@@ -49,7 +52,7 @@
4952
},
5053
"plugins": {
5154
"updater": {
52-
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDk4NzZENjhDQjk2NjA3RDkKUldUVlZkU3l6T3R0Njh5M2d3d3h5ZlJldkV1UW9zZml2TTV2ZlhqQ3BvS1QxVnB4V1N4YmR0K1AK",
55+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDZCOUJDRkY0MENCODVEODgKUldTSVhiZ005TStiYXh1M0hpb0ZjNjhGejNwaDl2K3c3WUlJVUJudmErcTVGNHpja0RoaFF5c0oK",
5356
"endpoints": [
5457
"https://github.com/vltmk/Checkpoint/releases/latest/download/latest.json"
5558
]

‎src/App.jsx‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Button } from './components/ui/Button';
2020
import { Toast } from './components/ui/Toast';
2121
import { motion, AnimatePresence } from 'motion/react';
2222
import { FileSpreadsheet, Download } from 'lucide-react';
23-
import { checkForUpdate, CURRENT_APP_VERSION } from './lib/updater';
23+
import { checkForUpdate, getAppVersion } from './lib/updater';
2424
import { fetchAnnouncements, resetAnnouncementState } from './lib/announcements';
2525
import {
2626
getStoredNotifications,
@@ -44,6 +44,7 @@ import {
4444

4545
export default function App() {
4646
const isDesktop = isTauri();
47+
const [appVersion, setAppVersion] = useState('');
4748
const [entries, setEntries] = useState([]);
4849
const [isLoading, setIsLoading] = useState(true);
4950

@@ -169,6 +170,11 @@ export default function App() {
169170
const loadData = useCallback(async () => {
170171
const startTime = Date.now();
171172
try {
173+
// Hydrate runtime app version asynchronously
174+
getAppVersion().then((v) => {
175+
if (v) setAppVersion(v);
176+
});
177+
172178
await trackerDB.seedInitialDataIfEmpty();
173179
const all = await trackerDB.getAllEntries();
174180
setEntries(all);
@@ -245,7 +251,7 @@ export default function App() {
245251
if (res?.error) {
246252
showToast('Unable to connect to update server', { variant: 'destructive' });
247253
} else {
248-
showToast(`Checkpoint is up to date (v${CURRENT_APP_VERSION})`);
254+
showToast(`Checkpoint is up to date${res?.currentVersion ? ` (v${res.currentVersion})` : ''}`);
249255
}
250256
}
251257
}
@@ -347,7 +353,7 @@ export default function App() {
347353
} else if (res?.error) {
348354
showToast('Unable to connect to update server', { variant: 'destructive' });
349355
} else {
350-
showToast(`Checkpoint is up to date (v${CURRENT_APP_VERSION})`);
356+
showToast(`Checkpoint is up to date${(res?.currentVersion || appVersion) ? ` (v${res?.currentVersion || appVersion})` : ''}`);
351357
}
352358
};
353359

@@ -676,7 +682,7 @@ export default function App() {
676682

677683
const backupData = {
678684
app: 'CHECKPOINT',
679-
version: '2.1.0',
685+
version: appVersion || '0.0.0',
680686
exportDate: new Date().toISOString(),
681687
currency: globalCurrency,
682688
goldRateTOMAN,
@@ -900,7 +906,7 @@ export default function App() {
900906
onOpenSettings={() => setIsSettingsOpen(true)}
901907
onOpenShortcuts={() => setIsShortcutsOpen(true)}
902908
entriesCount={entries.length}
903-
appVersion={CURRENT_APP_VERSION}
909+
appVersion={appVersion}
904910
updateInfo={updateInfo}
905911
onOpenUpdateModal={() => setIsUpdateModalOpen(true)}
906912
unreadNotificationsCount={unreadNotificationsCount}
@@ -911,6 +917,7 @@ export default function App() {
911917
{!isDesktop && (
912918
<MobileHeader
913919
globalCurrency={globalCurrency}
920+
appVersion={appVersion}
914921
onOpenSettings={() => setIsSettingsOpen(true)}
915922
onOpenWorkModal={handleOpenWorkModal}
916923
onOpenQuickAdd={() => setIsQuickAddOpen(true)}
@@ -1052,7 +1059,7 @@ export default function App() {
10521059
onClearAllData={handleClearAllData}
10531060
onToast={showToast}
10541061
entriesCount={entries.length}
1055-
appVersion={CURRENT_APP_VERSION}
1062+
appVersion={appVersion}
10561063
updateInfo={updateInfo}
10571064
onCheckUpdates={handleCheckUpdates}
10581065
isCheckingUpdates={isCheckingUpdates}

‎src/components/MobileNavigation.jsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export function MobileHeader({
1313
onOpenSettings,
1414
onOpenWorkModal,
1515
onOpenQuickAdd,
16+
appVersion = '',
1617
}) {
1718
return (
1819
<header className="md:hidden sticky top-0 z-40 w-full bg-zinc-950/95 border-b border-zinc-800/80 px-4 py-2.5 flex items-center justify-between safe-top">
@@ -26,9 +27,11 @@ export function MobileHeader({
2627
<span className="text-sm font-black tracking-wider text-white uppercase">
2728
CHECKPOINT
2829
</span>
29-
<span className="text-[9px] font-mono font-medium px-1 py-0.2 rounded bg-zinc-900 border border-zinc-800 text-zinc-400">
30-
v2.1.0
31-
</span>
30+
{appVersion && (
31+
<span className="text-[9px] font-mono font-medium px-1 py-0.2 rounded bg-zinc-900 border border-zinc-800 text-zinc-400">
32+
v{appVersion}
33+
</span>
34+
)}
3235
</div>
3336
</div>
3437

‎src/components/Navbar.jsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function Navbar({
4747
onOpenSettings,
4848
onOpenShortcuts,
4949
entriesCount = 0,
50-
appVersion = '2.1.0',
50+
appVersion = '',
5151
updateInfo = null,
5252
onOpenUpdateModal,
5353
unreadNotificationsCount = 0,
@@ -168,9 +168,11 @@ export function Navbar({
168168
<span className="text-xs font-black tracking-wider text-white pointer-events-none uppercase">
169169
CHECKPOINT
170170
</span>
171-
<span className="hidden xl:inline-block text-[10px] text-zinc-500 font-mono px-1.5 py-0.2 rounded bg-zinc-900 border border-zinc-800/80 pointer-events-none">
172-
v{appVersion}
173-
</span>
171+
{appVersion && (
172+
<span className="hidden xl:inline-block text-[10px] text-zinc-500 font-mono px-1.5 py-0.2 rounded bg-zinc-900 border border-zinc-800/80 pointer-events-none">
173+
v{appVersion}
174+
</span>
175+
)}
174176
</div>
175177

176178
<div className="h-4 w-px bg-zinc-800/80 pointer-events-none" />

‎src/components/SettingsModal.jsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function SettingsModal({
4949
onClearAllData,
5050
onToast,
5151
entriesCount = 0,
52-
appVersion = '2.1.0',
52+
appVersion = '',
5353
updateInfo = null,
5454
onCheckUpdates,
5555
isCheckingUpdates = false,
@@ -253,9 +253,11 @@ export function SettingsModal({
253253
<ArrowUpCircle className="w-3.5 h-3.5 text-zinc-400" />
254254
<span>Updates & Announcements</span>
255255
</label>
256-
<span className="text-[10px] font-mono text-zinc-500">
257-
v{appVersion}
258-
</span>
256+
{appVersion && (
257+
<span className="text-[10px] font-mono text-zinc-500">
258+
v{appVersion}
259+
</span>
260+
)}
259261
</div>
260262

261263
<div className="p-2.5 rounded-lg bg-zinc-900/60 border border-zinc-800/80 space-y-2.5">
@@ -269,7 +271,7 @@ export function SettingsModal({
269271
<div className="text-[11px] text-zinc-500">
270272
{updateInfo?.available
271273
? 'A new version is ready for installation.'
272-
: `Running official build v${appVersion}.`}
274+
: `Running official build${appVersion ? ` v${appVersion}` : ''}.`}
273275
</div>
274276
</div>
275277

0 commit comments

Comments
 (0)