- 新增 .github/workflows/build-windows.yml,在 windows-latest runner 上构建 NSIS 安装包 - 修复 PYTHON_BIN 在 Windows 下需要 .exe 后缀 - 更新 extraResources 为目录式 glob,同时兼容 macOS (main) 和 Windows (main.exe) - package.json 新增 win/nsis electron-builder 目标配置 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
70a56ede36
commit
cb2c186f7f
@@ -8,7 +8,11 @@ const APPDATA_DIR = path.join(app.getPath("userData"), "excel-batch-editor", "te
|
||||
fs.mkdirSync(APPDATA_DIR, { recursive: true });
|
||||
|
||||
const PYTHON_BIN = app.isPackaged
|
||||
? path.join(process.resourcesPath, "python", "main")
|
||||
? path.join(
|
||||
process.resourcesPath,
|
||||
"python",
|
||||
process.platform === "win32" ? "main.exe" : "main"
|
||||
)
|
||||
: path.join(__dirname, "../../python/main.py");
|
||||
|
||||
function callPython(payload) {
|
||||
|
||||
Reference in New Issue
Block a user