mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
scripts
This commit is contained in:
parent
8e37d6dc64
commit
d6f5300208
10
.github/scripts/packlunahook.py
vendored
10
.github/scripts/packlunahook.py
vendored
@ -7,11 +7,11 @@ if not rootDir:
|
|||||||
rootDir=os.path.abspath(os.path.join(rootDir,'../../cpp/LunaHook'))
|
rootDir=os.path.abspath(os.path.join(rootDir,'../../cpp/LunaHook'))
|
||||||
|
|
||||||
os.chdir(rootDir)
|
os.chdir(rootDir)
|
||||||
for f in os.listdir("../builds"):
|
for f in os.listdir("builds"):
|
||||||
if os.path.isdir("../builds/" + f) == False:
|
if os.path.isdir("builds/" + f) == False:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for dirname, _, fs in os.walk("../builds/" + f):
|
for dirname, _, fs in os.walk("builds/" + f):
|
||||||
if (
|
if (
|
||||||
dirname.endswith("translations")
|
dirname.endswith("translations")
|
||||||
or dirname.endswith("translations")
|
or dirname.endswith("translations")
|
||||||
@ -31,8 +31,8 @@ for f in os.listdir("../builds"):
|
|||||||
"D3Dcompiler_47.dll",
|
"D3Dcompiler_47.dll",
|
||||||
]:
|
]:
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
targetdir = "../builds/" + f
|
targetdir = "builds/" + f
|
||||||
target = "../builds/" + f + ".zip"
|
target = "builds/" + f + ".zip"
|
||||||
os.system(
|
os.system(
|
||||||
rf'"C:\Program Files\7-Zip\7z.exe" a -m0=Deflate -mx9 {target} {targetdir}'
|
rf'"C:\Program Files\7-Zip\7z.exe" a -m0=Deflate -mx9 {target} {targetdir}'
|
||||||
)
|
)
|
||||||
|
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -2,9 +2,9 @@ name: build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths: [ '.github/workflows/build.yml','py/**']
|
paths: [ '.github/scripts','.github/workflows/build.yml','py/**']
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: [ '.github/workflows/build.yml','py/**']
|
paths: [ '.github/scripts','.github/workflows/build.yml','py/**']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildluna:
|
buildluna:
|
||||||
|
2
.github/workflows/buildluna.yml
vendored
2
.github/workflows/buildluna.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
|
||||||
with:
|
with:
|
||||||
sdk-version: 22621
|
sdk-version: 22621
|
||||||
- run: python cpp/LunaHook/build.py build English ${{matrix.bits}} 1
|
- run: python .github/scripts/build.py build English ${{matrix.bits}} 1
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/buildlunahook.yml
vendored
4
.github/workflows/buildlunahook.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
name: buildlunahook
|
name: buildlunahook
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths: [ '.github/workflows/buildlunahook.yml','cpp/LunaHook/**']
|
paths: [ '.github/scripts','.github/workflows/buildlunahook.yml','cpp/LunaHook/**']
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: [ '.github/workflows/buildlunahook.yml','cpp/LunaHook/**']
|
paths: [ '.github/scripts','.github/workflows/buildlunahook.yml','cpp/LunaHook/**']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_xp:
|
build_xp:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user