mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
.
This commit is contained in:
parent
69c422090f
commit
cb9360bbe9
9
.github/scripts/build_lunahook.py
vendored
9
.github/scripts/build_lunahook.py
vendored
@ -19,11 +19,14 @@ if len(sys.argv) and sys.argv[1] == "merge":
|
|||||||
os.mkdir("../build")
|
os.mkdir("../build")
|
||||||
os.mkdir("builds")
|
os.mkdir("builds")
|
||||||
language = ["Chinese", "English", "Russian", "TradChinese"]
|
language = ["Chinese", "English", "Russian", "TradChinese"]
|
||||||
bits = [32, 64]
|
|
||||||
for lang in language:
|
for lang in language:
|
||||||
for bit in bits:
|
|
||||||
shutil.copytree(
|
shutil.copytree(
|
||||||
f"build/{lang}_{bit}/Release_{lang}",
|
f"build/{lang}_64/Release_{lang}",
|
||||||
|
f"../build/Release_{lang}",
|
||||||
|
dirs_exist_ok=True,
|
||||||
|
)
|
||||||
|
shutil.copytree(
|
||||||
|
f"build/{lang}_winxp/Release_{lang}_winxp",
|
||||||
f"../build/Release_{lang}",
|
f"../build/Release_{lang}",
|
||||||
dirs_exist_ok=True,
|
dirs_exist_ok=True,
|
||||||
)
|
)
|
||||||
|
12
.github/workflows/buildlunahook.yml
vendored
12
.github/workflows/buildlunahook.yml
vendored
@ -25,13 +25,7 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}_winxp
|
name: ${{ matrix.language }}_winxp
|
||||||
path: cpp/LunaHook/builds/Release_${{ matrix.language }}_winxp.zip
|
path: cpp/LunaHook/builds
|
||||||
- uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
tag_name: LunaHook
|
|
||||||
files: cpp/LunaHook/builds/Release_${{ matrix.language }}_winxp.zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
build_plugin:
|
build_plugin:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@ -84,7 +78,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
language: [Chinese,English,Russian,TradChinese]
|
language: [Chinese,English,Russian,TradChinese]
|
||||||
bits: [32, 64]
|
bits: [64]
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
attestations: write
|
attestations: write
|
||||||
@ -105,7 +99,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: [build_x]
|
needs: [build_x,build_xp]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user