Skip to content

Commit 7a4efff

Browse files
committed
ci: Add build creation for Linux with Appimage
1 parent f048ef7 commit 7a4efff

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

.github/workflows/on-release.yaml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
name: 'on-release'
22

3+
#on:
4+
# pull_request:
5+
# branches:
6+
# - main
7+
# types:
8+
# - closed
9+
310
on:
4-
pull_request:
11+
push:
512
branches:
613
- main
7-
types:
8-
- closed
914

1015
jobs:
1116
publish-tauri:
12-
if: startsWith(github.head_ref, 'changeset-release')
17+
# if: startsWith(github.head_ref, 'changeset-release')
1318
permissions:
1419
contents: write
1520
strategy:
@@ -23,6 +28,8 @@ jobs:
2328
# args: '--target x86_64-apple-darwin'
2429
- platform: 'windows-latest'
2530
args: ''
31+
- platform: 'ubuntu-22.04'
32+
args: ''
2633

2734
runs-on: ${{ matrix.platform }}
2835
steps:
@@ -44,11 +51,27 @@ jobs:
4451
# Those targets are only used on macOS runners so it's in an `if` to slightly speed up windows and linux builds.
4552
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4653

47-
- name: install dependencies (ubuntu)
48-
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
54+
- name: install dependencies
55+
if: runner.os == 'Linux'
4956
run: |
5057
sudo apt-get update
51-
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
58+
sudo apt install -y \
59+
build-essential \
60+
curl \
61+
wget \
62+
file \
63+
libssl-dev \
64+
libgtk-3-dev \
65+
libappindicator3-dev \
66+
librsvg2-dev;
67+
68+
sudo apt install -y \
69+
libwebkit2gtk-4.1-0=2.44.0-2 \
70+
libwebkit2gtk-4.1-dev=2.44.0-2 \
71+
libjavascriptcoregtk-4.1-0=2.44.0-2 \
72+
libjavascriptcoregtk-4.1-dev=2.44.0-2 \
73+
gir1.2-javascriptcoregtk-4.1=2.44.0-2 \
74+
gir1.2-webkit2-4.1=2.44.0-2;
5275
5376
- name: setup cache
5477
uses: actions/cache@v4
@@ -102,3 +125,4 @@ jobs:
102125
draft: true
103126
files: |
104127
src-tauri/target/release/bundle/nsis/Ganymede_x64-setup.exe
128+
src-tauri/target/release/bundle/appimage/*.AppImage

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"bundle": {
3232
"active": true,
33-
"targets": ["app", "nsis"],
33+
"targets": ["app", "nsis", "appimage"],
3434
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/[email protected]", "icons/icon.icns", "icons/icon.ico"],
3535
"createUpdaterArtifacts": true,
3636
"windows": {

0 commit comments

Comments
 (0)