fix: Fix resources
This commit is contained in:
@@ -10,6 +10,7 @@ import { FuseV1Options, FuseVersion } from '@electron/fuses';
|
||||
const config: ForgeConfig = {
|
||||
packagerConfig: {
|
||||
asar: true,
|
||||
extraResource: ['resources']
|
||||
},
|
||||
rebuildConfig: {},
|
||||
makers: [
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<main class="panel">
|
||||
<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">Vynte Connect</div>
|
||||
<div id="identity" class="identity">Vynte access</div>
|
||||
@@ -22,7 +22,7 @@
|
||||
<span class="orb-ring"></span>
|
||||
<span class="orb-core"></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>
|
||||
</button>
|
||||
<div class="status-line">
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ let cachedStatus = { ...DEFAULT_STATUS };
|
||||
|
||||
function resourcePath(name: string) {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user