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 4a475e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
31 changes: 13 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,21 @@ 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 https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-x86_64.AppImage
sudo apt install libfuse2
chmod a+x linuxdeploy-x86_64.AppImage linuxdeploy-plugin-qt-x86_64.AppImage linuxdeploy-plugin-appimage-x86_64.AppImage
mkdir AppDir Package
./linuxdeploy-x86_64.AppImage --appdir AppDir -e 86boxman -d res/86boxman.desktop -i res/icon.svg --plugin qt --output appimage
- 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 +102,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 +147,5 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: '86boxman MacOS 11 x86_64'
name: '86boxman MacOS x86_64'
path: Package
2 changes: 1 addition & 1 deletion res/86boxman.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Comment=Manage your 86Box virtual machines
Exec=86boxman

# The name of the icon that will be used to display this entry
Icon=jmemorize
Icon=icon.svg

# Describes whether this application needs to be run in a terminal or not
Terminal=false
Expand Down
Empty file added res/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4a475e4

Please sign in to comment.