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 30, 2024
1 parent 29b71a2 commit 91d9198
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ jobs:
;;
ubuntu*)
sudo snap install snapcraft --classic
sudo snap install multipass
npx electron-builder --linux appimage --x64 --publish always
npx electron-builder --linux snap --x64 --publish always
;;
Expand Down
21 changes: 13 additions & 8 deletions publish/forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,23 @@ export default {
}
},
{
// sudo snap install snapcraft --classic
// sudo snap install multipass
// DEBUG=electron-forge:* npx electron-forge make --arch arm64 --targets=@electron-forge/maker-snap
// sudo snap install snapcraft --classic --channel=7.x/stable
// DEBUG=electron-installer-snap:snapcraft npx electron-forge make --arch x64 --targets=@electron-forge/maker-snap
// DEBUG=electron-installer-snap:snapcraft npx electron-forge make --arch arm64 --targets=@electron-forge/maker-snap
// Using "DEBUG=electron-installer-snap:snapcraft" will enable --destructive-mode and skip multipass
// To unpack the .snap: unsquashfs dist/make/snap/arm64/netron_8.0.0_arm64.snap
name: '@electron-forge/maker-snap',
platforms: ['linux'],
config: {
grade: 'stable',
base: 'core20', // sudo snap install snapcraft --classic --channel=7.x/stable
appPlugs: [
'default',
'removable-media'
],
// base: 'core20',
apps: {
electronApp: {
plugs: [
'removable-media'
]
}
}
}
}
],
Expand Down

0 comments on commit 91d9198

Please sign in to comment.