Skip to content

Commit

Permalink
feat: set renderer version to the kernel from electron (#15)
Browse files Browse the repository at this point in the history
* feat: set renderer version to the kernel from electron

* set on new version too

* commit hash 7 chars
  • Loading branch information
kuruk-mm authored Nov 4, 2021
1 parent 41ef658 commit cb74795
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ const loadDecentralandWeb = async (win: BrowserWindow) => {

if (config.customUrl) {
url = config.customUrl
} else {
url = `${url}renderer-version=loading&`
}

url = `${url}ws=ws://localhost:${port}/dcl`
Expand Down
8 changes: 8 additions & 0 deletions electron/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ const registerVersionEvent = (rendererPath: string, versionPath: string, baseUrl
// download please
event.sender.send('downloadState', { type: 'NEW_VERSION' })
}

if (validVersion) {
event.sender.executeJavaScript(
`globalThis.ROLLOUTS['@dcl/unity-renderer']['version'] = \"desktop-${
globalConfig.desktopBranch
}.commit-${globalConfig.remoteVersion.substr(0, 7)}\";`
)
}
})
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcl/explorer-desktop-launcher",
"version": "0.1.9",
"version": "0.1.10",
"author": "decentraland",
"description": "Decentraland Desktop Launcher",
"homepage": ".",
Expand Down

0 comments on commit cb74795

Please sign in to comment.