This commit is contained in:
Your Name
2026-08-03 10:52:51 +08:00
parent 5ac803f7a6
commit 1048b9ba29
29 changed files with 436 additions and 597 deletions
+4 -2
View File
@@ -18,7 +18,9 @@ if (-not $SkipAppBuild) {
}
}
$appExe = Join-Path $projectRoot "dist\ZhenAI-WeCom-Assistant-v$version.exe"
$appName = "ZhenAI-WeCom-Assistant-v$version"
$appDir = Join-Path $projectRoot "dist\$appName"
$appExe = Join-Path $appDir "$appName.exe"
if (-not (Test-Path -LiteralPath $appExe)) {
throw ("Application EXE was not found: " + $appExe)
}
@@ -74,7 +76,7 @@ $outputDir = Join-Path $projectRoot "dist\installer"
New-Item -ItemType Directory -Path $outputDir -Force | Out-Null
Push-Location $projectRoot
try {
& $makensis "/V3" "/INPUTCHARSET" "UTF8" ("/DAPP_VERSION=" + $version) ("/DAPP_FILE_VERSION=" + $fileVersion) ("/DSOURCE_EXE=" + $appExe) $nsi
& $makensis "/V3" "/INPUTCHARSET" "UTF8" ("/DAPP_VERSION=" + $version) ("/DAPP_FILE_VERSION=" + $fileVersion) ("/DSOURCE_DIR=" + $appDir) $nsi
if ($LASTEXITCODE -ne 0) {
throw "Installer compilation failed"
}