File tree 2 files changed +13
-1
lines changed
packages/app-builder-lib/src/targets
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " app-builder-lib " : major
3
+ ---
4
+
5
+ Extending ` linux ` executableArgs option to be utilized for Snap target
Original file line number Diff line number Diff line change @@ -195,12 +195,19 @@ export default class SnapTarget extends Target {
195
195
Icon : "${SNAP}/meta/gui/icon.png" ,
196
196
} )
197
197
198
+ const extraAppArgs : Array < string > = options . executableArgs ?? [ ]
198
199
if ( this . isElectronVersionGreaterOrEqualThan ( "5.0.0" ) && ! isBrowserSandboxAllowed ( snap ) ) {
199
- args . push ( "--extraAppArgs=--no-sandbox" )
200
+ const noSandboxArg = "--no-sandbox"
201
+ if ( ! extraAppArgs . includes ( noSandboxArg ) ) {
202
+ extraAppArgs . push ( noSandboxArg )
203
+ }
200
204
if ( this . isUseTemplateApp ) {
201
205
args . push ( "--exclude" , "chrome-sandbox" )
202
206
}
203
207
}
208
+ if ( extraAppArgs . length > 0 ) {
209
+ args . push ( "--extraAppArgs=" + extraAppArgs . join ( " " ) )
210
+ }
204
211
205
212
if ( snap . compression != null ) {
206
213
args . push ( "--compression" , snap . compression )
You can’t perform that action at this time.
0 commit comments