From 652432a5a67ee1838e11027ce5b09435716db4b7 Mon Sep 17 00:00:00 2001 From: Mathias Tillman Date: Mon, 12 Apr 2021 14:03:15 +0200 Subject: [PATCH 1/2] Workaround issue when upgrading from v1.5.9 or older that causes it to use old app files. --- gulpfile.coffee | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gulpfile.coffee b/gulpfile.coffee index 14dec336..daa994b1 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -18,6 +18,7 @@ filter = require 'gulp-filter' Q = require 'q' Stream = require 'stream' spawn = require('child_process').spawn +glob = require('glob') # # @@ -323,6 +324,16 @@ deploy = (platform, arch, cb) -> console.error(error) .then (appPaths) -> if appPaths?.length > 0 + # Work around issue when upgrading from an older version that causes + # it to use the old app directory, rather than the new app.asar file. + # This is due to electron checking for the app dir first, then the asar. + # See: https://github.com/electron/electron/blob/master/lib/browser/init.ts#L84 + files = glob.sync "#{appPaths[0]}/**/app.asar", {nodir: true} + if files.length > 0 + resPath = path.dirname files[0] + fs.mkdirSync "#{resPath}/app", {recursive: true} + fs.writeFileSync "#{resPath}/app/package.json", "" + if process.env.NO_ZIP cb() return deferred.resolve() From 0e8a3c422694ce72d4031948907b8521358fcfcc Mon Sep 17 00:00:00 2001 From: Mathias Tillman Date: Mon, 12 Apr 2021 14:07:18 +0200 Subject: [PATCH 2/2] v1.5.11.2. --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4229dd5a..e072bbac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "yakyak", - "version": "1.5.11.1", + "version": "1.5.11.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8dacbdce..28c7df73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yakyak", - "version": "1.5.11.1", + "version": "1.5.11.2", "description": "Chat client for Google Hangouts", "main": "main.js", "scripts": {