packaging: Flatpak manifest, desktop file, metainfo, NSIS installer
Neutral placeholder app id io.github.faumaray.TsClient and name "TS Client". The Flatpak builds offline from generated cargo sources on the 25.08 runtime with portal-based push-to-talk and screen capture, PulseAudio, PipeWire, notifications and Secret Service access. The Windows README covers the toolchain (MSVC, CMake, NASM, vcpkg libvpx) and signing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
1740d61804
commit
a51b295f7d
7 files changed
+301
No files matched your search
@@ -0,0 +1,86 @@
|
||||
; NSIS installer for the desktop app (tsc-desktop.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\tsc-desktop.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"
|
||||
;
|
||||
; The product name and app id are placeholders until the product has a name.
|
||||
|
||||
Unicode true
|
||||
SetCompressor /SOLID lzma
|
||||
|
||||
!ifndef VERSION
|
||||
!define VERSION "0.1.0"
|
||||
!endif
|
||||
!ifndef BINARY
|
||||
!define BINARY "..\..\target\release\tsc-desktop.exe"
|
||||
!endif
|
||||
!ifndef OUTDIR
|
||||
!define OUTDIR "."
|
||||
!endif
|
||||
|
||||
!define APP_NAME "TS Client"
|
||||
!define APP_ID "io.github.faumaray.TsClient"
|
||||
!define PUBLISHER "Faumaray"
|
||||
!define EXE "tsc-desktop.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}\tsc-desktop-${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}"
|
||||
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%\tsc (identities, bookmarks, history) is kept.
|
||||
Delete "$INSTDIR\${EXE}"
|
||||
Delete "$INSTDIR\uninstall.exe"
|
||||
RMDir "$INSTDIR"
|
||||
Delete "$SMPROGRAMS\${APP_NAME}.lnk"
|
||||
DeleteRegKey HKLM "${UNINSTALL_KEY}"
|
||||
SectionEnd
|
||||
Reference in new issue
Block a user