[FirstRun] Rewrite to use switch for index require, generic stub

This commit is contained in:
Ducko 2021-12-16 12:57:57 +00:00
parent 13be8a158a
commit 5ad7eabea5
3 changed files with 9 additions and 4 deletions

View file

@ -1 +0,0 @@
module.exports = require('./stub');

View file

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

View file

@ -1 +0,0 @@
module.exports = require('./stub');