From 46caf288d8f4b1834f2be4a288cc983791d1b7f2 Mon Sep 17 00:00:00 2001 From: zhuzihcu Date: Wed, 8 Mar 2023 15:17:31 +0800 Subject: [PATCH] update --- .github/workflows/ubuntu.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index efe21da..30a64fb 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -39,4 +39,31 @@ jobs: - name: build ubuntu run: | qmake - make \ No newline at end of file + make + - name: install QT linux deploy + uses: miurahr/install-linuxdeploy-action@v1 + with: + plugins: qt appimage + # 打包 + - name: package + run: | + # make sure Qt plugin finds QML sources so it can deploy the imported files + export QML_SOURCES_PATHS=src + # 拷贝依赖 + linuxdeploy-x86_64.AppImage --plugin=qt --output=appimage --create-desktop-file --icon-file=${targetName}.svg --executable=bin/release/${targetName} --appdir bin/release/ + mv ${{ env.targetName }}-*.AppImage ${{ env.targetName }}.AppImage + # 上传artifacts + - uses: actions/upload-artifact@v2 + with: + name: ${{ env.targetName }}_${{ matrix.os }}_${{matrix.qt_ver}}.zip + path: ${{ env.targetName }}.AppImage + # tag 上传Release + - name: uploadRelease + if: startsWith(github.event.ref, 'refs/tags/') + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ env.targetName }}.AppImage + asset_name: ${{ env.targetName }}_${{ matrix.os }}_${{ matrix.qt_ver }}.AppImage + tag: ${{ github.ref }} + overwrite: true \ No newline at end of file