Release v2.1.11
build-windows-exe / build (push) Failing after 9s

This commit is contained in:
2026-08-15 14:55:06 +01:00
parent 0d67a4eb25
commit ea283dd490
6 changed files with 506 additions and 1535 deletions
+10 -2
View File
@@ -1,6 +1,14 @@
const fs = require('fs');
const path = require('path');
let isSingleExecutableApp = false;
try {
const sea = require('node:sea');
isSingleExecutableApp = typeof sea.isSea === 'function' && sea.isSea();
} catch {
isSingleExecutableApp = false;
}
const CONFIG_FILE_NAME = 'config.json';
const DEFAULT_CONFIG_TEMPLATE = JSON.stringify({
apiKeys: [
@@ -56,12 +64,12 @@ const DEFAULT_CONFIG_TEMPLATE = JSON.stringify({
}, null, 2) + '\n';
function getDefaultConfigPath() {
const packagedApp = Boolean(process.pkg);
const packagedApp = isSingleExecutableApp;
return path.resolve(packagedApp ? path.dirname(process.execPath) : process.cwd(), CONFIG_FILE_NAME);
}
function getConfigPathCandidates() {
const packagedApp = Boolean(process.pkg);
const packagedApp = isSingleExecutableApp;
const externalDefault = getDefaultConfigPath();
return [