Archived
fix: Fix resources
This commit is contained in:
@@ -10,6 +10,7 @@ import { FuseV1Options, FuseVersion } from '@electron/fuses';
|
|||||||
const config: ForgeConfig = {
|
const config: ForgeConfig = {
|
||||||
packagerConfig: {
|
packagerConfig: {
|
||||||
asar: true,
|
asar: true,
|
||||||
|
extraResource: ['resources']
|
||||||
},
|
},
|
||||||
rebuildConfig: {},
|
rebuildConfig: {},
|
||||||
makers: [
|
makers: [
|
||||||
|
|||||||
+2
-2
@@ -9,7 +9,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<main class="panel">
|
<main class="panel">
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<img class="logo-small" src="../resources/VynteIcon.png" alt="">
|
<img class="logo-small" src="resources/VynteIcon.png" alt="">
|
||||||
<div class="title-block">
|
<div class="title-block">
|
||||||
<div class="title">Vynte Connect</div>
|
<div class="title">Vynte Connect</div>
|
||||||
<div id="identity" class="identity">Vynte access</div>
|
<div id="identity" class="identity">Vynte access</div>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<span class="orb-ring"></span>
|
<span class="orb-ring"></span>
|
||||||
<span class="orb-core"></span>
|
<span class="orb-core"></span>
|
||||||
<span class="orb-dot"></span>
|
<span class="orb-dot"></span>
|
||||||
<img id="orb-logo" class="orb-logo" src="../resources/VynteIcon.png" alt="">
|
<img id="orb-logo" class="orb-logo" src="resources/VynteIcon.png" alt="">
|
||||||
<span id="orb-power" class="orb-power">⏻</span>
|
<span id="orb-power" class="orb-power">⏻</span>
|
||||||
</button>
|
</button>
|
||||||
<div class="status-line">
|
<div class="status-line">
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ let cachedStatus = { ...DEFAULT_STATUS };
|
|||||||
|
|
||||||
function resourcePath(name: string) {
|
function resourcePath(name: string) {
|
||||||
if (app.isPackaged) {
|
if (app.isPackaged) {
|
||||||
return path.join(process.resourcesPath, 'app', 'resources', name);
|
return path.join(process.resourcesPath, 'resources', name);
|
||||||
}
|
}
|
||||||
return path.join(app.getAppPath(), 'resources', name);
|
return path.join(app.getAppPath(), 'resources', name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user