a92afd64cd
Saving the Settings dialog calls _restart_watcher, which set+replaced the shared stop_event the updater loop also keyed off — so a settings save silently killed the auto-updater thread (race: survived one save, died on the next). Heartbeats kept flowing but the agent stopped checking for / applying updates until relaunch. Give the updater its own app-lifetime event (_app_stop), set only on Exit / when applying an update and untouched by watcher restarts. Adds test_thor_tray.py (4 lifecycle tests). Bump to v0.4.1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
; Inno Setup script for Thor Watcher
|
|
; Run through Inno Setup Compiler after building dist\thor-watcher.exe
|
|
|
|
[Setup]
|
|
AppName=Thor Watcher
|
|
AppVersion=0.4.1
|
|
AppPublisher=Terra-Mechanics Inc.
|
|
DefaultDirName={pf}\ThorWatcher
|
|
DefaultGroupName=Thor Watcher
|
|
OutputBaseFilename=thor-watcher-setup
|
|
Compression=lzma
|
|
SolidCompression=yes
|
|
; Require admin rights so we can write to Program Files
|
|
PrivilegesRequired=admin
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; Flags: unchecked
|
|
|
|
[Dirs]
|
|
; Create the agent_logs folder so the watcher can write logs on first run
|
|
Name: "{app}\agent_logs"
|
|
|
|
[Files]
|
|
; Main executable — built by build.bat / PyInstaller
|
|
Source: "dist\thor-watcher.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
[Icons]
|
|
; Start Menu shortcut
|
|
Name: "{group}\Thor Watcher"; Filename: "{app}\thor-watcher.exe"
|
|
; Start Menu uninstall shortcut
|
|
Name: "{group}\Uninstall Thor Watcher"; Filename: "{uninstallexe}"
|
|
; Desktop shortcut (optional — controlled by [Tasks] above)
|
|
Name: "{commondesktop}\Thor Watcher"; Filename: "{app}\thor-watcher.exe"; Tasks: desktopicon
|
|
; Startup folder shortcut so the tray app launches on login
|
|
Name: "{userstartup}\Thor Watcher"; Filename: "{app}\thor-watcher.exe"
|
|
|
|
[Run]
|
|
; Offer to launch the app after install (unchecked by default)
|
|
Filename: "{app}\thor-watcher.exe"; \
|
|
Description: "Launch Thor Watcher"; \
|
|
Flags: nowait postinstall skipifsilent unchecked
|