Organized build process

This commit is contained in:
2025-05-02 15:41:09 +02:00
parent 2e723672e2
commit 51ead7bc35
4 changed files with 36 additions and 10 deletions

19
postbuild.py Normal file
View File

@ -0,0 +1,19 @@
import os
import shutil
if os.path.exists("launchers"):
shutil.rmtree("launchers")
os.mkdir("launchers")
open("launchers/.gitignore", "w").write("*")
for game in os.listdir("build/games"):
path = os.path.join("build/games", game)
if not os.path.isdir(path):
continue
shutil.copyfile(
os.path.join(path, game+".exe"),
os.path.join("launchers", game+".exe"),
)