Fix path style

This commit is contained in:
AkiraFukushima 2020-11-30 22:50:31 +09:00
parent b9976b2d70
commit 3516263140
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ if (process.env.NODE_ENV !== 'development') {
let mainWindow: BrowserWindow | null
let tray: Tray | null
const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : `file://${__dirname}/index.html`
const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : path.join('file://', __dirname, '/index.html')
// MAS build is not allowed requestSingleInstanceLock.
// ref: https://github.com/h3poteto/whalebird-desktop/issues/1030
@ -113,7 +113,7 @@ const appId = pkg.build.appId
const splashURL =
process.env.NODE_ENV === 'development'
? path.resolve(__dirname, '../../static/splash-screen.html')
: `${__dirname}/static/splash-screen.html`
: path.join(__dirname, '/static/splash-screen.html')
// https://github.com/louischatriot/nedb/issues/459
const userData = app.getPath('userData')