update build

This commit is contained in:
2025-08-22 15:18:14 +08:00
parent a97307f257
commit 143ac47a15

View File

@@ -1,5 +1,15 @@
del cyzg.zip del cyzg.zip
7z a -tzip -mx=9 cyzg.zip main.py backend.py components/ -x!components/__pycache__/ 7z a -tzip -mx=9 cyzg.zip main.py backend.py components/ -x!components/__pycache__/
REM 7z a -tzip -mx=9 data.db.zip data.db
if /i "%~1"=="db" (
echo 正在压缩 data.db...
7z a -tzip -mx=9 data.db.zip data.db
) else (
echo use data.db.zip cash.
echo run `./build.bat db` to refresh cash
)
python embed.py python embed.py
gcc -Os -s main.c -o cyzg.exe -Wl,--gc-sections -Wl,--strip-all gcc -Os -s main.c -o cyzg.exe -Wl,--gc-sections -Wl,--strip-all
echo done