initial commit
This commit is contained in:
commit
13ae6c773c
36 files changed
+24137
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import path from 'path'
|
||||
import os from 'os'
|
||||
import { app } from 'electron'
|
||||
|
||||
export default class Constants {
|
||||
static APP_NAME = 'Vutron'
|
||||
static APP_ICON = 'app-icon.png'
|
||||
|
||||
static IS_DEV_ENV = process.env.NODE_ENV === 'development'
|
||||
|
||||
static IS_MAC = os.platform() === 'darwin'
|
||||
|
||||
static DEFAULT_WEB_PREFERENCES = {
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
nodeIntegrationInWorker: true,
|
||||
enableRemoteModule: true
|
||||
}
|
||||
|
||||
static APP_INDEX_URL = process.env.NODE_ENV === 'development'
|
||||
? 'http://localhost:9080/index.html'
|
||||
: path.join('file://', app.getAppPath(), '/dist/electron/index.html')
|
||||
}
|
||||
Reference in new issue
Block a user