first commit

This commit is contained in:
ye1023
2026-04-09 15:09:34 +08:00
commit d8e3a63df1
2246 changed files with 352109 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
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[\\/]/, '/'),
}
}