You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import path from 'path'
|
|
import {isDev} from "./env";
|
|
|
|
export const _PATHS = getPaths()
|
|
|
|
function getPaths() {
|
|
const _root = __dirname;
|
|
const publicRoot = path.join(_root, isDev ? '../../public' : '..');
|
|
const preloadRoot = path.join(_root, 'preload')
|
|
|
|
return {
|
|
electronRoot: _root,
|
|
publicRoot,
|
|
preloadRoot,
|
|
|
|
appIcon: path.join(_root, `icons/app.ico`).replace(/[\\/]dist[\\/]/, '/'),
|
|
}
|
|
}
|