Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 2,358 Bytes
86259b4 3a25c0b 86259b4 c5df71e 86259b4 3a25c0b 86259b4 3a25c0b 86259b4 3a25c0b 86259b4 3a25c0b 86259b4 3a25c0b 86259b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
// for some reason using forge.config.ts doesn't work,
//
// it says:
// Failed to load: /Users/jbilcke/Projects/clapper/forge.config.ts
// An unhandled rejection has occurred inside Forge:
// SyntaxError: Unexpected token 'export'
//
// so we cannot use this:
// import type { ForgeConfig } from '@electron-forge/shared-types';
// export const config: ForgeConfig = {
module.exports = {
packagerConfig: {
name: "Clapper",
asar: true,
asarUnpack: [
"**/node_modules/sharp/**/*",
"**/node_modules/@img/**/*"
],
icon: "./public/images/logos/CL.png",
osxSign: {},
// One or more files to be copied directly into the app's
// Contents/Resources directory for macOS target platforms
// and the resources directory for other target platforms.
// The resources directory can be referenced in the packaged
// app via the process.resourcesPath value.
extraResource: [
".next/standalone"
],
// ignore: ['^\\/public$', '^\\/node_modules$', '^\\/src$', '^\\/[.].+'],
// Walks the node_modules dependency tree to remove all of
// the packages specified in the devDependencies section of
// package.json from the outputted Electron app.
prune: true,
ignore: [
'^\\/.next$',
'^\\/src$',
'^\\/documentation$',
'^\\/test-results$',
'^\\/playwright-report$',
'^\\/.github$',
'^\\/public$',
'^\\/out$',
'^\\/tests$',
'^\\/Dockerfile$',
'^\\/package-lock.json$',
'^\\/.git$',
],
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
authors: "Clapper contributors"
}
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
config: {},
},
{
name: '@electron-forge/maker-deb',
config: {
options: {
icon: './public/images/logos/CL.png'
}
},
},
{
name: '@electron-forge/maker-dmg',
config: {
options: {
icon: './public/images/logos/CL.icns'
}
},
},
{
name: '@electron-forge/maker-rpm',
config: {},
},
],
plugins: [
/*
Only needed if asar is set to true
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
*/
],
};
|