Skip to content

Commit c9f9815

Browse files
author
Malware
committed
security improvements
1 parent 653e906 commit c9f9815

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

build.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
call yarn dist-32bit
3+
call yarn dist
4+
echo Build complete.
5+
pause

build_win32.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Sploder",
3-
"version": "4.0.4",
3+
"version": "4.0.5",
44
"author": "Saptarshi",
55
"description": "Sploder Launcher",
66
"license": "MIT",
@@ -31,7 +31,8 @@
3131
"perMachine": "true",
3232
"allowToChangeInstallationDirectory": "true",
3333
"deleteAppDataOnUninstall": "true",
34-
"runAfterFinish": "true"
34+
"runAfterFinish": "true",
35+
"artifactName": "Sploder Setup ${version} ${arch}.${ext}"
3536
},
3637
"extraResources": [
3738
"./plugins/**",

src/local/xp.css

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ switch (process.platform) {
1414
}
1515

1616
if(isDev){
17-
flashpath = path.join(__dirname + "../../../plugins/", pluginName)
17+
flashpath = path.join("../../../plugins/", pluginName)
1818
} else {
1919
flashpath = path.join(__dirname + "/../plugins/", pluginName)
2020
}
21+
2122
app.commandLine.appendSwitch("ppapi-flash-path", flashpath);
2223
app.commandLine.appendSwitch("ppapi-flash-version", "32.0.0.371");
2324
// I do not know why this exists or what this does.
@@ -31,15 +32,11 @@ function createWindow() {
3132
webPreferences: {
3233
// Who cares about security?
3334
// I'll surely have to address this sometime soon though.
34-
webSecurity: false,
3535
enableRemoteModule: true,
36-
nodeIntegration: true,
37-
contextIsolation: false,
38-
allowRunningInsecureContent: true,
36+
nodeIntegration: true,
3937
devTools: true,
4038
// Must be enabled to allow flash to run.
4139
plugins: true,
42-
4340
},
4441

4542
}

0 commit comments

Comments
 (0)