@@ -212,7 +212,7 @@ if ($LASTEXITCODE -ne 0) {
212212$gui = Join-Path $extractDir " procnote.exe"
213213$launcher = Join-Path $extractDir " bin\procnote.exe"
214214$pathUpdater = Join-Path $extractDir " installer\update-user-path.ps1"
215- $sourceLauncher = Join-Path $PWD " src-tauri\launchers\bin\procnote-launcher .exe"
215+ $sourceLauncher = Join-Path $PWD " src-tauri\launchers\bin\procnote.exe"
216216$sourcePathUpdater = Join-Path $PWD " src-tauri\nsis\update-user-path.ps1"
217217
218218$metadataJson = & cargo metadata -- no- deps -- format-version 1 | Out-String
@@ -245,6 +245,9 @@ if (Test-Path (Join-Path $extractDir "cli")) {
245245if (Get-ChildItem $extractDir - Recurse - Filter " procnote.cmd" - File) {
246246 throw " Obsolete command-script launcher is still packaged"
247247}
248+ if (Get-ChildItem $extractDir - Recurse - Filter " procnote-launcher.exe" - File) {
249+ throw " NSIS still contains the internal launcher filename"
250+ }
248251if ((Get-FileHash $sourceLauncher ).Hash -ne (Get-FileHash $launcher ).Hash) {
249252 throw " Packaged launcher differs from its freshly built source file"
250253}
@@ -276,6 +279,9 @@ if ($msiLauncherMatches.Count -ne 1) {
276279if (Get-ChildItem $msiExtractDir - Recurse - Filter " procnote.cmd" - File) {
277280 throw " MSI still contains the obsolete command-script launcher"
278281}
282+ if (Get-ChildItem $msiExtractDir - Recurse - Filter " procnote-launcher.exe" - File) {
283+ throw " MSI still contains the internal launcher filename"
284+ }
279285if ($msiPathUpdaterMatches.Count -ne 1 -or
280286 -not $msiPathUpdaterMatches [0 ].FullName.EndsWith(" \installer\update-user-path.ps1" , [System.StringComparison ]::OrdinalIgnoreCase)) {
281287 throw " MSI does not contain the packaged PATH updater under its installer directory"
0 commit comments