Skip to content

Commit

Permalink
Update forge.config.js (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Nov 28, 2024
1 parent 964d94d commit 6c2402a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
13 changes: 8 additions & 5 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,14 @@ const forge = async() => {
const command = read();
switch (command) {
case 'install': {
await exec('npm install @electron-forge/[email protected]');
await exec('npm install @electron-forge/[email protected]');
await exec('npm install @electron-forge/[email protected]');
await exec('npm install @electron-forge/[email protected]');
await exec('npm install @electron-forge/[email protected]');
const packages = [
'@electron-forge/cli',
'@electron-forge/core',
'@electron-forge/maker-snap',
'@electron-forge/maker-dmg',
'@electron-forge/maker-zip'
];
await exec(`npm install ${packages.join(' ')} --no-save`);
break;
}
case 'update': {
Expand Down
35 changes: 24 additions & 11 deletions publish/forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const APPLE_API_KEY_ISSUER_ID = process.env.APPLE_API_KEY_ISSUER_ID;
export default {
outDir: 'dist',
packagerConfig: {
icon: "publish/icon",
icon: 'publish/icon',
dir: [
'source'
],
ignore: [
"publish",
"third_party",
"test",
"tools"
'publish',
'third_party',
'test',
'tools'
],
/*
osxNotarize: {
Expand All @@ -39,27 +39,40 @@ export default {
name: '@electron-forge/maker-zip',
config: {
platforms: ['darwin'],
// name: "${name}-${version}-mac.zip"
// name: '${name}-${version}-mac.zip'
}
},
{
name: '@electron-forge/maker-dmg',
config: {
background: './publish/background.png',
/* eslint-disable no-template-curly-in-string */
name: "Netron-${version}"
name: 'Netron-${version}'
/* eslint-enable no-template-curly-in-string */
}
},
{
// sudo snap install snapcraft --classic
// sudo snap install multipass
// DEBUG=electron-forge:* npx electron-forge make --arch arm64 --targets=@electron-forge/maker-snap
name: '@electron-forge/maker-snap',
platforms: ['linux'],
config: {
grade: 'stable',
base: 'core20', // sudo snap install snapcraft --classic --channel=7.x/stable
}
}
],
publishers: [
{
"name": "@electron-forge/publisher-github",
"config": {}
'name': '@electron-forge/publisher-github',
'config': {}
},
{
"name": "@electron-forge/publisher-snapcraft",
"config": {}
'name': '@electron-forge/publisher-snapcraft',
'config': {
release: 'latest/stable'
}
}
]
};

0 comments on commit 6c2402a

Please sign in to comment.