From a476c230890001ffb11be65e6071bc8985a8ad42 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Sun, 17 Apr 2022 23:06:54 -0500 Subject: [PATCH] Downgrade to Electron 17.4.0 to fix Linux font rendering issue in Ubuntu 16 VM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The issue is fixed by passing —disable-gpu at launch, but it seems like it might be required for some users and the text is totally unlegible without the flag. Even the stock “electron” app exhibits the problem and it wasn’t required in Electron 17.4 so I’m hopeful they’ll fix it. --- package-lock.json | 30 +++++++++++++++++++++--------- package.json | 2 +- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 972cd1287..c075560ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,7 @@ "@typescript-eslint/parser": "^4.7.0", "chalk": "1.x.x", "devtron": "^1.4.0", - "electron": "18.0.3", + "electron": "17.4.0", "electron-installer-dmg": "^3.0.0", "electron-packager": "15.2.x", "electron-winstaller": "2.x.x", @@ -2093,13 +2093,13 @@ } }, "node_modules/electron": { - "version": "18.0.3", - "resolved": "https://registry.npmjs.org/electron/-/electron-18.0.3.tgz", - "integrity": "sha512-QRUZkGL8O/8CyDmTLSjBeRsZmGTPlPVeWnnpkdNqgHYYaOc/A881FKMiNzvQ9Cj0a+rUavDdwBUfUL82U3Ay7w==", + "version": "17.4.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-17.4.0.tgz", + "integrity": "sha512-eMuCOZMB9qsY63qzxEkyyqM09qs6mrbPBBDJJZgd8pnPWftE4zKmFp3B1vdHzjQ+1c1r/siigxbWTrpDNNri0A==", "hasInstallScript": true, "dependencies": { "@electron/get": "^1.13.0", - "@types/node": "^16.11.26", + "@types/node": "^14.6.2", "extract-zip": "^1.0.3" }, "bin": { @@ -2392,6 +2392,11 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, + "node_modules/electron/node_modules/@types/node": { + "version": "14.18.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.13.tgz", + "integrity": "sha512-Z6/KzgyWOga3pJNS42A+zayjhPbf2zM3hegRQaOPnLOzEi86VV++6FLDWgR1LGrVCRufP/ph2daa3tEa5br1zA==" + }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", @@ -13764,13 +13769,20 @@ } }, "electron": { - "version": "18.0.3", - "resolved": "https://registry.npmjs.org/electron/-/electron-18.0.3.tgz", - "integrity": "sha512-QRUZkGL8O/8CyDmTLSjBeRsZmGTPlPVeWnnpkdNqgHYYaOc/A881FKMiNzvQ9Cj0a+rUavDdwBUfUL82U3Ay7w==", + "version": "17.4.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-17.4.0.tgz", + "integrity": "sha512-eMuCOZMB9qsY63qzxEkyyqM09qs6mrbPBBDJJZgd8pnPWftE4zKmFp3B1vdHzjQ+1c1r/siigxbWTrpDNNri0A==", "requires": { "@electron/get": "^1.13.0", - "@types/node": "^16.11.26", + "@types/node": "^14.6.2", "extract-zip": "^1.0.3" + }, + "dependencies": { + "@types/node": { + "version": "14.18.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.13.tgz", + "integrity": "sha512-Z6/KzgyWOga3pJNS42A+zayjhPbf2zM3hegRQaOPnLOzEi86VV++6FLDWgR1LGrVCRufP/ph2daa3tEa5br1zA==" + } } }, "electron-installer-dmg": { diff --git a/package.json b/package.json index 05fb2f1e0..ff73e98e9 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@typescript-eslint/parser": "^4.7.0", "chalk": "1.x.x", "devtron": "^1.4.0", - "electron": "18.0.3", + "electron": "17.4.0", "electron-installer-dmg": "^3.0.0", "electron-packager": "15.2.x", "electron-winstaller": "2.x.x",