Skip to content

Commit 9bd6e1b

Browse files
Merge pull request #97 from lordaimer/feature/auto-update
feat(updater): add updater system via tauri-plugin-updater
2 parents 6b414e1 + dd26d60 commit 9bd6e1b

File tree

9 files changed

+295
-57
lines changed

9 files changed

+295
-57
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
with:
3030
node-version: lts/*
3131

32+
- name: Set Rust toolchain
33+
shell: bash
34+
run: echo "toolchain=stable" >> $GITHUB_ENV
35+
3236
- name: install Rust stable
3337
uses: dtolnay/rust-toolchain@stable
3438
with:
@@ -114,7 +118,7 @@ jobs:
114118
git fetch --tags --force --prune origin
115119
116120
CURRENT_TAG="${{ github.ref_name }}"
117-
PREVIOUS_TAG=$(git tag --sort=-v:refname | grep -v "^${CURRENT_TAG}$" | head -n 1)
121+
PREVIOUS_TAG=$(git tag --sort=-v:refname | grep -v "^${CURRENT_TAG}$" | head -n 1 || true)
118122
119123
if [ -z "$PREVIOUS_TAG" ]; then
120124
echo "No previous tag found, showing all commits"
@@ -157,6 +161,9 @@ jobs:
157161
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
158162
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
159163
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
164+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
165+
TAURI_SIGNING_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_KEY_PASSWORD }}
166+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
160167
with:
161168
projectPath: ./src-tauri
162169
tagName: ${{ github.ref_name }}

package.json

Lines changed: 51 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
11
{
2-
"name": "AltSendme",
3-
"private": true,
4-
"version": "0.3.0",
5-
"type": "module",
6-
"scripts": {
7-
"app:dev": "npx tauri dev",
8-
"app:build": "npx tauri build",
9-
"dev": "vite",
10-
"build": "tsc -b && vite build",
11-
"preview": "vite preview",
12-
"release": "node ./scripts/release.js",
13-
"sync-version": "node ./scripts/sync-version.js",
14-
"validate-version": "node ./scripts/validate-version.js",
15-
"lint": "biome lint && tsc --noEmit --skipLibCheck",
16-
"lint:fix": "biome lint --fix",
17-
"format": "biome format --write"
18-
},
19-
"dependencies": {
20-
"@base-ui/react": "^1.1.0",
21-
"@radix-ui/react-alert-dialog": "^1.1.15",
22-
"@tauri-apps/api": "^2.0.0",
23-
"@tauri-apps/cli": "^2.9.6",
24-
"@tauri-apps/plugin-dialog": "^2.0.0",
25-
"@tauri-apps/plugin-opener": "^2.5.2",
26-
"class-variance-authority": "^0.7.1",
27-
"clsx": "^2.1.1",
28-
"framer-motion": "^12.23.24",
29-
"lottie-react": "^2.4.1",
30-
"lucide-react": "^0.292.0",
31-
"react": "^18.2.0",
32-
"react-dom": "^18.2.0",
33-
"react-dropzone": "^14.3.8",
34-
"react-router-dom": "^7.12.0",
35-
"tailwind-merge": "^3.4.0",
36-
"zustand": "^5.0.10"
37-
},
38-
"devDependencies": {
39-
"@biomejs/biome": "^2.3.11",
40-
"@tailwindcss/postcss": "^4.1.18",
41-
"@types/node": "^20.0.0",
42-
"@types/react": "^18.2.0",
43-
"@types/react-dom": "^18.2.0",
44-
"@vitejs/plugin-react": "^4.0.0",
45-
"postcss": "^8.0.0",
46-
"tailwindcss": "^4.1.18",
47-
"tw-animate-css": "^1.4.0",
48-
"typescript": "^5.0.0",
49-
"vite": "^4.4.0"
50-
}
2+
"name": "AltSendme",
3+
"private": true,
4+
"version": "0.3.0",
5+
"type": "module",
6+
"scripts": {
7+
"app:dev": "npx tauri dev",
8+
"app:build": "npx tauri build",
9+
"dev": "vite",
10+
"build": "tsc -b && vite build",
11+
"preview": "vite preview",
12+
"release": "node ./scripts/release.js",
13+
"sync-version": "node ./scripts/sync-version.js",
14+
"validate-version": "node ./scripts/validate-version.js",
15+
"lint": "biome lint && tsc --noEmit --skipLibCheck",
16+
"lint:fix": "biome lint --fix",
17+
"format": "biome format --write"
18+
},
19+
"dependencies": {
20+
"@base-ui/react": "^1.1.0",
21+
"@radix-ui/react-alert-dialog": "^1.1.15",
22+
"@tauri-apps/api": "^2.0.0",
23+
"@tauri-apps/cli": "^2.9.6",
24+
"@tauri-apps/plugin-dialog": "^2.0.0",
25+
"@tauri-apps/plugin-opener": "^2.5.2",
26+
"@tauri-apps/plugin-process": "^2.3.1",
27+
"@tauri-apps/plugin-updater": "^2.9.0",
28+
"class-variance-authority": "^0.7.1",
29+
"clsx": "^2.1.1",
30+
"framer-motion": "^12.23.24",
31+
"lottie-react": "^2.4.1",
32+
"lucide-react": "^0.292.0",
33+
"react": "^18.2.0",
34+
"react-dom": "^18.2.0",
35+
"react-dropzone": "^14.3.8",
36+
"react-router-dom": "^7.12.0",
37+
"tailwind-merge": "^3.4.0",
38+
"zustand": "^5.0.10"
39+
},
40+
"devDependencies": {
41+
"@biomejs/biome": "^2.3.11",
42+
"@tailwindcss/postcss": "^4.1.18",
43+
"@types/node": "^20.0.0",
44+
"@types/react": "^18.2.0",
45+
"@types/react-dom": "^18.2.0",
46+
"@vitejs/plugin-react": "^4.0.0",
47+
"postcss": "^8.0.0",
48+
"tailwindcss": "^4.1.18",
49+
"tw-animate-css": "^1.4.0",
50+
"typescript": "^5.0.0",
51+
"vite": "^4.4.0"
52+
}
5153
}

src-tauri/Cargo.lock

Lines changed: 141 additions & 2 deletions
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ sendme = { path = "../sendme" }
2828
tracing = "0.1"
2929
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
3030
walkdir = "2.4"
31+
tauri-plugin-updater = "2.9.0"
3132

3233
[features]
3334
default = ["custom-protocol"]

0 commit comments

Comments
 (0)