Merge pull request #272 from JsSucks/installer-stuff

Installer stuff
This commit is contained in:
Alexei Stukov 2019-02-01 15:07:46 +02:00 committed by GitHub
commit fae97613d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 28 deletions

View File

@ -1,26 +0,0 @@
[
{
"id": "client",
"name": "client.zip",
"version": "2.0.0",
"size": "436228",
"remote": "https://github.com/JsSucks/BetterDiscordApp/releases/download/InstallerTest/client.zip",
"hash": "B0543B1D458021BC8F73CCEFB66185738582FD5B27B6F803F3ACB4989C9D1EBA"
},
{
"id": "core",
"name": "core.zip",
"version": "2.0.0",
"size": "6983826",
"remote": "https://github.com/JsSucks/BetterDiscordApp/releases/download/InstallerTest/core.zip",
"hash": "https://github.com/JsSucks/BetterDiscordApp/releases/download/InstallerTest/core.zip"
},
{
"id": "csseditor",
"name": "csseditor.zip",
"version": "0.0.1",
"size": "209435",
"remote": "https://github.com/JsSucks/BetterDiscordApp/releases/download/InstallerTest/csseditor.zip",
"hash": "5AD55F136AB515F17D163F017122E6690F01441F004967F53A50C218801A474E"
}
]

View File

@ -0,0 +1,30 @@
{
"mver": "2.0.0",
"stub": "/master/installer/stub.js",
"files": [
{
"id": "client",
"name": "client.zip",
"version": "2.0.0",
"size": "436228",
"remote": "/releases/download/InstallerTest/client.zip",
"hash": "B0543B1D458021BC8F73CCEFB66185738582FD5B27B6F803F3ACB4989C9D1EBA"
},
{
"id": "core",
"name": "core.zip",
"version": "2.0.0",
"size": "6983826",
"remote": "/releases/download/InstallerTest/core.zip",
"hash": "CF2AB488FB4FFF0EF2F5EC41930A62753D7DA5062954CDE1C27DD931F4560DC9"
},
{
"id": "csseditor",
"name": "csseditor.zip",
"version": "0.0.1",
"size": "209435",
"remote": "/releases/download/InstallerTest/csseditor.zip",
"hash": "5AD55F136AB515F17D163F017122E6690F01441F004967F53A50C218801A474E"
}
]
}

View File

@ -1,4 +1,4 @@
const { paths } = require('./bd.json');
const bdinfo = require('./bd.json');
const { app } = require('electron');
const path = require('path');
const fs = require('fs');
@ -8,8 +8,9 @@ const packagePath = path.join(__dirname, '..', 'app.asar');
app.getAppPath = () => packagePath;
function loadBd() {
const { paths } = bdinfo;
const { BetterDiscord } = require(paths.core);
const instance = new BetterDiscord();
const instance = new BetterDiscord(bdinfo);
}
app.on('ready', loadBd);