a mega cool windows xp app

feat: fix the installer

dunkirk.sh 93cadf27 b4f372f9

verified
Changed files
+15 -13
+1
.gitignore
··· 5 5 .clangd 6 6 compile_commands.json 7 7 build/ 8 + ShortwaveRadioInstaller.exe
+1
flake.nix
··· 168 168 pkgsCross.mingw32.buildPackages.gcc 169 169 self'.packages.deploy-to-xp 170 170 self'.packages.build-installer 171 + nsis 171 172 ]; 172 173 173 174 shellHook = ''
+13 -13
installer.nsi
··· 44 44 45 45 section "install" 46 46 setOutPath $INSTDIR 47 - 47 + 48 48 ; Main executable 49 - file "Shortwave.exe" 50 - 49 + file "result/bin/Shortwave.exe" 50 + 51 51 ; BASS audio library 52 - file "bass.dll" 53 - 52 + file "libs/bass.dll" 53 + 54 54 ; License and documentation 55 55 file "LICENSE.md" 56 56 file "README.md" 57 - 57 + 58 58 ; Create uninstaller 59 59 writeUninstaller "$INSTDIR\uninstall.exe" 60 - 60 + 61 61 ; Start menu shortcuts 62 62 createDirectory "$SMPROGRAMS\${APPNAME}" 63 63 createShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" "$INSTDIR\Shortwave.exe" 64 64 createShortCut "$SMPROGRAMS\${APPNAME}\Uninstall.lnk" "$INSTDIR\uninstall.exe" 65 - 65 + 66 66 ; Desktop shortcut 67 67 createShortCut "$DESKTOP\${APPNAME}.lnk" "$INSTDIR\Shortwave.exe" 68 - 68 + 69 69 ; Registry entries for Add/Remove Programs 70 70 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME} - ${DESCRIPTION}" 71 71 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" ··· 99 99 delete "$INSTDIR\LICENSE.md" 100 100 delete "$INSTDIR\README.md" 101 101 delete "$INSTDIR\uninstall.exe" 102 - 102 + 103 103 ; Remove shortcuts 104 104 delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" 105 105 delete "$SMPROGRAMS\${APPNAME}\Uninstall.lnk" 106 106 rmDir "$SMPROGRAMS\${APPNAME}" 107 107 delete "$DESKTOP\${APPNAME}.lnk" 108 - 108 + 109 109 ; Remove registry entries 110 110 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" 111 - 111 + 112 112 ; Remove installation directory 113 113 rmDir "$INSTDIR" 114 - sectionEnd 114 + sectionEnd