Commit Graph

183 Commits

Author SHA1 Message Date
csett86 ae306f5c5d
mac: Enable autoupdate by sign and notarize via github action (#581)
mac: Enable autoupdate by sign and notarize via github action

Signed and notarized binaries are the precondition for autoupdates on
mac. Additionally Gatekeeper on 10.15+ is happy and allows to open the
app instead of blocking it.

The notarize step is added unconditionally, as it only emits a warning if
the notarization API key is not set, but it does not break the build.

This is an upstreaming of https://github.com/csett86/jitsi-meet-electron
where it worked since March 2020.

On CI, only sign if not triggered by pull request, as these will fail (as secrets
are not available to pull request builds).

The required github secrets (signing key, cert and notarize API login, password and team id) are:

Signing

Open the Keychain Access app. Export all certificates (Developer ID Certificate) related to your app into a single file (e.g. certs.p12) and set a strong password.

Base64-encode your certificates using the following command: base64 -i certs.p12 -o encoded.txt

In the GitHub repository, go to Settings → Secrets and add the following two variables:

    mac_certs: Your base64 encoded certificates, i.e. the content of the encoded.txt file you created before
    mac_certs_password: The password you set when exporting the certificates

Notarization

Create an app-specific password for your apple id: https://support.apple.com/de-de/HT204397

In the GitHub repository, go to Settings → Secrets and add the following three variables:

    apple_id: your apple id
    apple_id_password: the just created app-specific password for your apple id
    team_id: your team short name: https://github.com/electron/electron-notarize#notes-on-your-team-short-name

Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net>
2021-11-04 22:29:34 +01:00
csett86 a1c330961e
2.9.1 2021-10-19 21:51:40 +02:00
csett86 3fc1306961
chore(deps): Replace mac-screen-capture-permissions (#647)
Update jitsi-meet-electron-utils to replace it with electron API.

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-10-19 12:21:35 +02:00
csett86 2975fd0928
chore(deps): update electron to 13.5.2 (#643)
Mostly chromium security updates, for all details
see https://github.com/electron/electron/releases/tag/v13.5.0,
https://github.com/electron/electron/releases/tag/v13.5.1,
https://github.com/electron/electron/releases/tag/v13.5.2

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-10-18 11:40:19 +02:00
ovari e3b9231112
Localize desktop file on Linux 2021-10-18 09:29:17 +02:00
csett86 83b489325d
chore(deps): update electron-builder to 22.11.11 and move to node 14(#583)
electron-builder 22.11.0+ requires node 14, so update node 12 -> node 14
as well.

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-10-17 20:56:25 +02:00
csett86 8544d2c373
2.9.0 2021-09-21 21:57:05 +02:00
csett86 21ef47adb7
2.8.12 2021-09-14 18:50:16 +02:00
Christoph Settgast e96e05a27c chore(deps): update electron to 13.4.0
Mostly chromium security updates, for all details
see https://github.com/electron/electron/releases/tag/v13.4.0

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-09-14 14:15:33 +02:00
csett86 c64509b722
chore(deps): update electron to 13.3.0 (#631) 2021-09-08 11:04:51 +02:00
csett86 227e2e0a71
2.8.11 2021-08-28 19:14:03 +02:00
csett86 84d58ac7db
chore(deps): update electron to 13.2.3
Mostly chromium security updates, for all details
see https://github.com/electron/electron/releases/tag/v13.2.2 and
https://github.com/electron/electron/releases/tag/v13.2.3

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-08-28 19:05:53 +02:00
csett86 60d9db0803
chore(deps): update electron to 13.2.1 (#624) 2021-08-23 11:58:09 +02:00
csett86 f5a649895c
2.8.10 2021-08-11 22:11:25 +02:00
csett86 bf251d227c
chore(deps): update electron to 13.1.9 (#621)
Mostly chromium security updates, for all details
see https://github.com/electron/electron/releases/tag/v13.1.9

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-08-11 19:28:32 +02:00
csett86 9569a46f8a
2.8.9 2021-07-26 20:07:58 +02:00
csett86 bf5f993107
chore(deps): update electron to 13.1.7 (#610) 2021-07-26 12:57:53 +02:00
csett86 5586f8648c
2.8.8 2021-07-01 20:36:18 +02:00
csett86 41714375ba
chore(deps): update electron to 12.0.13 (#605) 2021-06-30 10:25:56 +02:00
csett86 0fdb2257ab
fix(deb): match dependencies with ldd from electron 12 (#604) 2021-06-28 09:43:42 +02:00
csett86 9b1e3904ac
refactor: reduce shipped artifact size (#589)
This moves all webpacked deps to be automatically included from the asar
and thus reduces the shipped binary by 14MB on Windows, 16 MB on Mac and
12MB on Linux. The installed size on mac is reduced by 105 MB.

Previously all the dependencies were webpacked and minified in the asar in the
build folder and in its full installed version unused under node_modules.

Only keep the dependencies that are externally required in the node-modules
folder.

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-06-27 20:58:48 +02:00
csett86 055d0b1f95
2.8.7 2021-06-26 10:05:46 +02:00
csett86 5aebf78787
chore(deps): update electron to 12.0.12 (#602) 2021-06-26 10:02:18 +02:00
Christoph Settgast 89b9a638ce chore(deps): update electron to 12.0.11
Fixes a memory leak when requesting files in ASAR archive from renderer

For all details, see https://github.com/electron/electron/releases/tag/v12.0.11

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-06-10 21:40:07 +02:00
Christoph Settgast f3a6289a60 chore(deps) update electron to 12.0.10
Security updates and bugfixes, see https://github.com/electron/electron/releases/tag/v12.0.10

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-06-04 11:33:43 +02:00
Christoph Settgast 8cbf86d535 Update Electron to 12.0.7
See https://github.com/electron/electron/releases/tag/v12.0.7

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-05-08 12:50:55 +02:00
Saúl Ibarra Corretgé 61a890b232 Revert "Update electron-builder to 22.11.1"
This reverts commit 963d6b1224.
2021-05-07 15:41:07 +02:00
Saúl Ibarra Corretgé 3edce68deb 2.8.6 2021-05-07 09:27:25 +02:00
Christoph Settgast 963d6b1224 Update electron-builder to 22.11.1
Signed-off-by: Christoph Settgast <csett86@web.de>
2021-05-06 22:07:12 +02:00
Christoph Settgast 5bf3ca2385 Update Electron to 12.0.6
Security and bug fixes

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-05-01 17:43:12 +02:00
Christoph Settgast 20179f2c3f Update Electron to 12.0.5
Signed-off-by: Christoph Settgast <csett86@web.de>
2021-04-30 15:40:36 +02:00
Saúl Ibarra Corretgé 97bccd752b 2.8.5 2021-04-14 10:39:45 +02:00
Christoph Settgast f484312cd3 Update Electron to 12.0.4
Security: backported fix for chromium:1196683. #28638
2021-04-14 09:41:20 +02:00
Christoph Settgast 23a5f3b152 Update Electron to 12.0.3
Signed-off-by: Christoph Settgast <csett86@web.de>
2021-04-13 21:40:20 +02:00
Christoph Settgast bbcae1027e chore(deps) Update dependencies
devDependencies left out intentionally, as updating babel & eslint requires
more work and more dependencies due to the deprecation of babel-eslint.
2021-04-06 23:11:57 +02:00
Saúl Ibarra Corretgé 28f1be5480 2.8.4 2021-03-31 00:26:29 +02:00
Christoph Settgast 4cc851dc75 Linux: Fix running AppImage on Debian 10+ (#231)
Modeled after https://github.com/electron-userland/electron-builder/issues/5371#issuecomment-791771150
but written with promised-based fs nodejs API.

This allows to drop the app-builder-lib .desktop patch, as
--no-sandbox is now part of all linux targets via the additional launcher script,
so the arg can be dropped from the .desktop file Exec line.

Manual workaround is removed from the README as well.
2021-03-31 00:23:20 +02:00
Saúl Ibarra Corretgé 4c0a96d255 2.8.3 2021-03-24 22:29:03 +01:00
Saúl Ibarra Corretgé d46e5b019d Build zip file on macOS as well
It's necessary for auto-updates.
2021-03-24 22:27:54 +01:00
Saúl Ibarra Corretgé f88abef302 2.8.2 2021-03-24 21:57:29 +01:00
Saúl Ibarra Corretgé 8aa9336172 2.8.1 2021-03-24 21:30:40 +01:00
Saúl Ibarra Corretgé 59fb0f2a82 2.8.0 2021-03-24 21:23:50 +01:00
Christoph Settgast a620a3fcef Update Electron to 12.0.2
Several fixes and patch-updated bundled Chromium.
For details see https://github.com/electron/electron/releases/tag/v12.0.2

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-03-24 21:09:35 +01:00
Saúl Ibarra Corretgé 3e5c116e0a Build Debian packages too 2021-03-24 00:45:57 +01:00
Christoph Settgast 5c49372e11 Enhancements to make it more Mac App Store (mas) compatible
- disable the autoupdater if running as mas (was not working anyway, just logging an error on every start)
- replace check via app.requestSingleInstanceLock() with LSMultipleInstancesProhibited in Info.plist
  due to https://github.com/electron/electron/issues/15958
- Quit the app also when all windows are closed to conform to macOS Human Interface Guidelines
  Comments from review:
  If the application is a single-window app, it might be appropriate to save data and quit the app when the main window is closed.
- "asarUnpack": "**/*.node" to also sign the native addons when packaging
- add the required mas-specific entitlements which include the app-sandbox key

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-03-15 00:20:20 +01:00
Christoph Settgast 9b09a4bfa9 Switch mac build to universal build
Apple's documentation suggests that apps should be shipped as universal binaries
to simplify the process for the users. See eg. https://developer.apple.com/documentation/apple-silicon/porting-your-macos-apps-to-apple-silicon

Also update electron-updater to latest version (matching electron-builder version)
as part of this.

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-03-15 00:13:00 +01:00
Saúl Ibarra Corretgé 324e4c2dba 2.7.1 2021-03-12 09:36:58 +01:00
Christoph Settgast c60995c3f7 Update Electron to 12.0.1
Several fixes and patch-updated bundled Chromium.
For details see https://github.com/electron/electron/releases/tag/v12.0.1

Signed-off-by: Christoph Settgast <csett86@web.de>
2021-03-11 22:02:23 +01:00
Saúl Ibarra Corretgé db13c350eb 2.7.0 2021-03-10 00:37:28 +01:00
Saúl Ibarra Corretgé 21b494b140 Add Apple Silicon support 2021-03-10 00:34:30 +01:00