Skip to content

Commit c37d8df

Browse files
Bump version to 1.1.0 in Cargo files and fix MacOS build not opening error. (#659)
1 parent 8dbc960 commit c37d8df

File tree

6 files changed

+23
-17
lines changed

6 files changed

+23
-17
lines changed

.github/workflows/pr-check-build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ jobs:
4242
cd frontend
4343
npm install
4444
45-
- name: cache cargo registry and build
46-
uses: actions/cache@v3
47-
with:
48-
path: |
49-
frontend/src-tauri/target
50-
~/.cargo/registry
51-
~/.cargo/git
52-
key: ${{ runner.os }}-cargo-${{ hashFiles('frontend/src-tauri/Cargo.lock', 'frontend/src-tauri/Cargo.toml') }}
53-
restore-keys: |
54-
${{ runner.os }}-cargo-
45+
# - name: cache cargo registry and build
46+
# uses: actions/cache@v3
47+
# with:
48+
# path: |
49+
# frontend/src-tauri/target
50+
# ~/.cargo/registry
51+
# ~/.cargo/git
52+
# key: ${{ runner.os }}-cargo-${{ hashFiles('frontend/src-tauri/Cargo.lock') }}
53+
# restore-keys: |
54+
# ${{ runner.os }}-cargo-
5555

5656
- uses: tauri-apps/tauri-action@v0
5757
env:

frontend/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.

frontend/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 = "picto_py"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
description = "An Image sorter that sorts photos based on face encodings in it."
55
authors = ["you"]
66
edition = "2021"

frontend/src-tauri/Entitlements.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>com.apple.security.app-sandbox</key>
6-
<true/>
75
</dict>
86
</plist>

frontend/src-tauri/tauri.conf.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
}
3232
},
3333
"productName": "PictoPy",
34-
"version": "1.0.0",
35-
"identifier": "com.yourcompany.pictopy",
34+
"identifier": "org.aossie.pictopy",
3635
"plugins": {
3736
"fs": {
3837
"requireLiteralLeadingDot": true

frontend/src/components/Navigation/Sidebar/AppSidebar.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,18 @@ import {
1919
} from 'lucide-react';
2020
import { useLocation, Link } from 'react-router';
2121
import { ROUTES } from '@/constants/routes';
22+
import { getVersion } from '@tauri-apps/api/app';
23+
import { useEffect, useState } from 'react';
2224

2325
export function AppSidebar() {
2426
const location = useLocation();
27+
const [version, setVersion] = useState<string>('1.0.0');
28+
29+
useEffect(() => {
30+
getVersion().then((version) => {
31+
setVersion(version);
32+
});
33+
}, []);
2534

2635
const isActive = (path: string) => {
2736
// Remove leading slash from both paths for comparison
@@ -77,7 +86,7 @@ export function AppSidebar() {
7786
</SidebarContent>
7887
<SidebarFooter className="border-border/40 mt-auto border-t py-4">
7988
<div className="text-muted-foreground space-y-1 px-4 text-xs">
80-
<div className="font-medium">PictoPy v1.0.0</div>
89+
<div className="font-medium">PictoPy v{version}</div>
8190
<div>© 2025 PictoPy</div>
8291
</div>
8392
</SidebarFooter>

0 commit comments

Comments
 (0)