Skip to content

Commit

Permalink
Fix electron issue with executableName specifying
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Dec 14, 2023
1 parent aaf9e26 commit 5c7fb5b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion electron-builder-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ module.exports = {
extends: null,
asar: false,
productName: 'Bitfinex Report',
executableName: 'bfx-report-electron',
artifactName: 'BitfinexReport-${version}-x64-${os}.${ext}',
appId: 'com.bitfinex.report',
publish: {
Expand All @@ -74,6 +73,7 @@ module.exports = {
updaterCacheDirName: 'bfx-report-electron-updater'
},
linux: {
executableName: 'app',
description: 'Bitfinex Report',
maintainer: '<bitfinex.com>',
category: 'Network',
Expand Down
2 changes: 1 addition & 1 deletion scripts/node/make-mac-app-update-yml.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (
const ymlName = 'app-update.yml'
const ymlPath = path.join(
cwd,
'dist/mac/bfx-report-electron.app/Contents/Resources',
'dist/mac/Bitfinex Report.app/Contents/Resources',
ymlName
)

Expand Down
2 changes: 1 addition & 1 deletion src/auto-updater/bfx.mac.updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BfxMacUpdater extends MacUpdater {

const root = path.join(appDir, '../../..')
const dist = path.join(root, '..')
const exec = path.join(root, 'Contents/MacOS/bfx-report-electron')
const exec = path.join(root, 'Contents/MacOS/Bitfinex Report')

await fsPromises.rm(root, { recursive: true })

Expand Down
6 changes: 3 additions & 3 deletions wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ process.env.TEST = 'true'

const getAppBinaryPath = () => {
if (process.platform === 'win32') {
return './dist/win-unpacked/bfx-report-electron.exe'
return './dist/win-unpacked/Bitfinex Report.exe'
}
if (process.platform === 'darwin') {
return './dist/mac/bfx-report-electron.app/Contents/MacOS/bfx-report-electron'
return './dist/mac/Bitfinex Report.app/Contents/MacOS/Bitfinex Report'
}
if (process.platform === 'linux') {
return './dist/linux-unpacked/bfx-report-electron'
return './dist/linux-unpacked/app'
}
}

Expand Down

0 comments on commit 5c7fb5b

Please sign in to comment.