mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 20:54:15 +08:00
fix
This commit is contained in:
parent
0412a71fdf
commit
3e80c54af5
58
.github/workflows/release.yml
vendored
58
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
15
build.py
15
build.py
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user