keep the import, just handle undefined

This commit is contained in:
Jack Amadeo
2026-04-03 10:42:34 -04:00
parent 7e98078959
commit ebbb89d955
+1 -7
View File
@@ -1,12 +1,6 @@
import * as fs from 'fs';
import * as path from 'path';
let app: Electron.App | undefined;
try {
app = require('electron').app;
} catch {
// Not running inside Electron (e.g. tests importing goosed.ts)
}
import { app } from 'electron';
interface DistroConfig {
env?: Record<string, string>;