Commit 18af0d7 1 parent 3799101 commit 18af0d7 Copy full SHA for 18af0d7
File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 36
36
37
37
- name : Build Electron app
38
38
run : |
39
- npm run electron-build
39
+ if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
40
+ npm run electron-build
41
+ # Remove chrome-sandbox as we're running with --no-sandbox
42
+ rm -f dist/linux-unpacked/chrome-sandbox
43
+ else
44
+ npm run electron-build
45
+ fi
40
46
env :
41
47
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
48
Original file line number Diff line number Diff line change 90
90
"linux" : {
91
91
"target" : [" deb" , " tar.gz" ],
92
92
"category" : " Development" ,
93
- "maintainer" : " Drivechain <support@drivechain.info>"
93
+ "maintainer" : " Drivechain <support@drivechain.info>" ,
94
+ "asarUnpack" : [" **/chrome-sandbox" ],
95
+ "executableName" : " drivechain-launcher" ,
96
+ "executableArgs" : [" --no-sandbox" ]
94
97
},
95
98
"win" : {
96
99
"target" : " nsis"
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ function createWindow() {
42
42
contextIsolation : true ,
43
43
nodeIntegration : false ,
44
44
preload : path . join ( __dirname , "preload.js" ) ,
45
+ sandbox : false
45
46
} ,
46
47
} ) ;
47
48
mainWindow . loadURL (
@@ -514,6 +515,9 @@ async function initialize() {
514
515
}
515
516
}
516
517
518
+ // Disable sandbox
519
+ app . commandLine . appendSwitch ( 'no-sandbox' ) ;
520
+
517
521
app . whenReady ( ) . then ( initialize ) ;
518
522
519
523
let isShuttingDown = false ;
You can’t perform that action at this time.
0 commit comments