Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added build/installer-sidebar.bmp
Binary file not shown.
31 changes: 31 additions & 0 deletions build/installer.nsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
!macro preInit
; This macro is inserted at the beginning of the NSIS .OnInit callback
; Check Windows version and enforce minimum Windows 10 requirement
${If} ${AtLeastWin10}
; Windows 10 or later - continue with installation
Goto continue_install
${Else}
MessageBox MB_OK|MB_ICONSTOP "This application requires Windows 10 or later.$\r$\n$\r$\nYour Windows version is not supported.$\r$\n$\r$\nPlease upgrade to Windows 10 or later to continue."
Abort "Windows version requirement not met"
${EndIf}

continue_install:
; Continue with normal installation process
!macroend

!ifndef BUILD_UNINSTALLER
Function AddToStartup
CreateShortCut "$SMSTARTUP\Session.lnk" "$INSTDIR\Session.exe" ""
FunctionEnd

; Using the readme setting as an easy way to add an add to startup option
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Start Session when Windows starts"
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION AddToStartup
!endif

!macro customUnInstall
; Custom uninstall macro
; This runs during the uninstallation process
Delete "$SMSTARTUP\Session.lnk"
!macroend
2 changes: 1 addition & 1 deletion build/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Session uses the Session encryption protocol and the Oxen blockchain’s decentr

<h1 id="supported-platforms">Supported Platforms</h1>

<!-- NOTE Make sure to verify the supported platforms have not changed before making a release -->
<!-- NOTE Make sure to verify the supported platforms have not changed before making a release. Mac minimumSystemVersion in package.json and the Windows version in build/installer.nsh may need to be updated too -->

Session requires Windows 10 or later, macOS Ventura (13) or later, or a Linux distribution with glibc 2.35 or later like Debian 12 or Ubuntu 22.04.

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"minimumSystemVersion": "13.0.0",
"extendInfo": {
"NSCameraUsageDescription": "Session requires camera access to record video.",
"NSMicrophoneUsageDescription": "Session requires microphone access to record audio."
Expand All @@ -240,7 +241,9 @@
"nsis": {
"deleteAppDataOnUninstall": true,
"oneClick": false,
"allowToChangeInstallationDirectory": true
"allowToChangeInstallationDirectory": true,
"include": "build/installer.nsh",
"installerSidebar": "build/installer-sidebar.bmp"
},
"linux": {
"category": "Network;InstantMessaging;Chat",
Expand Down