From 7414b6cd1c168bc340d8f42bdc7903c1afe11f62 Mon Sep 17 00:00:00 2001 From: Uranium <1244958054@qq.com> Date: Fri, 13 Sep 2024 13:39:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9install=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=EF=BC=8C=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90win?= =?UTF-8?q?=E5=8F=AF=E8=A7=86=E5=8C=96=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/install.yml | 32 +++++++++++++++++++++++++++++++- .gitignore | 2 ++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index c73d633..fbde29d 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -49,6 +49,36 @@ jobs: tag: ${{ steps.set_tag.outputs.tag }} is_release: ${{ steps.set_tag.outputs.is_release }} + gui: + needs: meta + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Download Latest MFAWPF + uses: robinraju/release-downloader@v1.8 + with: + repository: SweetSmellFox/MFAWPF + latest: true + out-file-path: gui + extract: true + ##在下面更改项目名称 + - name: gui resources + shell: bash + run: | + rm -f ./gui/*.zip + cp -r ./assets/resource/* ./gui/Resource/ + jq --arg version_name "MCCA" --arg version ${{ needs.meta.outputs.tag }} '. + {"version": {"name": $version_name, "version": $version}}' ./assets/interface.json > ./gui/interface.json + + - uses: actions/upload-artifact@v3 + with: + name: MCCA-win-x86_64-with-gui + path: "gui" + windows: needs: meta runs-on: windows-latest @@ -147,7 +177,7 @@ jobs: release: if: ${{ needs.meta.outputs.is_release == 'true' }} - needs: [meta, windows, ubuntu, macos] + needs: [meta, windows, ubuntu, macos,gui] runs-on: ubuntu-latest permissions: contents: write diff --git a/.gitignore b/.gitignore index a652f0b..627dec9 100644 --- a/.gitignore +++ b/.gitignore @@ -446,3 +446,5 @@ install # Tools tools/ImageCropper/**/*.png + +config \ No newline at end of file