Skip to content

Commit

Permalink
ci: Package Linux binary with AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
yvbbrjdr committed May 17, 2021
1 parent d0bb085 commit 7b427f6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Package
on: [push, pull_request]

jobs:
build_linux:
name: Linux Build
package_linux:
name: Linux Package
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -13,13 +13,33 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v2

- name: Install libqxcb dependencies
run: sudo apt install libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev

- name: Install libsodium
run: sudo apt install libsodium-dev

- name: Install linuxdeploy
run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod +x linuxdeploy-*.AppImage
- name: Build
working-directory: ./LANDrop
run: qmake && make -j$(nproc)

- name: Package
run: |
./linuxdeploy-x86_64.AppImage --appdir AppDir -e LANDrop/LANDrop -d misc/LANDrop.desktop -i LANDrop/icons/app.svg --icon-filename LANDrop -p qt -o appimage
mv LANDrop*.AppImage LANDrop-linux.AppImage
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Linux-Build
path: LANDrop-linux.AppImage

package_windows:
name: Windows Package
runs-on: windows-latest
Expand Down
6 changes: 6 additions & 0 deletions misc/LANDrop.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=LANDrop
Exec=LANDrop
Icon=LANDrop
Type=Application
Categories=Network;Utility;

0 comments on commit 7b427f6

Please sign in to comment.