Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 143ac47a15 | |||
| a97307f257 |
12
build.bat
12
build.bat
@@ -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
|
||||||
BIN
data.db.zip
BIN
data.db.zip
Binary file not shown.
Reference in New Issue
Block a user