This commit is contained in:
恍兮惚兮 2024-04-26 19:08:58 +08:00
parent 0412a71fdf
commit 3e80c54af5
2 changed files with 17 additions and 56 deletions

View File

@ -38,7 +38,13 @@ jobs:
with:
name: Release_Chinese_xp.zip
path: builds/Release_Chinese_xp.zip
- name: Release LunaHook
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.create_release }}
files: builds/${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_plugin:
runs-on: windows-latest
strategy:
@ -79,7 +85,13 @@ jobs:
with:
name: ${{ matrix.target }}
path: builds/${{ matrix.target }}
- name: Release LunaHook
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.create_release }}
files: builds/${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_everylang:
runs-on: windows-latest
strategy:
@ -114,47 +126,11 @@ jobs:
with:
name: ${{ matrix.target }}
path: builds/${{ matrix.target }}
release:
needs: [build_xp, build_plugin,build_everylang]
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download plugin32 artifact
uses: actions/download-artifact@v4
with:
name: plugin32.zip
path: builds
- name: Download plugin64 artifact
uses: actions/download-artifact@v4
with:
name: plugin64.zip
path: builds
- name: Download English artifact
uses: actions/download-artifact@v4
with:
name: Release_English.zip
path: builds
- name: Download Chinese artifact
uses: actions/download-artifact@v4
with:
name: Release_Chinese.zip
path: builds
- name: Download English xp artifact
uses: actions/download-artifact@v4
with:
name: Release_English_xp.zip
path: builds
- name: Download Chinese xp artifact
uses: actions/download-artifact@v4
with:
name: Release_Chinese_xp.zip
path: builds
- name: Release LunaHook
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.create_release }}
files: |
builds/*.zip
files: builds/${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -3,21 +3,6 @@ import subprocess
rootDir = os.path.dirname(__file__)
vcltlFileName = "VC-LTL-5.0.9-Binary.7z"
availableTargets = ["32xp", "32", "64"]
target = sys.argv[1]
os.chdir(os.path.join(rootDir, "scripts"))
if target in availableTargets:
installVCLTL()
os.chdir(os.path.join(rootDir, "scripts"))
os.system(f"cmd /c build{target}.bat")
else:
if target == "pack":
os.system(f"python pack.py pack")
else:
os.system(f"python pack.py pack_xp")
if sys.argv[1]=='0':
vcltlFile = "https://github.com/Chuyu-Team/VC-LTL5/releases/download/v5.0.9/VC-LTL-5.0.9-Binary.7z"