fix(electron): linux login issues (#5821)

Looks like there are some issues using `@reforged/maker-appimage`:
- deep link not working properly (cannot login)
- cannot be installed via AppImageLauncher, which is required to enable deep link on linux

I forked saleae/electron-forge-maker-appimage into https://github.com/toeverything/electron-forge-maker-appimage to fix these issues
See changes: https://github.com/saleae/electron-forge-maker-appimage/compare/master...toeverything:electron-forge-maker-appimage:master?w=1

To enable login on Linux, the app must be installed via AppImageLauncher.

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/28dcaadb-49d1-4c95-8a4f-ef41bef604be.png)

fix https://github.com/toeverything/AFFiNE/issues/4978
fix https://github.com/toeverything/AFFiNE/issues/4466
This commit is contained in:
Peng Xiao
2024-02-19 14:24:59 +00:00
parent 28ee66173e
commit 20f7473e20
3 changed files with 239 additions and 81 deletions

View File

@@ -9,7 +9,6 @@ import {
arch,
buildType,
icnsPath,
iconPngPath,
iconUrl,
icoPath,
platform,
@@ -76,15 +75,8 @@ const makers = [
},
},
!process.env.SKIP_BUNDLE && {
name: '@reforged/maker-appimage',
config: {
name: 'AFFiNE',
icon: iconPngPath,
platforms: ['linux'],
options: {
bin: productName,
},
},
name: '@pengx17/electron-forge-maker-appimage',
platforms: ['linux'],
},
].filter(Boolean);