Create stub.js
This commit is contained in:
parent
8fbd75ce94
commit
033f3472cb
|
@ -0,0 +1,17 @@
|
|||
const { paths } = 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 { BetterDiscord } = require(paths.core);
|
||||
const instance = new BetterDiscord();
|
||||
}
|
||||
|
||||
app.on('ready', loadBd);
|
||||
|
||||
Module._load(app.getAppPath(), null, true);
|
Loading…
Reference in New Issue