From 9245e13057fca11a4509994b56cc0db00c3383c6 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Sun, 8 Jan 2023 10:27:00 +0800 Subject: [PATCH] fix: use appimage feature --- .github/workflows/flutter-nightly.yml | 16 ++++++++++++++-- build.py | 7 +++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flutter-nightly.yml b/.github/workflows/flutter-nightly.yml index b6f82cf2b..eb13edf15 100644 --- a/.github/workflows/flutter-nightly.yml +++ b/.github/workflows/flutter-nightly.yml @@ -599,6 +599,12 @@ jobs: os: ubuntu-20.04, extra-build-features: "flatpak", } + - { + arch: x86_64, + target: x86_64-unknown-linux-gnu, + os: ubuntu-20.04, + extra-build-features: "appimage", + } # - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, use-cross: true } steps: - name: Maximize build space @@ -1148,6 +1154,12 @@ jobs: os: ubuntu-18.04, extra-build-features: "flatpak", } + - { + arch: x86_64, + target: x86_64-unknown-linux-gnu, + os: ubuntu-18.04, + extra-build-features: "appimage", + } # - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, use-cross: true } steps: - name: Checkout source code @@ -1287,7 +1299,7 @@ jobs: res/rustdesk*.zst - name: Build appimage package - if: ${{ matrix.job.extra-build-features == '' }} + if: ${{ matrix.job.extra-build-features == 'appimage' }} shell: bash run: | # set-up appimage-builder @@ -1301,7 +1313,7 @@ jobs: sudo appimage-builder --skip-tests - name: Publish appimage package - if: ${{ matrix.job.extra-build-features == '' }} + if: ${{ matrix.job.extra-build-features == 'appimage' }} uses: softprops/action-gh-release@v1 with: prerelease: true diff --git a/build.py b/build.py index 75d6fcd89..6b107ff4b 100755 --- a/build.py +++ b/build.py @@ -99,6 +99,11 @@ def make_parser(): action='store_true', help='Build rustdesk libs with the flatpak feature enabled' ) + parser.add_argument( + '--appimage', + action='store_true', + help='Build rustdesk libs with the appimage feature enabled' + ) parser.add_argument( '--skip-cargo', action='store_true', @@ -236,6 +241,8 @@ def get_features(args): features.append('flutter') if args.flatpak: features.append('flatpak') + if args.appimage: + features.append('appimage') print("features:", features) return features