Skip to content

Commit 4702957

Browse files
authored
Merge pull request #53 from SystemVll/dev
[v0.1.5] Cross-Platform Improvements (MacOS, Linux)
2 parents 35e6484 + ca77192 commit 4702957

12 files changed

Lines changed: 1458 additions & 1343 deletions

File tree

.github/workflows/publish-bun.yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
name: 📦 Publish Tauri App (with Bun)
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
name: Build & Release
11+
permissions:
12+
contents: write
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- platform: ubuntu-22.04
18+
- platform: windows-latest
19+
- platform: macos-latest
20+
21+
runs-on: ${{ matrix.platform }}
22+
23+
steps:
24+
# 1) Checkout
25+
- name: 🚀 Checkout repo
26+
uses: actions/checkout@v4
27+
28+
# 2) Install Bun
29+
- name: 🍪 Setup Bun
30+
uses: oven-sh/setup-bun@v2
31+
with:
32+
bun-version: "latest"
33+
34+
# 3) Install JS deps with Bun
35+
- name: 📦 Install frontend deps
36+
run: bun install
37+
38+
# 4) Install Rustup
39+
- name: 🦀 Install Rustup
40+
shell: bash
41+
run: |
42+
if [[ "$RUNNER_OS" == "Windows" ]]; then
43+
curl -sSf https://win.rustup.rs/x86_64 -o rustup-init.exe
44+
./rustup-init.exe -y --default-toolchain stable
45+
echo "$USERPROFILE/.cargo/bin" >> $GITHUB_PATH
46+
else
47+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
48+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
49+
fi
50+
51+
# 5) Cache Rust dependencies
52+
- name: 📦 Cache Rust
53+
uses: Swatinem/rust-cache@v2
54+
with:
55+
workspaces: src-tauri
56+
57+
# 6) Linux-specific deps for webview bundling
58+
- name: 📥 Install Linux deps
59+
if: matrix.platform == 'ubuntu-22.04'
60+
run: |
61+
sudo apt-get update
62+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
63+
64+
# 7) Build frontend
65+
- name: 🛠 Build frontend
66+
run: bun run build
67+
68+
# 8) Build Tauri app
69+
- name: 📦 Build Tauri
70+
run: |
71+
cd src-tauri
72+
cargo build --release
73+
74+
# 9) Package artifacts
75+
- name: 📦 Package artifacts
76+
shell: bash
77+
run: |
78+
mkdir -p artifacts
79+
if [[ "$RUNNER_OS" == "Windows" ]]; then
80+
cp src-tauri/target/release/tauth.exe artifacts/TAuth-${{ github.ref_name }}-windows.exe
81+
elif [[ "$RUNNER_OS" == "macOS" ]]; then
82+
cp src-tauri/target/release/tauth artifacts/TAuth-${{ github.ref_name }}-macos
83+
else
84+
cp src-tauri/target/release/tauth artifacts/TAuth-${{ github.ref_name }}-linux
85+
fi
86+
87+
# 10) Upload artifacts
88+
- name: 📤 Upload artifacts
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: TAuth-${{ matrix.platform }}
92+
path: artifacts/*
93+
94+
release:
95+
name: Create Release
96+
needs: build
97+
runs-on: ubuntu-latest
98+
permissions:
99+
contents: write
100+
steps:
101+
# 1) Download all artifacts
102+
- name: 📥 Download artifacts
103+
uses: actions/download-artifact@v4
104+
with:
105+
path: artifacts
106+
107+
# 2) Flatten artifacts into single directory
108+
- name: 📦 Flatten artifacts
109+
shell: bash
110+
run: |
111+
mkdir -p release-files
112+
find artifacts -type f -exec cp {} release-files/ \;
113+
114+
# 3) Create GitHub Release
115+
- name: 🚀 Create Release
116+
uses: softprops/action-gh-release@v1
117+
with:
118+
tag_name: ${{ github.ref_name }}
119+
name: 📦 TAuth ${{ github.ref_name }}
120+
body: Tauri build via Bun
121+
draft: false
122+
prerelease: false
123+
files: release-files/*
124+

.vscode/extensions.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

bun.lock

Lines changed: 214 additions & 123 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,43 @@
99
"tauri": "tauri"
1010
},
1111
"dependencies": {
12-
"@hookform/resolvers": "^5.0.1",
13-
"@radix-ui/react-dialog": "^1.1.11",
14-
"@radix-ui/react-dropdown-menu": "^2.1.12",
15-
"@radix-ui/react-label": "^2.1.4",
16-
"@radix-ui/react-popover": "^1.1.11",
17-
"@radix-ui/react-scroll-area": "^1.2.6",
18-
"@radix-ui/react-separator": "^1.1.6",
19-
"@radix-ui/react-slot": "^1.2.0",
20-
"@radix-ui/react-tabs": "^1.1.9",
21-
"@tailwindcss/postcss": "^4.1.5",
22-
"@tanstack/react-query": "^5.75.0",
23-
"@tauri-apps/api": "^2.5.0",
24-
"@tauri-apps/plugin-opener": "^2.2.6",
12+
"@hookform/resolvers": "^5.2.2",
13+
"@radix-ui/react-dialog": "^1.1.15",
14+
"@radix-ui/react-dropdown-menu": "^2.1.16",
15+
"@radix-ui/react-label": "^2.1.8",
16+
"@radix-ui/react-popover": "^1.1.15",
17+
"@radix-ui/react-scroll-area": "^1.2.10",
18+
"@radix-ui/react-separator": "^1.1.8",
19+
"@radix-ui/react-slot": "^1.2.4",
20+
"@radix-ui/react-tabs": "^1.1.13",
21+
"@tailwindcss/postcss": "^4.1.18",
22+
"@tanstack/react-query": "^5.90.20",
23+
"@tauri-apps/api": "^2.10.1",
24+
"@tauri-apps/plugin-opener": "^2.5.3",
2525
"class-variance-authority": "^0.7.1",
2626
"clsx": "^2.1.1",
2727
"cmdk": "^1.1.1",
28-
"framer-motion": "^12.9.4",
28+
"framer-motion": "^12.33.0",
2929
"lucide-react": "^0.503.0",
30-
"react": "^19.1.0",
31-
"react-dom": "^19.1.0",
32-
"react-hook-form": "^7.56.1",
33-
"react-router-dom": "^7.5.3",
34-
"tailwind-merge": "^3.2.0",
30+
"react": "^19.2.4",
31+
"react-dom": "^19.2.4",
32+
"react-hook-form": "^7.71.1",
33+
"react-router-dom": "^7.13.0",
34+
"tailwind-merge": "^3.4.0",
3535
"tailwindcss-animate": "^1.0.7",
3636
"vaul": "^1.1.2",
37-
"zod": "^3.24.3"
37+
"zod": "^3.25.76"
3838
},
3939
"devDependencies": {
40-
"@tauri-apps/cli": "^2.5.0",
41-
"@types/node": "^22.15.3",
42-
"@types/react": "^19.1.2",
43-
"@types/react-dom": "^19.1.3",
44-
"@vitejs/plugin-react": "^4.4.1",
45-
"autoprefixer": "^10.4.21",
46-
"postcss": "^8.5.3",
47-
"tailwindcss": "^3.4.17",
48-
"typescript": "^5.8.3",
49-
"vite": "^6.3.4"
40+
"@tauri-apps/cli": "^2.10.0",
41+
"@types/node": "^22.19.9",
42+
"@types/react": "^19.2.13",
43+
"@types/react-dom": "^19.2.3",
44+
"@vitejs/plugin-react": "^4.7.0",
45+
"autoprefixer": "^10.4.24",
46+
"postcss": "^8.5.6",
47+
"tailwindcss": "^3.4.19",
48+
"typescript": "^5.9.3",
49+
"vite": "^6.4.1"
5050
}
5151
}

0 commit comments

Comments
 (0)