BetterDiscordApp-v2/installer/stub.js

19 lines
484 B
JavaScript

const bdinfo = require('./bd.json');
const { app } = require('electron');
const path = require('path');
const fs = require('fs');
const Module = require('module');
const packagePath = path.join(__dirname, '..', 'app.asar');
app.getAppPath = () => packagePath;
function loadBd() {
const { paths } = bdinfo;
const { BetterDiscord } = require(paths.core);
const instance = new BetterDiscord(bdinfo);
}
app.on('ready', loadBd);
Module._load(app.getAppPath(), null, true);