build(electron): deb distro support (#8457)

Add simple .deb support.

Note:
1. auto updater not tested
2. no wayland support
3. may requires --no-sandbox to run

related to https://github.com/toeverything/AFFiNE/issues/3272

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/279f031d-070a-43ef-be67-9acf2134355d.png)
This commit is contained in:
pengx17
2024-10-10 09:51:32 +00:00
parent 9043e6607e
commit 46321b72ba
4 changed files with 20 additions and 5 deletions

View File

@@ -88,6 +88,18 @@ const makers = [
],
},
},
!process.env.SKIP_BUNDLE && {
name: '@electron-forge/maker-deb',
config: {
bin: productName,
options: {
name: productName,
productName,
icon: iconX64PngPath,
mimeType: ['x-scheme-handler/affine'],
},
},
},
].filter(Boolean);
/**
@@ -119,6 +131,7 @@ export default {
schemes: [productName.toLowerCase()],
},
],
executableName: productName,
asar: true,
},
makers,