Skip to content

Commit 7cabee7

Browse files
committed
v11.0.2
1 parent 66c35b0 commit 7cabee7

File tree

122 files changed

+5999
-10824
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+5999
-10824
lines changed

.appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ install:
2323
- cmd: echo 🔧 Preparing Build Environment (Git)
2424
- cmd: git config --global core.autocrlf input
2525
- cmd: echo 🔧 Preparing Build Environment (Node.js)
26-
- ps: Update-NodeJsInstallation 13.7.0
27-
- cmd: npm --global update npm
26+
- ps: Update-NodeJsInstallation 14.8.0 x64
2827
- cmd: npm --global install yarn
2928

3029
before_build:

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ addons:
4747
before_install:
4848
- echo "🔧 Preparing Build Environment (Node.js)"
4949
- curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | NVM_DIR="${HOME}"/.nvm sh
50-
- source "${HOME}"/.nvm/nvm.sh && nvm install 13.7.0 && nvm use 13.7.0
50+
- source "${HOME}"/.nvm/nvm.sh && nvm install 14.8.0 && nvm use 14.8.0
5151
- npm --global update npm
5252
- npm --global install yarn
5353

RELEASENOTES.json

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,51 @@
11
{
2+
"11.0.2": {
3+
"💎 improvements": [
4+
"adds notification sound effects (102) from Google Sounds v2.3",
5+
"reduces application size by ~45%, installer size by ~30%",
6+
"upgrades notification thumbnail generator backend (pb-for-desktop-besticon.herokuapp.com)",
7+
"migrates some non-user-facing components to Electron v10 compatibility (@electron/remote)",
8+
"improves system-wide dark mode support (macOS 10.15)",
9+
"multiple user interface quality improvements",
10+
"various stability and performance improvements"
11+
],
12+
"🚨 fixes": [
13+
"fixes notification thumbnail image download and rendering issues",
14+
"addresses various ipc-communication issues with regards to some upstream breaking changes",
15+
"satisfy requirements of the v8 structured clone algorithm requirements",
16+
"address audio playback issues with 'file://' protocol",
17+
"fixes 'push could not be updated' issues",
18+
"adhere cors configuration to match changed upstream (electron) configuration defaults",
19+
"adds fix for [Error with 'Show PB for Desktop' menu, MacOS Catalina 10.15.2](https://github.com/sidneys/pb-for-desktop/issues/117) contributed by [MockingMagician](https://github.com/MockingMagician)",
20+
"adds fix for [Cannot open main window](https://github.com/sidneys/pb-for-desktop/issues/116) contributed by [MockingMagician](https://github.com/MockingMagician)"
21+
],
22+
"📒 documentation": [
23+
"amends notification filter usage hints (filter-template.txt)",
24+
"extends `jsdoc` documentation coverage"
25+
],
26+
"👷 internals": [
27+
"upgrades `electron` to `v9.2.1`",
28+
"migrates `electron` APIs to v9",
29+
"upgrades `nodejs` on ci backend",
30+
"upgrades local `node_modules`",
31+
"upgrades third-party `node_modules`",
32+
"improves readability of log messages"
33+
]
34+
},
235
"10.5.0": {
336
"💎 improvements": [
4-
"enhances auto-update user interaction flow"
37+
"enhances auto-update user interaction flow",
38+
"enhances installer (Windows)"
539
],
640
"🚨 fixes": [
741
"fixes upstream auto-update issue which prevented update installation (https://github.com/electron/electron/pull/21645)",
842
"fixes application restart, reconnecting to Pushbullet",
943
"fixes application reset, user data removal",
10-
"fixes macOS 10.15 Catalina startup issue with .zip-based packages & auto-updater payloads (https://github.com/sidneys/pb-for-desktop/issues/113) (macOS)"
44+
"fixes macOS 10.15 Catalina startup issue with .zip-based packages & auto-updater payloads (https://github.com/sidneys/pb-for-desktop/issues/113) (macOS)",
45+
"fixes Google 2FA sign-in issue (https://github.com/sidneys/pb-for-desktop/issues/114)"
1146
],
1247
"👷 internals": [
13-
"upgrades `electron` to `v7.1.9`",
48+
"upgrades `electron` to `v8.2.0`",
1449
"upgrades local `node_modules`",
1550
"upgrades third-party `node_modules`"
1651
]
@@ -822,4 +857,4 @@
822857
"Build system upgrade"
823858
]
824859
}
825-
}
860+
}

app/html/main.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@
3131

3232
<!-- webview -->
3333
<webview id="webview"
34-
disablewebsecurity="true"
35-
partition="persist:app"
36-
preload="../scripts/renderer-process/webviews/pushbullet-webview.js"
37-
useragent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0"
38-
src="https://www.pushbullet.com">
34+
src="https://www.pushbullet.com"
35+
preload="../scripts/renderer-process/webviews/pushbullet-webview.js"
36+
partition="persist:app"
37+
disablewebsecurity="true"
38+
enableblinkfeatures="OutOfBlinkCors"
39+
enableremotemodule="true"
40+
useragent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0"
41+
>
3942
</webview>
4043
<!-- webview-->
4144

app/scripts/main-process/components/globals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ global.appFilesystem = {
4848
resources: process.resourcesPath,
4949
settings: path.join(path.dirname(electronSettings.file()), `${packageJson.name}.json`),
5050
sounds: path.join(appRootPathDirectory, 'sounds').replace('app.asar', 'app.asar.unpacked'),
51-
tempdir: (isDebug && process.defaultApp) ? appRootPathDirectory : os.tmpdir(),
51+
tempdir: (isDebug && process.defaultApp) ? path.join(appRootPathDirectory, 'temp') : os.tmpdir(),
5252
logs: logger.getConfiguration().logfile,
5353
icon: path.join(appRootPathDirectory, 'icons', platformTools.type, `icon${platformTools.iconImageExtension(platformTools.type)}`)
5454
}

app/scripts/main-process/index.js

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const events = require('events')
1212
* @constant
1313
*/
1414
const electron = require('electron')
15-
const { app, BrowserWindow, systemPreferences } = electron
15+
const { app, BrowserWindow, nativeTheme, session } = electron
1616

1717
/**
1818
* Modules (Local)
@@ -42,6 +42,13 @@ app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required')
4242
*/
4343
// app.commandLine.appendSwitch('disable-renderer-backgrounding')
4444

45+
/**
46+
* HOTFIX
47+
* Electron 9 webSecurity option no longer disables CORS
48+
* @see {@link https://github.com/electron/electron/issues/23664}
49+
*/
50+
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors')
51+
4552
/**
4653
* HOTFIX
4754
* Electron Security Warning
@@ -130,13 +137,25 @@ app.on('second-instance', () => {
130137
*/
131138
app.once('ready', () => {
132139
logger.debug('app#ready')
140+
141+
/**
142+
* HOTFIX
143+
* Register file:// protocol for default session
144+
* @see {@link https://www.electronjs.org/docs/api/protocol}
145+
* @see {@link https://github.com/electron/electron/issues/23757#issuecomment-640146333}
146+
*/
147+
const appSession = session.fromPartition('persist:app')
148+
appSession.protocol.registerFileProtocol('file', (request, callback) => {
149+
const filePath = decodeURI(request.url.replace('file:///', ''))
150+
callback(filePath)
151+
})
133152
})
134153

135154

136155
/**
137-
* @listens Electron.systemPreferences:appearance-changed
156+
* @listens Electron.nativeTheme:updated
138157
*/
139-
systemPreferences.on('appearance-changed', (newAppearance) => {
140-
logger.debug('systemPreferences#appearance-changed', 'newAppearance:', newAppearance)
158+
nativeTheme.on('updated', () => {
159+
logger.debug('nativeTheme#updated', 'nativeTheme.themeSource', nativeTheme.themeSource)
141160
})
142161

0 commit comments

Comments
 (0)