This commit is contained in:
naielv
2025-08-15 16:56:47 +02:00
parent 014bc50690
commit 7794d53802
2 changed files with 9 additions and 1 deletions

View File

@@ -13,6 +13,12 @@ jobs:
name: Build EXE
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: "Build Files"
run: "python3 build.py"
- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:

View File

@@ -22,7 +22,9 @@ for asset in ASSETS:
if asset != "sw.js":
PREFETCH += f'<link rel="prefetch" href="{asset}" />\n'
os.system("rm -r dist ; mkdir -p dist ; cp -r assets/* dist/")
shutil.rmtree("dist")
shutil.copytree("assets","dist", dirs_exist_ok=True)
def replace_handles(string):
string = string.replace("%%PREFETCH%%", PREFETCH)
string = string.replace("%%VERSIONCO%%", VERSIONCO)