Skip to content

Commit

Permalink
feat: 修改install流程,自动生成win可视化界面
Browse files Browse the repository at this point in the history
  • Loading branch information
LBEILC committed Sep 13, 2024
1 parent 7d136ce commit 7414b6c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -446,3 +446,5 @@ install

# Tools
tools/ImageCropper/**/*.png

config

0 comments on commit 7414b6c

Please sign in to comment.