[Bootstrap] Add env variable to halt starting after splash for testing

This commit is contained in:
Ducko 2021-12-12 11:45:25 +00:00
parent 6e0e8e03a2
commit a6cdcc8f5b
1 changed files with 5 additions and 0 deletions

5
src/bootstrap.js vendored
View File

@ -54,6 +54,11 @@ const startCore = () => {
const startUpdate = () => {
appUpdater.update(false, () => {
if (process.env.OPENASAR_NOSTART) {
log('Bootstrap', 'Found nostart variable, halting bootstrap');
return;
}
startCore();
}, () => {
log('Bootstrap', 'Setting main window visible');