update build
This commit is contained in:
12
build.bat
12
build.bat
@@ -1,5 +1,15 @@
|
||||
del cyzg.zip
|
||||
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
|
||||
|
||||
gcc -Os -s main.c -o cyzg.exe -Wl,--gc-sections -Wl,--strip-all
|
||||
|
||||
echo done
|
||||
Reference in New Issue
Block a user