@@ -32,16 +32,19 @@ jobs:
3232 run : |
3333 sudo apt-get update
3434 sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
35+ # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
36+ # You can remove the one that doesn't apply to your app to speed up the workflow a bit.
3537
3638 - name : setup node
3739 uses : actions/setup-node@v4
3840 with :
3941 node-version : lts/*
40- cache : " npm"
42+ cache : " npm" # Set this to npm, yarn or pnpm.
4143
4244 - name : install Rust stable
4345 uses : dtolnay/rust-toolchain@stable
4446 with :
47+ # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
4548 targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4649
4750 - name : Rust cache
@@ -50,66 +53,39 @@ jobs:
5053 workspaces : " ./src-tauri -> target"
5154
5255 - name : install frontend dependencies
53- run : npm install
54-
55- - name : Build Tauri app
56- run : npm run tauri build -- ${{ matrix.args }}
57-
58- - name : Get list of build artifacts
59- id : list-artifacts
60- run : |
61- artifacts=$(ls src-tauri/target/release/bundle/*/*)
62- echo "artifacts=$artifacts" >> $GITHUB_ENV
63-
64- - name : Create Release Body
65- id : create-release-body
66- run : |
67- body="## Download Links\n\n"
68- for artifact in ${{ env.artifacts }}; do
69- filename=$(basename $artifact)
70- case $filename in
71- *aarch64.dmg)
72- body="$body### macOS (Apple Silicon, M1 and above)\n- [$filename](./$filename)\n\n"
73- ;;
74- *x64.dmg)
75- body="$body### macOS (Intel-based)\n- [$filename](./$filename)\n\n"
76- ;;
77- *amd64.deb)
78- body="$body### Ubuntu/Debian-based distributions\n- [$filename](./$filename)\n\n"
79- ;;
80- *.rpm)
81- body="$body### RPM-based distributions (Fedora, CentOS, RHEL)\n- [$filename](./$filename)\n\n"
82- ;;
83- *.AppImage)
84- body="$body### AppImage (Universal Linux)\n- [$filename](./$filename)\n\n"
85- ;;
86- *setup.exe)
87- body="$body### Windows Installer\n- [$filename](./$filename)\n\n"
88- ;;
89- *.msi)
90- body="$body### Windows Installer (MSI)\n- [$filename](./$filename)\n\n"
91- ;;
92- *.tar.gz)
93- if [[ $filename == *aarch64* ]]; then
94- body="$body### macOS (Apple Silicon, M1 and above)\n- [$filename](./$filename)\n\n"
95- else
96- body="$body### macOS (Intel-based)\n- [$filename](./$filename)\n\n"
97- fi
98- ;;
99- *)
100- body="$body### Other\n- [$filename](./$filename)\n\n"
101- ;;
102- esac
103- done
104- echo "release_body=$body" >> $GITHUB_ENV
56+ # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
57+ run : npm install # change this to npm or pnpm depending on which one you use.
10558
10659 - uses : tauri-apps/tauri-action@v0
10760 env :
10861 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10962 with :
110- tagName : app-v__VERSION__
63+ tagName : app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
11164 releaseName : " PokeDex v__VERSION__"
112- releaseBody : ${{ env.release_body }}
65+ releaseBody : |
66+ ## macOS
67+ - **For Apple Silicon (M1 and above):**
68+ - PokeDex_VERSION_aarch64.dmg
69+ - PokeDex_aarch64.app.tar.gz
70+
71+ - **For Intel-based Macs:**
72+ - PokeDex_VERSION_x64.dmg
73+ - PokeDex_x64.app.tar.gz
74+
75+ ## Ubuntu / Linux
76+ - **For Ubuntu/Debian-based distributions:**
77+ - poke-dex_VERSION_amd64.deb
78+
79+ - **For RPM-based distributions (Fedora, CentOS, RHEL):**
80+ - poke-dex-VERSION-1.x86_64.rpm
81+
82+ - **AppImage (Universal Linux):**
83+ - poke-dex_VERSION_amd64.AppImage
84+
85+ ## Windows
86+ - **Windows Installer:**
87+ - PokeDex_VERSION_x64-setup.exe
88+ - PokeDex_VERSION_x64_en-US.msi
11389 releaseDraft : true
11490 prerelease : false
11591 args : ${{ matrix.args }}
0 commit comments