diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 995cacb..31981c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file diff --git a/build.py b/build.py index d0a27c9..2abe09f 100644 --- a/build.py +++ b/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"