Skip to content

Commit

Permalink
security improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Malware committed Jan 22, 2024
1 parent 653e906 commit c9f9815
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
5 changes: 5 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off
call yarn dist-32bit
call yarn dist
echo Build complete.
pause
2 changes: 0 additions & 2 deletions build_win32.bat

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Sploder",
"version": "4.0.4",
"version": "4.0.5",
"author": "Saptarshi",
"description": "Sploder Launcher",
"license": "MIT",
Expand Down Expand Up @@ -31,7 +31,8 @@
"perMachine": "true",
"allowToChangeInstallationDirectory": "true",
"deleteAppDataOnUninstall": "true",
"runAfterFinish": "true"
"runAfterFinish": "true",
"artifactName": "Sploder Setup ${version} ${arch}.${ext}"
},
"extraResources": [
"./plugins/**",
Expand Down
1 change: 0 additions & 1 deletion src/local/xp.css

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ switch (process.platform) {
}

if(isDev){
flashpath = path.join(__dirname + "../../../plugins/", pluginName)
flashpath = path.join("../../../plugins/", pluginName)
} else {
flashpath = path.join(__dirname + "/../plugins/", pluginName)
}

app.commandLine.appendSwitch("ppapi-flash-path", flashpath);
app.commandLine.appendSwitch("ppapi-flash-version", "32.0.0.371");
// I do not know why this exists or what this does.
Expand All @@ -31,15 +32,11 @@ function createWindow() {
webPreferences: {
// Who cares about security?
// I'll surely have to address this sometime soon though.
webSecurity: false,
enableRemoteModule: true,
nodeIntegration: true,
contextIsolation: false,
allowRunningInsecureContent: true,
nodeIntegration: true,
devTools: true,
// Must be enabled to allow flash to run.
plugins: true,

},

}
Expand Down

0 comments on commit c9f9815

Please sign in to comment.