Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Nov 8, 2024
1 parent 8e37d6d commit d6f5300
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/scripts/packlunahook.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
rootDir=os.path.abspath(os.path.join(rootDir,'../../cpp/LunaHook'))

os.chdir(rootDir)
for f in os.listdir("../builds"):
if os.path.isdir("../builds/" + f) == False:
for f in os.listdir("builds"):
if os.path.isdir("builds/" + f) == False:
continue

for dirname, _, fs in os.walk("../builds/" + f):
for dirname, _, fs in os.walk("builds/" + f):
if (
dirname.endswith("translations")
or dirname.endswith("translations")
Expand All @@ -31,8 +31,8 @@
"D3Dcompiler_47.dll",
]:
os.remove(path)
targetdir = "../builds/" + f
target = "../builds/" + f + ".zip"
targetdir = "builds/" + f
target = "builds/" + f + ".zip"
os.system(
rf'"C:\Program Files\7-Zip\7z.exe" a -m0=Deflate -mx9 {target} {targetdir}'
)
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build

on:
push:
paths: [ '.github/workflows/build.yml','py/**']
paths: [ '.github/scripts','.github/workflows/build.yml','py/**']
pull_request:
paths: [ '.github/workflows/build.yml','py/**']
paths: [ '.github/scripts','.github/workflows/build.yml','py/**']

jobs:
buildluna:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildluna.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
with:
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
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/buildlunahook.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: buildlunahook
on:
push:
paths: [ '.github/workflows/buildlunahook.yml','cpp/LunaHook/**']
paths: [ '.github/scripts','.github/workflows/buildlunahook.yml','cpp/LunaHook/**']
pull_request:
paths: [ '.github/workflows/buildlunahook.yml','cpp/LunaHook/**']
paths: [ '.github/scripts','.github/workflows/buildlunahook.yml','cpp/LunaHook/**']

jobs:
build_xp:
Expand Down

0 comments on commit d6f5300

Please sign in to comment.