From b43cda248e0978b01c049b1ed185f627fc21ae9a Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 16 Aug 2019 22:32:06 +0200 Subject: [PATCH] Electron upgrade --- build.properties | 3 --- main.go | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.properties b/build.properties index d0b9485..173f2df 100644 --- a/build.properties +++ b/build.properties @@ -20,9 +20,6 @@ papp.folder = app electron.executionstub = Riot_ExecutionStub.exe electron.libfolder = lib/net45 electron.enableautoupdate = false -electron.userdata.file = browser/init.js -electron.userdata.search = app.setPath('userData', path.join(app.getPath('appData'), app.getName())) -electron.userdata.replace = app.setPath('userData', path.join(path.dirname(process.execPath), '..', '..', 'data')) # Official artifacts atf.id = Riot diff --git a/main.go b/main.go index 9d3d71e..604a6c7 100644 --- a/main.go +++ b/main.go @@ -34,6 +34,9 @@ func main() { electronBinPath := utl.PathJoin(app.AppPath, utl.FindElectronAppFolder("app-", app.AppPath)) app.Process = utl.PathJoin(app.AppPath, "Riot.exe") + app.Args = []string{ + "--user-data-dir=" + app.DataPath, + } app.WorkingDir = electronBinPath // Copy default shortcut