Skip to content

Commit

Permalink
Package Linux version as a AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lethja committed Dec 11, 2023
1 parent f5fb169 commit 866fa2b
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
linux:
name: "Ubuntu 22.04LTS x86_64"
name: "Linux AppImage x86_64"
runs-on: ubuntu-22.04

steps:
Expand All @@ -28,11 +28,6 @@ jobs:
target: 'desktop'
arch: 'gcc_64'

- name: Install AppImage
run: |
wget -q https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
chmod a+x appimagetool
- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand All @@ -46,21 +41,20 @@ jobs:
- name: CMake Build
run: cmake --build . -j`nproc`

- name: Install
- name: Package
env:
LD_LIBRARY_PATH: ${{env.Qt5_Dir}}"/lib:$LD_LIBRARY_PATH"
run: |
mkdir AppDir
mv 86boxman AppDir
#- name: CMake Install
# env:
# DESTDIR: "AppDir"
# run: cmake --install . --prefix /usr
wget -q https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod a+x linuxdeploy-x86_64.AppImage linuxdeploy-plugin-qt-x86_64.AppImage
mkdir AppDir Package
./linuxdeploy-x86_64.AppImage --appdir AppDir -e 86boxman -d 86boxman.desktop --output Package/86boxman-x86_64.AppImage --plugin qt
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: '86boxman Ubuntu 22.04LTS x86_64'
path: AppDir
name: '86boxman AppImage x86_64'
path: Package

windows:
name: "Windows x86_64 (MXE)"
Expand Down Expand Up @@ -107,7 +101,7 @@ jobs:
path: Package

macos:
name: "MacOS 11 x86_64"
name: "MacOS x86_64"
runs-on: macos-11

steps:
Expand Down Expand Up @@ -152,5 +146,5 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: '86boxman MacOS 11 x86_64'
name: '86boxman MacOS x86_64'
path: Package

0 comments on commit 866fa2b

Please sign in to comment.