Skip to content

Commit

Permalink
v 1.0.7
Browse files Browse the repository at this point in the history
- Fixed updater bug

Note: The auto updater from previous versions 1.0.7 does not work well.
Please download the new version from github and install it manually.

Sorry for the problems
  • Loading branch information
kaiserdj committed Jan 17, 2021
1 parent 9eb661a commit 3f62a99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ if (!settings.getSync().check) {
settings.setSync(require("./defaultSettings.json"))
}

console.log(settings.getSync())

let argv = yargs(hideBin(process.argv))
.usage('Usage: $0 [options]')
.option('dosid', {
Expand Down Expand Up @@ -111,12 +109,9 @@ async function createWindow() {
if (new URL(url).search === "?action=internalMapRevolution") {
windowType = "game";
} else if (new URL(url).host.split(".")[1] === "darkorbit") {
console.log(new URL(url));
if (new URL(url).host.split(".")[0].search("board") !== -1 || new URL(url).search === "?action=portal.redirectToBoard") {
console.log("board");
windowType = "board";
} else {
console.log("client");
windowType = "client";
}
} else if (new URL(url).host.split(".")[1] === "bpsecure") {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "darkorbit-client",
"version": "1.0.6",
"version": "1.0.7",
"description": "Open source darkorbit client",
"main": "index.js",
"repository": {
Expand All @@ -14,7 +14,8 @@
"dist": "electron-builder --publish always",
"postinstall": "electron-builder install-app-deps",
"build": "electron-builder --publish=always",
"release": "electron-builder --publish always"
"release": "electron-builder --publish always",
"test-build": "electron-builder"
},
"author": "Kaiserdj",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion update.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ autoUpdater.on('update-available', async (data) => {

autoUpdater.on('download-progress', (progressObj) => {
progressBar.value = parseInt(progressObj.percent)
console.log(progressObj)
})

autoUpdater.on('update-not-available', () => {
Expand All @@ -60,6 +59,7 @@ autoUpdater.on('update-not-available', () => {
})

autoUpdater.on('update-downloaded', async () => {
progressBar.close()
await dialog.showMessageBoxSync({
title: 'Install updates',
message: 'Downloaded updates, the application will close to update ...'
Expand Down

0 comments on commit 3f62a99

Please sign in to comment.