Beta versions support: SxS support, in-app env/instance display (#1606)
* Script for beta config; unique data dir, in-app env/type display To release a beta build, increment the version and add -beta-N to the end, then go through all the standard release activities. The prepare-build npm script then updates key bits of the package.json to ensure that the beta build can be installed alongside a production build. This includes a new name ('Signal Beta') and a different location for application data. Note: Beta builds can be installed alongside production builds. As part of this, a couple new bits of data are shown across the app: - Environment (development or test, not shown if production) - App Instance (disabled in production; used for multiple accounts) These are shown in: - The window title - both environment and app instance. You can tell beta builds because the app name, preceding these data bits, is different. - The about window - both environment and app instance. You can tell beta builds from the version number. - The header added to the debug log - just environment. The version number will tell us if it's a beta build, and app instance isn't helpful. * Turn on single-window mode in non-production modes Because it's really frightening when you see 'unable to read from db' errors in the console. * aply.sh: More instructions for initial setup and testing * Gruntfile: Get consistent with use of package.json datas * Linux: manually update desktop keys, since macros not available
This commit is contained in:
parent
a3fbb9a6aa
commit
c94d4efd18
13 changed files with 158 additions and 34 deletions
|
@ -14,6 +14,15 @@
|
|||
var initialLoadComplete = false;
|
||||
window.owsDesktopApp = {};
|
||||
|
||||
var title = window.config.name;
|
||||
if (window.config.environment !== 'production') {
|
||||
title += ' - ' + window.config.environment;
|
||||
}
|
||||
if (window.config.appInstance) {
|
||||
title += ' - ' + window.config.appInstance;
|
||||
}
|
||||
window.config.title = window.document.title = title;
|
||||
|
||||
// start a background worker for ecc
|
||||
textsecure.startWorker('js/libsignal-protocol-worker.js');
|
||||
Whisper.KeyChangeListener.init(textsecure.storage.protocol);
|
||||
|
|
|
@ -64,10 +64,10 @@
|
|||
|
||||
if (newUnreadCount > 0) {
|
||||
window.setBadgeCount(newUnreadCount);
|
||||
window.document.title = "Signal (" + newUnreadCount + ")";
|
||||
window.document.title = window.config.title + " (" + newUnreadCount + ")";
|
||||
} else {
|
||||
window.setBadgeCount(0);
|
||||
window.document.title = "Signal";
|
||||
window.document.title = window.config.title;
|
||||
}
|
||||
},
|
||||
startPruning: function() {
|
||||
|
|
|
@ -69,7 +69,12 @@ if (window.console) {
|
|||
// The mechanics of preparing a log for publish
|
||||
|
||||
function getHeader() {
|
||||
return window.navigator.userAgent + ' node/' + window.config.node_version;
|
||||
let header = window.navigator.userAgent;
|
||||
|
||||
header += ' node/' + window.config.node_version;
|
||||
header += ' env/' + window.config.environment;
|
||||
|
||||
return header;
|
||||
}
|
||||
|
||||
function getLevel(level) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue