更新
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user