[WinFirst] Restructure FirstRun as just WinFirst

pull/66/head
Oj 2 years ago
parent a5f2630725
commit 43ec96e073

2
src/bootstrap.js vendored

@ -103,7 +103,7 @@ const startUpdate = () => {
inst.on('InconsistentInstallerState', fatal);
inst.on('update-error', console.error);
require('./firstRun').do(inst);
require('./winFirst').do(inst);
} else {
moduleUpdater.init(Constants.UPDATE_ENDPOINT, buildInfo);
}

@ -1,9 +0,0 @@
// Depends on platform
switch (process.platform) {
case 'win32':
module.exports = require('./win32.js');
break;
default:
module.exports = require('./stub.js');
}

@ -1,2 +0,0 @@
// Generic exports for stub (Linux and Darwin use it), normal Discord
exports.do = () => {};

@ -1,7 +1,7 @@
const fs = require('fs');
const { join, resolve, basename } = require('path');
const Constants = require('../Constants');
const Constants = require('./Constants');
const exec = process.execPath;
const app = resolve(exec, '..');
Loading…
Cancel
Save