Distinguish appIDs for production & nonproduction

This commit is contained in:
Simon Walton 2018-05-25 11:02:49 -07:00
parent f0570557b2
commit 65bb4c218e
2 changed files with 7 additions and 2 deletions

View file

@ -1173,7 +1173,11 @@ Section "-Core installation"
!insertmacro MUI_STARTMENU_WRITE_END
ApplicationID::Set "$SMPROGRAMS\$STARTMENU_FOLDER\@INTERFACE_SHORTCUT_NAME@.lnk" "com.highfidelity.interface"
!if @PRODUCTION_BUILD@ == 1
ApplicationID::Set "$SMPROGRAMS\$STARTMENU_FOLDER\@INTERFACE_SHORTCUT_NAME@.lnk" "com.highfidelity.interface"
!else
ApplicationID::Set "$SMPROGRAMS\$STARTMENU_FOLDER\@INTERFACE_SHORTCUT_NAME@.lnk" "com.highfidelity.interface-dev"
!endif
@CPACK_NSIS_EXTRA_INSTALL_COMMANDS@

View file

@ -867,6 +867,7 @@ function onContentLoaded() {
} catch (e) {
}
var appUserModelId = 'com.highfidelity.interface'; // For Windows jump list, etc.
if (currentVersion !== null) {
const CHECK_FOR_UPDATES_INTERVAL_SECONDS = 60 * 30;
var hasShownUpdateNotification = false;
@ -878,7 +879,7 @@ function onContentLoaded() {
title: 'An update is available!',
message: 'High Fidelity version ' + latestVersion + ' is available',
wait: true,
appID: 'com.highfidelity.interface',
appID: appUserModelId,
url: url
});
hasShownUpdateNotification = true;