The product is Voelin (app id io.github.faumaray.Voelin), everywhere: - crates tsc-* -> voelin-* (and voelin-fuzz), the desktop binary tsc-desktop -> voelin, the development CLI tsctl -> voelinctl; - the Android app: applicationId, Kotlin package io.github.faumaray.voelin, VoelinApp, libvoelin_android.so (JNI class names follow); - TSC_* environment variables -> VOELIN_*, Gradle properties tsc.* -> voelin.*, signing secrets VOELIN_SIGNING_*; - the data/config/cache/state folder tsc -> voelin, the keyring service, thread names, the dev compose project; - desktop file, metainfo, icon, Flatpak manifest, NSIS installer, docs. The gateway keeps its name: bin tsgw (crate voelin-gateway), TSGW_* env vars, the tsgw.v1+json protocol, the tsgw image. The window title and the About page show "Voelin <version>" from voelin_platform::APP_NAME. Packages (scripts/package.sh): the app only (voelin, voelin.exe, APKs, Flatpak). voelinctl is a development tool and in no package. tsgw is for servers and now its own Linux package, tsgw_<v>_amd64.deb and tsgw-<v>-linux-x86_64.tar.gz, with a sandboxed systemd unit (packaging/linux/tsgw.service; /etc/tsgw config, /var/lib/tsgw state) and dependencies of its own (no GUI libraries). docs/gateway-admin.md has an Install section. Fixes: - package-windows: makensis on Windows found no file through "D:/a/..." paths; pass Windows paths (cygpath -w). - StartupWMClass is the app id, which the app sets as its X11 WM_CLASS (it was the binary name, so desktops could not match the window). - Gradle wrapper download timeout 10 s -> 60 s (slow proxies). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
89 lines
3.0 KiB
NSIS
89 lines
3.0 KiB
NSIS
; NSIS installer for the desktop app (voelin.exe). See README.md.
|
|
;
|
|
; makensis /DVERSION=0.1.0 packaging\windows\installer.nsi
|
|
;
|
|
; Paths are relative to this file. Optional defines:
|
|
; BINARY the executable (default ..\..\target\release\voelin.exe)
|
|
; OUTDIR where the installer goes (default: next to this file)
|
|
; SIGN a signing command; "%1" is replaced by the file to sign, e.g.
|
|
; /DSIGN="signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /a %1"
|
|
;
|
|
|
|
Unicode true
|
|
SetCompressor /SOLID lzma
|
|
|
|
!ifndef VERSION
|
|
!define VERSION "0.1.0"
|
|
!endif
|
|
!ifndef BINARY
|
|
!define BINARY "..\..\target\release\voelin.exe"
|
|
!endif
|
|
!ifndef OUTDIR
|
|
!define OUTDIR "."
|
|
!endif
|
|
|
|
!define APP_NAME "Voelin"
|
|
!define APP_ID "io.github.faumaray.Voelin"
|
|
!define PUBLISHER "Faumaray"
|
|
!define EXE "voelin.exe"
|
|
!define UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_ID}"
|
|
|
|
!ifdef SIGN
|
|
; Sign the installer and the uninstaller it writes (NSIS 3.08+).
|
|
!finalize '${SIGN}'
|
|
!uninstfinalize '${SIGN}'
|
|
!endif
|
|
|
|
Name "${APP_NAME}"
|
|
OutFile "${OUTDIR}\voelin-${VERSION}-setup.exe"
|
|
InstallDir "$PROGRAMFILES64\${APP_NAME}"
|
|
InstallDirRegKey HKLM "${UNINSTALL_KEY}" "InstallLocation"
|
|
RequestExecutionLevel admin
|
|
|
|
VIProductVersion "${VERSION}.0"
|
|
VIAddVersionKey "ProductName" "${APP_NAME}"
|
|
VIAddVersionKey "ProductVersion" "${VERSION}"
|
|
VIAddVersionKey "FileVersion" "${VERSION}"
|
|
VIAddVersionKey "CompanyName" "${PUBLISHER}"
|
|
VIAddVersionKey "FileDescription" "${APP_NAME} installer"
|
|
VIAddVersionKey "LegalCopyright" "MIT OR Apache-2.0"
|
|
|
|
!include "MUI2.nsh"
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\${EXE}"
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
!insertmacro MUI_PAGE_FINISH
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
Section "Install"
|
|
SetOutPath "$INSTDIR"
|
|
File "/oname=${EXE}" "${BINARY}"
|
|
; Also shown in the app's About page.
|
|
File "/oname=THIRD_PARTY_NOTICES.md" "..\..\THIRD_PARTY_NOTICES.md"
|
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
|
|
|
CreateShortcut "$SMPROGRAMS\${APP_NAME}.lnk" "$INSTDIR\${EXE}"
|
|
|
|
WriteRegStr HKLM "${UNINSTALL_KEY}" "DisplayName" "${APP_NAME}"
|
|
WriteRegStr HKLM "${UNINSTALL_KEY}" "DisplayVersion" "${VERSION}"
|
|
WriteRegStr HKLM "${UNINSTALL_KEY}" "Publisher" "${PUBLISHER}"
|
|
WriteRegStr HKLM "${UNINSTALL_KEY}" "InstallLocation" "$INSTDIR"
|
|
WriteRegStr HKLM "${UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\${EXE}"
|
|
WriteRegStr HKLM "${UNINSTALL_KEY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
|
WriteRegStr HKLM "${UNINSTALL_KEY}" "QuietUninstallString" '"$INSTDIR\uninstall.exe" /S'
|
|
WriteRegDWORD HKLM "${UNINSTALL_KEY}" "NoModify" 1
|
|
WriteRegDWORD HKLM "${UNINSTALL_KEY}" "NoRepair" 1
|
|
SectionEnd
|
|
|
|
Section "Uninstall"
|
|
; User data in %APPDATA%\voelin (identities, bookmarks, history) is kept.
|
|
Delete "$INSTDIR\${EXE}"
|
|
Delete "$INSTDIR\THIRD_PARTY_NOTICES.md"
|
|
Delete "$INSTDIR\uninstall.exe"
|
|
RMDir "$INSTDIR"
|
|
Delete "$SMPROGRAMS\${APP_NAME}.lnk"
|
|
DeleteRegKey HKLM "${UNINSTALL_KEY}"
|
|
SectionEnd
|