Skip to content

Commit

Permalink
v0.0.1-alpha.16 - Fixed download errors.
Browse files Browse the repository at this point in the history
Fixed error 'self signed certificate in certificate chain'.
Disabled reject unauthorized in assetexec process.
Fixed error messages from assetexec to renderer.
Updated elctron-builder to v20.25.0.
  • Loading branch information
dscalzi committed Jul 26, 2018
1 parent 5bceaa9 commit 6e71cd6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 27 deletions.
4 changes: 3 additions & 1 deletion app/assets/js/assetexec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { AssetGuard } = require('./assetguard')

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'

const tracker = new AssetGuard(process.argv[2], process.argv[3])
console.log('AssetExec Started')

Expand Down Expand Up @@ -31,7 +33,7 @@ process.on('message', (msg) => {
res.then((v) => {
process.send({result: v, context: func})
}).catch((err) => {
process.send({result: err, context: func})
process.send({result: err.message, context: func})
})
} else {
process.send({result: res, context: func})
Expand Down
5 changes: 5 additions & 0 deletions app/assets/js/scripts/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ function dlAsync(login = true){
}
} else if(m.context === 'validateEverything'){

// If these properties are not defined it's likely an error.
if(m.result.forgeData == null || m.result.versionData == null){
console.error(m.result)
}

forgeData = m.result.forgeData
versionData = m.result.versionData

Expand Down
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "westeroscraftlauncher",
"version": "0.0.1-alpha.15",
"version": "0.0.1-alpha.16",
"description": "Custom modded launcher for Westeroscraft",
"productName": "WesterosCraft Launcher",
"main": "index.js",
Expand Down Expand Up @@ -48,7 +48,7 @@
},
"devDependencies": {
"electron": "^2.0.5",
"electron-builder": "^20.24.5",
"electron-builder": "^20.25.0",
"eslint": "^5.2.0"
},
"build": {
Expand Down

0 comments on commit 6e71cd6

Please sign in to comment.