[WinFirst] Restructure FirstRun as just WinFirst

This commit is contained in:
Ducko 2022-04-27 21:54:08 +01:00
parent a5f2630725
commit 43ec96e073
4 changed files with 2 additions and 13 deletions

2
src/bootstrap.js vendored
View File

@ -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);
}

View File

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

View File

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

View File

@ -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, '..');