Fix AppImage sandbox launch
This commit is contained in:
parent
5372a5c513
commit
881c4b0f7f
4 changed files with 8 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@ dist-electron
|
|||
apps/desktop/dist-electron
|
||||
*.tsbuildinfo
|
||||
.DS_Store
|
||||
local/
|
||||
|
|
|
|||
1
.ignore
1
.ignore
|
|
@ -1,3 +1,4 @@
|
|||
!v1
|
||||
!web
|
||||
!lfs
|
||||
!local
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
appId: dev.openpets.app
|
||||
productName: OpenPets
|
||||
executableName: openpets
|
||||
copyright: Copyright © 2026 OpenPets
|
||||
|
||||
directories:
|
||||
|
|
@ -20,6 +21,9 @@ asarUnpack:
|
|||
npmRebuild: false
|
||||
publish: null
|
||||
|
||||
toolsets:
|
||||
appimage: 1.0.3
|
||||
|
||||
mac:
|
||||
icon: assets/app-icon.icns
|
||||
category: public.app-category.utilities
|
||||
|
|
|
|||
|
|
@ -35,9 +35,11 @@ assert.match(workspaceConfig, /supportedArchitectures:[\s\S]*?libc:[\s\S]*?- gli
|
|||
assert.match(packageJson.devDependencies?.["electron-builder"] ?? "", /^\^26\.(?:9|[1-9]\d)\./, "desktop AppImage packaging must use electron-builder 26.9+ for conditional Linux sandbox handling.");
|
||||
assert.match(builderConfig, /appId:\s*dev\.openpets\.app/);
|
||||
assert.match(builderConfig, /productName:\s*OpenPets/);
|
||||
assert.match(builderConfig, /executableName:\s*openpets/, "desktop packages must use a safe executable name for the stricter AppImage toolset.");
|
||||
assert.match(builderConfig, /output:\s*dist-electron/);
|
||||
assert.match(builderConfig, /publish:\s*null/);
|
||||
assert.doesNotMatch(builderConfig, /no-sandbox/, "desktop packaging must not force --no-sandbox for every Linux AppImage launch.");
|
||||
assert.match(builderConfig, /toolsets:\s*\n\s*appimage:\s*1\.0\.3/, "desktop AppImage packaging must use the AppImage 1.0.3 toolset so the launcher can conditionally fall back when Linux sandboxing is unavailable.");
|
||||
assert.match(builderConfig, /asar:\s*true/);
|
||||
assert.match(builderConfig, /asarUnpack:/);
|
||||
assert.match(builderConfig, /node_modules\/\*\*/);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue