Skip to content

Commit

Permalink
Electron upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Aug 16, 2019
1 parent b019a25 commit b43cda2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b43cda2

Please sign in to comment.