Skip to content

Commit 8b177c8

Browse files
committed
Update scripts.
1 parent 65fd534 commit 8b177c8

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

clone.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import sys, os, subprocess
22

3-
import sdl3.SDL
4-
53
os.environ["SDL_DOC_GENERATOR"] = "0"
64
os.environ["SDL_DISABLE_METADATA"] = "1"
75
os.environ["SDL_CHECK_BINARY_VERSION"] = "0"

merge.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
import sdl3, shutil, zipfile
1010

1111
def main(argv):
12-
repos, binaries = sdl3.SDL_REPOSITORIES, list(sdl3.SDL_BINARY_VAR_MAP_INV.keys())
1312
workDir, outDir = os.getcwd(), "artifacts"
1413

1514
if not os.path.exists(os.path.join(workDir, outDir)):
1615
os.mkdir(os.path.join(workDir, outDir))
1716

18-
for index, repo in enumerate(repos):
19-
file = sdl3.SDL_BINARY_PATTERNS[sdl3.SDL_SYSTEM][0].format(binaries[index])
20-
path = os.path.join(workDir, repo, "build", *(["Release", file] if sdl3.SDL_SYSTEM in ["Windows"] else [file]))
17+
for module in sdl3.SDL_MODULES:
18+
file = sdl3.SDL_BINARY_PATTERNS[sdl3.SDL_SYSTEM][0].format(module)
19+
path = os.path.join(workDir, module.replace("3", ""), "build", *(["Release", file] if sdl3.SDL_SYSTEM in ["Windows"] else [file]))
2120
if os.path.exists(path): shutil.copyfile(path, os.path.join(workDir, outDir, file))
2221

2322
with zipfile.ZipFile(f"{outDir}.zip", "w", zipfile.ZIP_DEFLATED) as ref:

0 commit comments

Comments
 (0)