Skip to content

Commit

Permalink
feat: tauri v1 & build on 20.04 (#24)
Browse files Browse the repository at this point in the history
Support older system.
Also fix cache for tauri.

Signed-off-by: Martichou <[email protected]>
  • Loading branch information
Martichou authored Mar 3, 2024
1 parent 783d443 commit 5516783
Show file tree
Hide file tree
Showing 11 changed files with 980 additions and 999 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
cargo build
build-tauri:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: build-core
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-directories: "${{ github.workspace }}/frontend/src-tauri/target"
- uses: arduino/setup-protoc@v3
- uses: pnpm/action-setup@v2
with:
Expand All @@ -48,7 +50,10 @@ jobs:
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libjavascriptcoregtk-4.1-dev libdbus-1-dev libgtk-4-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt-get install -y libdbus-1-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: GLIBC version
run: |
ldd --version
- name: Build Vite + Tauri
run: |
cd ./frontend
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-directories: "${{ github.workspace }}/${{ matrix.directory }}/target"
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Install dependencies
Expand All @@ -66,7 +68,7 @@ jobs:
- name: Install Linux dependencies
if: matrix.directory == './frontend/src-tauri'
run: |
sudo apt-get install -y libjavascriptcoregtk-4.1-dev libdbus-1-dev libgtk-4-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Clippy Check
run: |
cd ${{ matrix.directory }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ on:

jobs:
build-release:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-directories: "${{ github.workspace }}/frontend/src-tauri/target"
- uses: arduino/setup-protoc@v3
- uses: pnpm/action-setup@v2
with:
Expand All @@ -28,7 +30,7 @@ jobs:
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libjavascriptcoregtk-4.1-dev libdbus-1-dev libgtk-4-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt-get install -y libdbus-1-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Build Vite + Tauri
run: |
cd ./frontend
Expand Down
10 changes: 4 additions & 6 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "rquickshare",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "cross-env RUST_BACKTRACE=1 concurrently -k \"tauri dev\" \"pnpm devtools\"",
Expand All @@ -19,16 +18,15 @@
},
"dependencies": {
"@martichou/core_lib": "../core_lib",
"@tauri-apps/api": "2.0.0-beta.3",
"@tauri-apps/plugin-autostart": "2.0.0-beta.1",
"@tauri-apps/plugin-notification": "2.0.0-beta.1",
"@tauri-apps/plugin-store": "2.0.0-beta.1",
"@tauri-apps/api": "1.5.1",
"tauri-plugin-autostart-api": "github:tauri-apps/tauri-plugin-autostart#v1",
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store#v1",
"vue": "3.3.11"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^1.6.2",
"@tailwindcss/typography": "^0.5.10",
"@tauri-apps/cli": "2.0.0-beta.6",
"@tauri-apps/cli": "1.5.7",
"@types/node": "20.10.4",
"@vitejs/plugin-vue": "4.5.2",
"@vue/devtools": "6.5.1",
Expand Down
135 changes: 65 additions & 70 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5516783

Please sign in to comment.