Files
lunch-games/postbuild.py
2025-05-02 15:41:09 +02:00

19 lines
407 B
Python

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"),
)