chore: add electron images
No files matched your search
@@ -45,6 +45,20 @@ const config: ForgeConfig = {
|
|||||||
for (const moduleName of nativeModules) {
|
for (const moduleName of nativeModules) {
|
||||||
copyModuleRecursive(moduleName);
|
copyModuleRecursive(moduleName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copy assets to resources folder
|
||||||
|
const assetsSrc = path.join(process.cwd(), 'src', 'assets');
|
||||||
|
const assetsDest = path.join(buildPath, 'resources', 'assets');
|
||||||
|
|
||||||
|
if (fs.existsSync(assetsSrc)) {
|
||||||
|
if (!fs.existsSync(assetsDest)) {
|
||||||
|
fs.mkdirSync(assetsDest, { recursive: true });
|
||||||
|
}
|
||||||
|
fs.cpSync(assetsSrc, assetsDest, { recursive: true });
|
||||||
|
console.log(`Copied assets from ${assetsSrc} to ${assetsDest}`);
|
||||||
|
} else {
|
||||||
|
console.warn(`Assets directory not found: ${assetsSrc}`);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
|
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
|
||||||
|
|||||||
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 889 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 353 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 864 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 353 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 659 B |
|
Before Width: | Height: | Size: 340 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 340 KiB After Width: | Height: | Size: 659 B |