fix: use appimage feature
This commit is contained in:
parent
3bf2d749fe
commit
9245e13057
16
.github/workflows/flutter-nightly.yml
vendored
16
.github/workflows/flutter-nightly.yml
vendored
@ -599,6 +599,12 @@ jobs:
|
|||||||
os: ubuntu-20.04,
|
os: ubuntu-20.04,
|
||||||
extra-build-features: "flatpak",
|
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 }
|
# - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, use-cross: true }
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
@ -1148,6 +1154,12 @@ jobs:
|
|||||||
os: ubuntu-18.04,
|
os: ubuntu-18.04,
|
||||||
extra-build-features: "flatpak",
|
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 }
|
# - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, use-cross: true }
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
@ -1287,7 +1299,7 @@ jobs:
|
|||||||
res/rustdesk*.zst
|
res/rustdesk*.zst
|
||||||
|
|
||||||
- name: Build appimage package
|
- name: Build appimage package
|
||||||
if: ${{ matrix.job.extra-build-features == '' }}
|
if: ${{ matrix.job.extra-build-features == 'appimage' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# set-up appimage-builder
|
# set-up appimage-builder
|
||||||
@ -1301,7 +1313,7 @@ jobs:
|
|||||||
sudo appimage-builder --skip-tests
|
sudo appimage-builder --skip-tests
|
||||||
|
|
||||||
- name: Publish appimage package
|
- name: Publish appimage package
|
||||||
if: ${{ matrix.job.extra-build-features == '' }}
|
if: ${{ matrix.job.extra-build-features == 'appimage' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
7
build.py
7
build.py
@ -99,6 +99,11 @@ def make_parser():
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help='Build rustdesk libs with the flatpak feature enabled'
|
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(
|
parser.add_argument(
|
||||||
'--skip-cargo',
|
'--skip-cargo',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
@ -236,6 +241,8 @@ def get_features(args):
|
|||||||
features.append('flutter')
|
features.append('flutter')
|
||||||
if args.flatpak:
|
if args.flatpak:
|
||||||
features.append('flatpak')
|
features.append('flatpak')
|
||||||
|
if args.appimage:
|
||||||
|
features.append('appimage')
|
||||||
print("features:", features)
|
print("features:", features)
|
||||||
return features
|
return features
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user