Skip to content

Commit f66d941

Browse files
committed
feat: 更新 .gitignore 以忽略特定的 JSON 文件和配置文件;添加打包脚本 build.bat
1 parent c969a7f commit f66d941

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,5 +209,11 @@ __marimo__/
209209

210210
tmp
211211
temp
212-
*.json
212+
# Ignore only temporary or specific JSON files, not all JSON files
213+
tmp/*.json
214+
temp/*.json
215+
data/
216+
config.json
217+
chat_history.json
218+
# Add more specific patterns as needed
213219
*.mp3

build.bat

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@echo off
2+
chcp 65001 >nul
3+
echo ========= [PVenus] 开始打包 main.py =========
4+
5+
:: 检查 Nuitka 是否已安装
6+
where nuitka >nul 2>nul
7+
if %errorlevel% neq 0 (
8+
echo [错误] 未安装 Nuitka,请运行 pip install nuitka 后重试!
9+
pause
10+
exit /b
11+
)
12+
13+
:: 开始打包
14+
nuitka GUI/mainGUI.py ^
15+
--standalone ^
16+
--onefile ^
17+
--windows-disable-console ^
18+
--enable-plugin=tk-inter ^
19+
--output-dir=build ^
20+
--show-progress
21+
22+
echo.
23+
echo ========= ✅ 打包完成!请查看 build\main.exe =========
24+
pause

0 commit comments

Comments
 (0)