Skip to content

Commit dce95c4

Browse files
committed
Downgrade OS version for AppImage build runner
Fix: #3781 Related: #3775 (comment)
1 parent 5d84f53 commit dce95c4

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/build-appimage.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
# KEEP THE RUNNER OS AS LOW AS POSSIBLE.
2+
# If built on the latest OS, it may not run on previous OS versions.
3+
# Related: https://docs.appimage.org/reference/best-practices.html#binaries-compiled-on-old-enough-base-system
4+
15
name: Build - AppImage
26

37
on:
48
workflow_call:
9+
workflow_dispatch:
510

611
jobs:
712
build:
@@ -10,15 +15,22 @@ jobs:
1015
strategy:
1116
fail-fast: false
1217
matrix:
13-
os: [ubuntu-24.04]
18+
os: [ubuntu-20.04]
1419
steps:
1520
- name: Checkout
1621
uses: actions/checkout@v4
1722

1823
- name: Install dependencies
1924
run: |
2025
sudo apt update
21-
sudo apt install libfuse2t64 libqcustomplot-dev libqscintilla2-qt5-dev libqt5svg5 libsqlcipher-dev libsqlite3-dev qttools5-dev
26+
sudo apt install libqcustomplot-dev libqscintilla2-qt5-dev libqt5svg5 qttools5-dev
27+
28+
- name: Build SQLCipher
29+
run: |
30+
sudo apt install libssl-dev tcl
31+
git clone https://github.com/sqlcipher/sqlcipher && cd sqlcipher && git checkout v4.6.1
32+
./configure --enable-tempstore=yes --with-crypto-lib=openssl --enable-load-extension --disable-tcl CFLAGS="-DSQLCIPHER_CRYPTO_OPENSSL -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SNAPSHOT=1 -DSQLITE_ENABLE_STAT4 -DSQLITE_HAS_CODEC -DSQLITE_SOUNDEX"
33+
make -j2 && sudo make install -j2
2234
2335
- name: Configure build
2436
run: |
@@ -35,11 +47,12 @@ jobs:
3547
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/1-alpha-20240109-1/linuxdeploy-plugin-qt-x86_64.AppImage"
3648
chmod a+x linuxdeploy-x86_64.AppImage linuxdeploy-plugin-qt-x86_64.AppImage
3749
export VERSION=v3.13.1
38-
./linuxdeploy-x86_64.AppImage --appdir=appdir --desktop-file=appdir/usr/share/applications/sqlitebrowser.desktop --plugin qt --output appimage
50+
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" ./linuxdeploy-x86_64.AppImage --appdir=appdir --desktop-file=appdir/usr/share/applications/sqlitebrowser.desktop --plugin qt --output appimage
3951
4052
- name: Rename a file
4153
run: |
4254
for i in DB_Browser_for_SQLite*; do mv "$i" "${i//_/.}"; done
55+
mv DB.Browser.for.SQLite-v3.13.1-x86.64.AppImage DB.Browser.for.SQLite-v3.13.1-x86.64-v2.AppImage
4356
4457
- name: Upload artifacts
4558
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)