From b28e4b0e608ce2af7ece861275ea0ca6227aad16 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Sun, 8 Jan 2023 00:22:15 +0800 Subject: [PATCH] feat: appimage nightly ci --- .github/workflows/flutter-nightly.yml | 26 ++++++++++++++++++++++++-- appimage/AppImageBuilder.yml | 17 +++++++---------- flutter/pubspec.yaml | 2 +- res/64x64.png | Bin 0 -> 2264 bytes 4 files changed, 32 insertions(+), 13 deletions(-) create mode 100644 res/64x64.png diff --git a/.github/workflows/flutter-nightly.yml b/.github/workflows/flutter-nightly.yml index 7ce940b89..1be4bb001 100644 --- a/.github/workflows/flutter-nightly.yml +++ b/.github/workflows/flutter-nightly.yml @@ -1162,7 +1162,7 @@ jobs: - name: Prepare env run: | sudo apt update -y - sudo apt-get -qq install -y git curl wget nasm yasm libgtk-3-dev + sudo apt-get -qq install -y git curl wget nasm yasm libgtk-3-dev libarchive-tools mkdir -p ./target/release/ - name: Restore the rustdesk lib file @@ -1217,7 +1217,8 @@ jobs: shell: bash run: | for name in rustdesk*??.deb; do - mv "$name" "${name%%.deb}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb" + # use cp to duplicate deb files to fit other packages. + cp "$name" "${name%%.deb}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb" done - name: Publish debian package @@ -1285,6 +1286,27 @@ jobs: files: | res/rustdesk*.zst + - name: Build appimage package + if: ${{ matrix.job.extra-build-features == '' }} + shell: bash + run: | + # set-up appimage-builder + 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 + # run appimage-builder + pushd appimage + appimage-builder --skip-tests + + - name: Publish appimage package + if: ${{ matrix.job.extra-build-features == '' }} + uses: softprops/action-gh-release@v1 + with: + prerelease: true + tag_name: ${{ env.TAG_NAME }} + files: | + ./appimage/rustdesk-${{ env.VERSION }}-*.AppImage + - name: Publish fedora28/centos8 package if: ${{ matrix.job.extra-build-features == '' }} uses: softprops/action-gh-release@v1 diff --git a/appimage/AppImageBuilder.yml b/appimage/AppImageBuilder.yml index e5e424d0b..ae95fd2ce 100644 --- a/appimage/AppImageBuilder.yml +++ b/appimage/AppImageBuilder.yml @@ -25,17 +25,14 @@ AppDir: - amd64 allow_unauthenticated: true sources: - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic universe - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic-updates universe - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic multiverse - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic-updates multiverse - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted + - 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://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic-security universe - - sourceline: deb http://mirrors.ustc.edu.cn/ubuntu/ bionic-security multiverse - sourceline: deb http://ppa.launchpad.net/pipewire-debian/pipewire-upstream/ubuntu bionic main include: diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 4826f6198..705f4650c 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -63,7 +63,7 @@ dependencies: desktop_multi_window: git: url: https://github.com/Kingtous/rustdesk_desktop_multi_window - ref: e6d30bde98bd0f4ff50a130e5b1068138307bd03 + ref: 057e6eb1bc7dcbcf9dafd1384274a611e4fe7124 freezed_annotation: ^2.0.3 flutter_custom_cursor: ^0.0.2 window_size: diff --git a/res/64x64.png b/res/64x64.png new file mode 100644 index 0000000000000000000000000000000000000000..d93638e6eb1d82b24807d7b3d0a6ec5c72e0bd86 GIT binary patch literal 2264 zcmZ{mc`($E8^=G+bwsXBQ6Wdv((Wq6y1vdWSJqYJT4${*i(T}kB}e4Uy;jFYuH0<0 zlv}$JQqGlgNx6?u{Cwv(^PBnoW`6U`^So!?&%EaS=kvr{m>Kc$i17dbz=t%}w>(mv zf0~Q)XqI>fFpfkLZER@@0HJaK5E%^sdq-B}0ssU-0pPnc0H|jJfT%yQ@dn~(!RdP4 zNFO--r=C)a(vKVv7HMh#VzPh)guuRvMPo+}1*xxVg&X}jcGur}2n<@Cq^fdDMYD73 zn~3NNaNrGI-DJd>OmT2EnwO@JIY($DE!sc!cPe*n0I2Br3!&5MF}~l2Y!XG z736y_FuqC0Q*ojZt!S@axxaL^)k)D#=m71Xu{^NEP6v9sXMl!S&BSKF>D@gr?xZc> zmA9wYWPGvR!UH(ndRTb*H=0Db9dTOVkqN8Sj93Atp)ZCY68qhOJzJ3rXQWX`rW~`2 z^d>wN;!7j+l&I?2!-EVG21K%IyJs15sfgw*J7Rz=y~K@f?8sDqx;rzp#<@1oxLi=mQVQX)Zzo#v#Xn%H&MziYA+3TrCT zA1gN5_3>^sH9r26pUNdTs<+9aggn=obN=4UO@~minGaf+>IISI(iiTRhUVzn@qz~L zuhc);P2c@E(zL1)fy-#@#cu5tK&a2bl0CzzF~m%N#Om9OriSyOg3pB|dlGq;8=ugamML7SrtQhA@^S9-mzxvElswF?gdk{3 zV=ur`xzKbsGuh*}J2E!l>9NZss}wzZ(TSVqA|Ra|%J|tkCr)1)$T=6ml4hb215#p+ zqxM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