Commit 1d4b96b 1 parent 3799101 commit 1d4b96b Copy full SHA for 1d4b96b
File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 35
35
run : npm run build
36
36
37
37
- name : Build Electron app
38
+ if : matrix.os != 'ubuntu-latest'
39
+ run : npm run electron-build
40
+ env :
41
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+
43
+ - name : Build Electron app (Linux)
44
+ if : matrix.os == 'ubuntu-latest'
45
+ shell : bash
38
46
run : |
39
47
npm run electron-build
48
+ rm -f dist/linux-unpacked/chrome-sandbox
40
49
env :
41
50
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
51
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