Skip to content

Commit

Permalink
Added gpg checked version file that is downloaded from github
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen committed Feb 13, 2018
1 parent cbf4eaa commit 20d544f
Show file tree
Hide file tree
Showing 9 changed files with 469 additions and 60 deletions.
13 changes: 11 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,24 @@ <h2>News</h2>
<div id="errorOldCantStartModal" class="modal">
<div id="errorOldCantStartModalDialog" class="modal-content">
<p id="errorOldCantStartText">
Error: this launcher version is
too old to load the current thrive version list. Please update
Error: this launcher version is (maybe)
too old to load the current thrive version list. Please update </br>
your launcher. See:
<a href="https://github.com/Revolutionary-Games/Thrive-Launcher/releases">
releases page</a>
</p>
</div>
</div>

<!-- Generic Error popup -->
<div id="genericErrorModal" class="modal">
<div id="genericErrorModalDialog" class="modal-content">
<span id="genericErrorClose" class="close">&times;</span>
<p id="genericErrorText">
Error popup opened without message
</p>
</div>
</div>

<!-- New version available popup -->
<div id="newReleaseAvailableModal" class="modal">
Expand Down
8 changes: 8 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ const os = require('os');

const fs = require('fs');

const openpgp = require('openpgp');

// Hopefully this is the right place to do this
openpgp.initWorker({ path:'openpgp.worker.js' })

openpgp.config.aead_protect = true // activate fast AES-GCM mode (not yet OpenPGP standard)


//
// Set this to true if you want to open the dev console
//
Expand Down
4 changes: 4 additions & 0 deletions modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ class Modal {
assert(this.dialog);
}

visible(){
return this.backdrop.style.display == "block";
}

//! Shows this dialog
show(){

Expand Down
67 changes: 65 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "thrive-launcher",
"productName": "Thrive Launcher",
"version": "1.0.1",
"version": "1.0.2",
"description": "Thrive Launcher manages downloading Thrive releases",
"main": "main.js",
"scripts": {
Expand All @@ -24,6 +24,7 @@
"js-sha3": "^0.5.7",
"mkdirp": "^0.5.1",
"moment": "^2.20.1",
"openpgp": "^2.6.2",
"request": "^2.83.0",
"strip-json-comments": "^2.0.1"
}
Expand Down
Loading

0 comments on commit 20d544f

Please sign in to comment.