Skip to content

Commit

Permalink
Download and install updates without the help of electron-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Apr 6, 2019
1 parent 82dc723 commit c8ea2e9
Show file tree
Hide file tree
Showing 32 changed files with 75,972 additions and 516 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ coverage/**
dist/**

# Generated files
js/curve/*
js/components.js
js/libtextsecure.js
js/util_worker.js
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ts/util/lint/exceptions.json
# Third-party files
node_modules/**
components/**
js/curve/**
js/Mp3LameEncoder.min.js
js/WebAudioRecorderMp3.js
js/libsignal-protocol-worker.js
Expand Down
16 changes: 16 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,22 @@
"description":
"Shown in a quotation of a message containing a photo if no text was originally provided with that image"
},
"cannotUpdate": {
"message": "Cannot Update",
"description": "Shown as the title of our update error dialogs on windows"
},
"cannotUpdateDetail": {
"message":
"Signal Desktop failed to update, but there is a new version available. Please go to https://signal.org/download and install the new version manually, then either contact support or file a bug about this problem.",
"description":
"Shown if a general error happened while trying to install update package"
},
"readOnlyVolume": {
"message":
"Signal Desktop is likely in a macOS quarantine, and will not be able to auto-update. Please try moving Signal.app to /Applications with Finder.",
"description":
"Shown on MacOS if running on a read-only volume and we cannot update"
},
"ok": {
"message": "OK"
},
Expand Down
89 changes: 0 additions & 89 deletions app/auto_update.js

This file was deleted.

2 changes: 2 additions & 0 deletions app/window_state.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export function markShouldQuit(): void;
export function shouldQuit(): void;
5 changes: 4 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"serverUrl": "https://textsecure-service-staging.whispersystems.org",
"cdnUrl": "https://cdn-staging.signal.org",
"contentProxyUrl": "http://contentproxy.signal.org:443",
"disableAutoUpdate": false,
"updatesUrl": "https://updates2.signal.org/desktop",
"updatesPublicKey":
"fd7dd3de7149dc0a127909fee7de0f7620ddd0de061b37a2c303e37de802a401",
"updatesEnabled": false,
"openDevTools": false,
"buildExpiration": 0,
"certificateAuthority":
Expand Down
1 change: 0 additions & 1 deletion config/development.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"storageProfile": "development",
"disableAutoUpdate": true,
"openDevTools": true
}
3 changes: 2 additions & 1 deletion config/production.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"serverUrl": "https://textsecure-service.whispersystems.org",
"cdnUrl": "https://cdn.signal.org",
"serverTrustRoot": "BXu6QIKVz5MA8gstzfOgRQGqyLqOwNKHL6INkv3IHWMF"
"serverTrustRoot": "BXu6QIKVz5MA8gstzfOgRQGqyLqOwNKHL6INkv3IHWMF",
"updatesEnabled": true
}
1 change: 0 additions & 1 deletion config/staging.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"storageProfile": "staging",
"disableAutoUpdate": true,
"openDevTools": true
}
1 change: 0 additions & 1 deletion config/test-lib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"storageProfile": "test",
"disableAutoUpdate": true,
"openDevTools": false
}
1 change: 0 additions & 1 deletion config/test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"storageProfile": "test",
"disableAutoUpdate": true,
"openDevTools": false
}
2 changes: 2 additions & 0 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,8 @@
function onEmpty() {
initialLoadComplete = true;

window.readyForUpdates();

let interval = setInterval(() => {
const view = window.owsDesktopApp.appView;
if (view) {
Expand Down
Loading

0 comments on commit c8ea2e9

Please sign in to comment.