CI / Test (ubuntu-latest) (push) Canceled after 0s
CI / Test (windows-latest) (push) Canceled after 0s
CI / Storage tests on PostgreSQL (push) Canceled after 0s
CI / Complement (federation off) (push) Canceled after 0s
CI / golangci-lint (push) Canceled after 0s
CI / Smoke test the binary (push) Canceled after 0s
CI / Admin panel (push) Canceled after 0s
CI / Web client (push) Canceled after 0s
CI / Desktop client (ubuntu-24.04) (push) Canceled after 0s
CI / Desktop client (windows-latest) (push) Canceled after 0s
Web client (also what the desktop app runs): - Simplified Sliding Sync (MSC4186) when the homeserver advertises org.matrix.simplified_msc3575. src/matrix/sliding.ts answers the SDK's GET /sync with a sliding sync request and rewrites the response into the /sync shape, as the Android app does; the SDK's own sliding sync mode doesn't sort thread replies into threads. 20 rooms first, then every room (up to 1000); to_device, e2ee, account data, receipts and typing extensions; M_UNKNOWN_POS starts a new connection. The SDK's /members?at=<sync token> drops the token, which here is ours. Settings can switch back to /sync. - Notifications for new messages and incoming calls while Warp isn't in front, by the account's push rules, evaluated after decryption. The browser's Notification API once turned on in Settings, or the desktop app's bridge (window.warpDesktop). One per room; a click opens it. - Voice messages: record from the composer, sent as m.audio with MSC3245's voice marker and MSC1767's duration and waveform (encrypted in encrypted rooms); a waveform player in the timeline. - @warp/ui: a slot for extra composer buttons; bell-off, play and pause icons. Desktop app: - System notifications through Wails' notifications service, fed by /_desktop/bridge.js (/_desktop/notify, JSON only); clicking one shows the window and opens the room. - Tray icon with Open and Quit; closing the window hides it (a one-time notification says so), File > Quit ends it. The page title goes to the window and the tray tooltip, the unread count to the taskbar or Dock badge. - Auto-update from a Wails update manifest at DESKTOP_UPDATE_URL: a quiet check a minute after start and every six hours, a notification when a newer version exists, Help > Check for updates opens the update window. Optional signature key (DESKTOP_UPDATE_KEY). Linux package installs leave updates to the package manager. build/manifest writes the manifest. - Per-user NSIS installer (make desktop-windows-installer), the macOS bundle zipped for the updater, a desktop CI job, and a Desktop release workflow that builds all three platforms and the manifest. Tested on Windows against a local homeserver: sliding sync with E2EE, threads and a server restart; notifications (toast history), close to tray, relaunch restoring the window; voice messages recorded, sent and played, encrypted too; the update check finding a newer version. Not tested: installing an update, the NSIS installer, CI, macOS and Linux. Code signing needs certificates and isn't done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
104 lines
3.6 KiB
NSIS
104 lines
3.6 KiB
NSIS
; The Windows installer for warp-desktop: `make desktop-windows-installer`
|
|
; (needs NSIS's makensis). Installs for the current user, under
|
|
; %LocalAppData%\Programs\Warp, so it needs no administrator rights and the
|
|
; app's updater can replace its own executable.
|
|
;
|
|
; makensis -DVERSION=1.2.3 -DEXE=..\..\..\..\bin\warp-desktop.exe -DOUT=..\..\..\..\bin\warp-desktop-setup.exe installer.nsi
|
|
;
|
|
; Signing: set SIGN to a command that signs the file named by %1, e.g.
|
|
; -DSIGN="signtool sign /fd sha256 /tr http://timestamp.digicert.com /td sha256 /a %1"
|
|
|
|
Unicode true
|
|
ManifestDPIAware true
|
|
RequestExecutionLevel user
|
|
SetCompressor /SOLID lzma
|
|
|
|
!ifndef VERSION
|
|
!define VERSION "0.0.0"
|
|
!endif
|
|
!ifndef EXE
|
|
!error "pass -DEXE=path\to\warp-desktop.exe"
|
|
!endif
|
|
!ifndef OUT
|
|
!define OUT "warp-desktop-setup.exe"
|
|
!endif
|
|
|
|
!define NAME "Warp"
|
|
!define APPEXE "warp-desktop.exe"
|
|
!define UNINSTKEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\Warp"
|
|
|
|
!ifdef SIGN
|
|
!finalize '${SIGN}'
|
|
!uninstfinalize '${SIGN}'
|
|
!endif
|
|
|
|
Name "${NAME}"
|
|
OutFile "${OUT}"
|
|
InstallDir "$LOCALAPPDATA\Programs\${NAME}"
|
|
InstallDirRegKey HKCU "${UNINSTKEY}" "InstallLocation"
|
|
|
|
VIProductVersion "${VERSION}.0"
|
|
VIFileVersion "${VERSION}.0"
|
|
VIAddVersionKey "ProductName" "${NAME}"
|
|
VIAddVersionKey "FileDescription" "${NAME} installer"
|
|
VIAddVersionKey "ProductVersion" "${VERSION}"
|
|
VIAddVersionKey "FileVersion" "${VERSION}"
|
|
|
|
!include "MUI2.nsh"
|
|
!define MUI_ICON "icon.ico"
|
|
!define MUI_UNICON "icon.ico"
|
|
!define MUI_ABORTWARNING
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APPEXE}"
|
|
!define MUI_FINISHPAGE_RUN_TEXT "Open Warp"
|
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
!insertmacro MUI_PAGE_FINISH
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
; The app runs in WebView2, which Windows 11 has. On an older Windows
|
|
; without it, the installer says where to get it rather than bundling it.
|
|
Function .onInit
|
|
ReadRegStr $0 HKLM "SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" "pv"
|
|
StrCmp $0 "" 0 found
|
|
ReadRegStr $0 HKCU "Software\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" "pv"
|
|
StrCmp $0 "" 0 found
|
|
MessageBox MB_YESNO|MB_ICONEXCLAMATION "Warp needs the Microsoft Edge WebView2 Runtime, which isn't installed.$\n$\nOpen the download page?" IDNO found
|
|
ExecShell "open" "https://developer.microsoft.com/microsoft-edge/webview2/"
|
|
found:
|
|
FunctionEnd
|
|
|
|
Section "Warp"
|
|
; A running Warp holds its executable open.
|
|
nsExec::Exec 'taskkill /IM ${APPEXE} /F'
|
|
SetOutPath "$INSTDIR"
|
|
File "/oname=${APPEXE}" "${EXE}"
|
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
|
|
|
CreateShortcut "$SMPROGRAMS\${NAME}.lnk" "$INSTDIR\${APPEXE}"
|
|
|
|
WriteRegStr HKCU "${UNINSTKEY}" "DisplayName" "${NAME}"
|
|
WriteRegStr HKCU "${UNINSTKEY}" "DisplayVersion" "${VERSION}"
|
|
WriteRegStr HKCU "${UNINSTKEY}" "DisplayIcon" "$INSTDIR\${APPEXE}"
|
|
WriteRegStr HKCU "${UNINSTKEY}" "InstallLocation" "$INSTDIR"
|
|
WriteRegStr HKCU "${UNINSTKEY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
|
WriteRegStr HKCU "${UNINSTKEY}" "Publisher" "${NAME}"
|
|
WriteRegDWORD HKCU "${UNINSTKEY}" "NoModify" 1
|
|
WriteRegDWORD HKCU "${UNINSTKEY}" "NoRepair" 1
|
|
SectionEnd
|
|
|
|
; Uninstalling leaves %AppData%\Warp (the chosen homeserver) and the
|
|
; webview's storage in %LocalAppData%\Warp\WebView2 (sessions and
|
|
; encryption keys), so reinstalling keeps you signed in.
|
|
Section "Uninstall"
|
|
nsExec::Exec 'taskkill /IM ${APPEXE} /F'
|
|
Delete "$SMPROGRAMS\${NAME}.lnk"
|
|
Delete "$INSTDIR\${APPEXE}"
|
|
Delete "$INSTDIR\uninstall.exe"
|
|
RMDir "$INSTDIR"
|
|
DeleteRegKey HKCU "${UNINSTKEY}"
|
|
SectionEnd
|