feat: add arm64 appimage build
This commit is contained in:
parent
6f455be347
commit
3f3e71c1f9
41
.github/workflows/flutter-nightly.yml
vendored
41
.github/workflows/flutter-nightly.yml
vendored
@ -761,6 +761,13 @@ jobs:
|
|||||||
use-cross: true,
|
use-cross: true,
|
||||||
extra-build-features: "",
|
extra-build-features: "",
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
arch: aarch64,
|
||||||
|
target: aarch64-unknown-linux-gnu,
|
||||||
|
os: ubuntu-18.04, # just for naming package, not running host
|
||||||
|
use-cross: true,
|
||||||
|
extra-build-features: "appimage",
|
||||||
|
}
|
||||||
# - { arch: aarch64, target: aarch64-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true, extra-build-features: "flatpak" }
|
# - { arch: aarch64, target: aarch64-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true, extra-build-features: "flatpak" }
|
||||||
# - {
|
# - {
|
||||||
# arch: armv7,
|
# arch: armv7,
|
||||||
@ -939,6 +946,13 @@ jobs:
|
|||||||
use-cross: true,
|
use-cross: true,
|
||||||
extra-build-features: "",
|
extra-build-features: "",
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
arch: aarch64,
|
||||||
|
target: aarch64-unknown-linux-gnu,
|
||||||
|
os: ubuntu-18.04, # just for naming package, not running host
|
||||||
|
use-cross: true,
|
||||||
|
extra-build-features: "appimage",
|
||||||
|
}
|
||||||
# - {
|
# - {
|
||||||
# arch: aarch64,
|
# arch: aarch64,
|
||||||
# target: aarch64-unknown-linux-gnu,
|
# target: aarch64-unknown-linux-gnu,
|
||||||
@ -1046,7 +1060,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
for name in rustdesk*??.deb; do
|
for name in rustdesk*??.deb; do
|
||||||
mv "$name" "${name%%.deb}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb"
|
cp "$name" "${name%%.deb}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb"
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Publish debian package
|
- name: Publish debian package
|
||||||
@ -1058,6 +1072,29 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
rustdesk-${{ env.VERSION }}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb
|
rustdesk-${{ env.VERSION }}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb
|
||||||
|
|
||||||
|
- name: Build appimage package
|
||||||
|
if: ${{ matrix.job.extra-build-features == 'appimage' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
# set-up appimage-builder
|
||||||
|
pushd /tmp
|
||||||
|
wget -O appimage-builder-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
|
||||||
|
chmod +x appimage-builder-x86_64.AppImage
|
||||||
|
sudo mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder
|
||||||
|
popd
|
||||||
|
# run appimage-builder
|
||||||
|
pushd appimage
|
||||||
|
sudo appimage-builder --skip-tests --recipe ./AppImageBuilder-${{ matrix.job.arch }}.yml
|
||||||
|
|
||||||
|
- name: Publish appimage package
|
||||||
|
if: ${{ matrix.job.extra-build-features == 'appimage' }}
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
prerelease: true
|
||||||
|
tag_name: ${{ env.TAG_NAME }}
|
||||||
|
files: |
|
||||||
|
./appimage/rustdesk-${{ env.VERSION }}-*.AppImage
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
if: ${{ contains(matrix.job.extra-build-features, 'flatpak') }}
|
if: ${{ contains(matrix.job.extra-build-features, 'flatpak') }}
|
||||||
@ -1310,7 +1347,7 @@ jobs:
|
|||||||
popd
|
popd
|
||||||
# run appimage-builder
|
# run appimage-builder
|
||||||
pushd appimage
|
pushd appimage
|
||||||
sudo appimage-builder --skip-tests
|
sudo appimage-builder --skip-tests --recipe ./AppImageBuilder-x86_64.yml
|
||||||
|
|
||||||
- name: Publish appimage package
|
- name: Publish appimage package
|
||||||
if: ${{ matrix.job.extra-build-features == 'appimage' }}
|
if: ${{ matrix.job.extra-build-features == 'appimage' }}
|
||||||
|
85
appimage/AppImageBuilder-aarch64.yml
Normal file
85
appimage/AppImageBuilder-aarch64.yml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
|
||||||
|
version: 1
|
||||||
|
script:
|
||||||
|
- rm -rf ./AppDir || true
|
||||||
|
- bsdtar -zxvf ../rustdesk-1.2.0.deb
|
||||||
|
- tar -xvf ./data.tar.xz
|
||||||
|
- mkdir ./AppDir
|
||||||
|
- mv ./usr ./AppDir/usr
|
||||||
|
# 32x32 icon
|
||||||
|
- for i in {32,64,128}; do mkdir -p ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/; cp ../res/$i\x$i.png ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/rustdesk.png; done
|
||||||
|
# desktop file
|
||||||
|
# - sed -i "s/Icon=\/usr\/share\/rustdesk\/files\/rustdesk.png/Icon=rustdesk/g" ./AppDir/usr/share/applications/rustdesk.desktop
|
||||||
|
- rm -rf ./AppDir/usr/share/applications
|
||||||
|
AppDir:
|
||||||
|
path: ./AppDir
|
||||||
|
app_info:
|
||||||
|
id: rustdesk
|
||||||
|
name: rustdesk
|
||||||
|
icon: rustdesk
|
||||||
|
version: 1.2.0
|
||||||
|
exec: usr/lib/rustdesk/rustdesk
|
||||||
|
exec_args: $@
|
||||||
|
apt:
|
||||||
|
arch:
|
||||||
|
- aarch64
|
||||||
|
allow_unauthenticated: true
|
||||||
|
sources:
|
||||||
|
- sourceline: deb https://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted
|
||||||
|
- sourceline: deb https://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted
|
||||||
|
- sourceline: deb https://mirrors.ustc.edu.cn/ubuntu-ports/ bionic universe
|
||||||
|
- sourceline: deb https://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates universe
|
||||||
|
- sourceline: deb https://mirrors.ustc.edu.cn/ubuntu-ports/ bionic multiverse
|
||||||
|
- sourceline: deb https://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates multiverse
|
||||||
|
- sourceline: deb https://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted
|
||||||
|
universe multiverse
|
||||||
|
include:
|
||||||
|
- libc6:amd64
|
||||||
|
- libgtk-3-0
|
||||||
|
- libxcb-randr0
|
||||||
|
- libxdo3
|
||||||
|
- libxfixes3
|
||||||
|
- libxcb-shape0
|
||||||
|
- libxcb-xfixes0
|
||||||
|
- libasound2
|
||||||
|
- libsystemd0
|
||||||
|
- curl
|
||||||
|
- libva-drm2
|
||||||
|
- libva-x11-2
|
||||||
|
- libvdpau1
|
||||||
|
- libgstreamer-plugins-base1.0-0
|
||||||
|
exclude:
|
||||||
|
- humanity-icon-theme
|
||||||
|
- hicolor-icon-theme
|
||||||
|
- adwaita-icon-theme
|
||||||
|
- ubuntu-mono
|
||||||
|
files:
|
||||||
|
include: []
|
||||||
|
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-30:
|
||||||
|
image: appimagecrafters/tests-env:fedora-30
|
||||||
|
command: ./AppRun
|
||||||
|
debian-stable:
|
||||||
|
image: appimagecrafters/tests-env:debian-stable
|
||||||
|
command: ./AppRun
|
||||||
|
archlinux-latest:
|
||||||
|
image: appimagecrafters/tests-env:archlinux-latest
|
||||||
|
command: ./AppRun
|
||||||
|
centos-7:
|
||||||
|
image: appimagecrafters/tests-env:centos-7
|
||||||
|
command: ./AppRun
|
||||||
|
ubuntu-xenial:
|
||||||
|
image: appimagecrafters/tests-env:ubuntu-xenial
|
||||||
|
command: ./AppRun
|
||||||
|
AppImage:
|
||||||
|
arch: aarch64
|
||||||
|
update-information: guess
|
Loading…
x
Reference in New Issue
Block a user