Problem
generate-desktop-config.ps1 accepts -Version and -InstallType parameters, but neither the Inno Setup installer nor the portable launcher passes them. This causes the generated desktop-config.json to contain default/empty values instead of the actual install version.
Evidence
Call site 1: Inno Setup installer (cat-cafe.iss:193)
Parameters: "-ExecutionPolicy Bypass -Command ""& '{app}\scripts\generate-desktop-config.ps1' -AppDir '{app}'""";
Missing: -InstallType 'installer' -Version '{#MyAppVersion}'
Call site 2: Portable launcher (start-portable.bat:33)
powershell ... -Command "& '%APPDIR%\scripts\generate-desktop-config.ps1' -AppDir '%APPDIR%'"
Missing: -InstallType 'portable' -Version ??? (batch file can't easily read package.json)
Impact
desktop-config.json version field is wrong → F257 in-app updater can't correctly detect available upgrades
installType field is missing → installer vs portable distinction lost at runtime
Suggested Fix
- Inno Setup: Add parameters to the Run section call:
-Version '{#MyAppVersion}' -InstallType 'installer'
- Portable launcher: Either hardcode the version at build time (template substitution) or read it from
package.json via PowerShell
Related
[宪宪/claude-opus-4-6 🐾]
Problem
generate-desktop-config.ps1accepts-Versionand-InstallTypeparameters, but neither the Inno Setup installer nor the portable launcher passes them. This causes the generateddesktop-config.jsonto contain default/empty values instead of the actual install version.Evidence
Call site 1: Inno Setup installer (
cat-cafe.iss:193)Missing:
-InstallType 'installer' -Version '{#MyAppVersion}'Call site 2: Portable launcher (
start-portable.bat:33)Missing:
-InstallType 'portable' -Version ???(batch file can't easily read package.json)Impact
desktop-config.jsonversion field is wrong → F257 in-app updater can't correctly detect available upgradesinstallTypefield is missing → installer vs portable distinction lost at runtimeSuggested Fix
package.jsonvia PowerShellRelated
[宪宪/claude-opus-4-6 🐾]