diff options
author | csett86 <csett86@web.de> | 2021-12-11 21:53:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 21:53:01 +0100 |
commit | 7ef12df18807fb36a48406ba6289a7c2aa2c5ca5 (patch) | |
tree | 990bcc1f5b21a4c9c8fc275292a156e29497f51b /main.js | |
parent | f0d020adf931f477d290589417054db7f3ee4d1a (diff) |
cleanup: remove unused mac electron/universal workaround (#688)
Since d383521 the binaries are universal itself, so app.asar is no
longer split by electron/universal. Thus remove the now unnecessary
workaround.
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -24,7 +24,6 @@ const URL = require('url'); const config = require('./app/features/config'); const { openExternalLink } = require('./app/features/utils/openExternalLink'); const pkgJson = require('./package.json'); -const { existsSync } = require('fs'); const showDevTools = Boolean(process.env.SHOW_DEV_TOOLS) || (process.argv.indexOf('--show-dev-tools') > -1); @@ -181,18 +180,7 @@ function createJitsiMeetWindow() { }); // Path to root directory. - let basePath = isDev ? __dirname : app.getAppPath(); - - // runtime detection on mac if this is a universal build with app-arm64.asar' - // as prepared in https://github.com/electron/universal/blob/master/src/index.ts - // if universal build, load the arch-specific real asar as the app does not load otherwise - if (process.platform === 'darwin' && existsSync(path.join(app.getAppPath(), '..', 'app-arm64.asar'))) { - if (process.arch === 'arm64') { - basePath = app.getAppPath().replace('app.asar', 'app-arm64.asar'); - } else if (process.arch === 'x64') { - basePath = app.getAppPath().replace('app.asar', 'app-x64.asar'); - } - } + const basePath = isDev ? __dirname : app.getAppPath(); // URL for index.html which will be our entry point. const indexURL = URL.format({ |