mirror of
https://github.com/OpenFusionProject/Client.git
synced 2025-11-07 06:00:05 +00:00
Fix bug in WebPlayer installation logic
Also run prettier
This commit is contained in:
6
index.js
6
index.js
@@ -43,10 +43,8 @@ function installUnity(callback) {
|
||||
child.on("exit", function () {
|
||||
// overwrite 3.5.2 loader/player with FF's custom version
|
||||
var dstfolder =
|
||||
app.getPath("appData") + "..\\LocalLow\\Unity\\WebPlayer";
|
||||
fs.copySync(utilsdir + "\\WebPlayer", dstfolder, {
|
||||
clobber: true,
|
||||
});
|
||||
app.getPath("appData") + "\\..\\LocalLow\\Unity\\WebPlayer";
|
||||
fs.copySync(utilsdir + "\\WebPlayer", dstfolder, { clobber: true });
|
||||
// avoids error reporter popping up when closing Electron
|
||||
fs.removeSync(dstfolder + "\\UnityBugReporter.exe");
|
||||
console.log("Unity Web Player installed successfully.");
|
||||
|
||||
Reference in New Issue
Block a user