Skip to content

Commit 6887ca5

Browse files
author
lightsilverberryfox
authored
Add AppImage support for Linux (ScanTailor-Advanced#58)
* Add ScanTailor AppImage icon * Update CI to create and upload AppImage * Fix some dependencies
1 parent 8e0a1b4 commit 6887ca5

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v3
2222

2323
- name: Install dependencies
24-
run: sudo apt install gcc g++ cmake libjpeg-dev libpng-dev libtiff5 libtiff5-dev libboost-test-dev qtbase5-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev libpthread-stubs0-dev rpm
24+
run: sudo apt install gcc g++ cmake libjpeg-dev libpng-dev libtiff5 libtiff5-dev libboost-test-dev qtbase5-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev libpthread-stubs0-dev rpm libfuse2
2525

2626
- name: Configure CMake
2727
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
@@ -43,6 +43,14 @@ jobs:
4343
run: |
4444
cpack -G "RPM"
4545
mv scantailor*.rpm scantailor.rpm
46+
47+
- name: Create AppImage package
48+
working-directory: ${{github.workspace}}/build
49+
run: |
50+
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
51+
chmod +x linuxdeploy-x86_64.AppImage
52+
./linuxdeploy-x86_64.AppImage --appdir AppDir --desktop-file ../src/resources/unix/scantailor.desktop --icon-file ../src/resources/ScanTailor.png --executable scantailor --output appimage
53+
mv ScanTailor*.AppImage scantailor.AppImage
4654
4755
- name: Upload Linux bin
4856
uses: actions/upload-artifact@v3
@@ -61,3 +69,9 @@ jobs:
6169
with:
6270
name: scantailor-linux-ubuntu-latest-qt5-rpm
6371
path: build/scantailor.rpm
72+
73+
- name: Upload Linux AppImage
74+
uses: actions/upload-artifact@v3
75+
with:
76+
name: scantailor-linux-appimage
77+
path: build/scantailor.AppImage

src/resources/ScanTailor.png

22.5 KB
Loading

0 commit comments

Comments
 (0)