From 10bf0883e5492d8607d141bd330d37e453cf9b98 Mon Sep 17 00:00:00 2001 From: Texas0295 Date: Thu, 27 Mar 2025 23:09:36 +0800 Subject: [PATCH] add appimage build --- .github/workflows/nightly.yml | 5 +++ AppImageBuilder.yml | 73 +++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 AppImageBuilder.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index bbeb70b..dd778f0 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -65,3 +65,8 @@ jobs: with: name: build-output-linux path: build/linux/x64/release/bundle + - name: Build AppImage unsing appimage-builder + uses: docker://appimagecrafters/appimage-builder:0.8.5 + with: + entrypoint: appimage-builder + args: --recipe ./AppImageBuilder.yml --skip-test diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml new file mode 100644 index 0000000..72fa1e8 --- /dev/null +++ b/AppImageBuilder.yml @@ -0,0 +1,73 @@ +# appimage-builder recipe see https://appimage-builder.readthedocs.io for details +version: 1 +script: + - rm -rf AppDir || true + - cp -r build/linux/x64/release/bundle AppDir + - mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/ + - cp assets/icon/icon-light-radius.png AppDir/usr/share/icons/hicolor/64x64/apps/ +AppDir: + path: ./AppDir + app_info: + id: dev.solsynth.solian + name: Solian surface + icon: icon-light-radius + version: latest + exec: surface + exec_args: $@ + apt: + arch: amd64 + allow_unauthenticated: true + sources: + - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic main restricted + - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted + - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic universe + - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe + - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic multiverse + - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse + - sourceline: deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse + - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security main restricted + - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security universe + - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security multiverse + include: + - libgtk-3-0 + - squashfs-tools + exclude: + - humanity-icon-theme + - hicolor-icon-theme + - adwaita-icon-theme + - ubuntu-mono + files: + exclude: + - usr/share/man + - usr/share/doc/*/README.* + - usr/share/doc/*/changelog.* + - usr/share/doc/*/NEWS.* + - usr/share/doc/*/TODO.* + runtime: + env: + GIO_MODULE_DIR: $APPDIR/usr/lib/x86_64-linux-gnu/gio/modules/ + test: + fedora: + image: appimagecrafters/tests-env:fedora-30 + command: ./AppRun + use_host_x: true + debian: + image: appimagecrafters/tests-env:debian-stable + command: ./AppRun + use_host_x: true + arch: + image: appimagecrafters/tests-env:archlinux-latest + command: ./AppRun + use_host_x: true + centos: + image: appimagecrafters/tests-env:centos-7 + command: ./AppRun + use_host_x: true + ubuntu: + image: appimagecrafters/tests-env:ubuntu-xenial + command: ./AppRun + use_host_x: true +AppImage: + arch: x86_64 + update-information: guess + sign-key: None