treewide: fix electron-forge console output via the CI env var

This commit is contained in:
TomaSajt
2026-07-07 23:01:24 +02:00
parent c1165fc1f5
commit 45b2ceed02
6 changed files with 16 additions and 0 deletions
@@ -40,6 +40,8 @@ buildNpmPackage (finalAttrs: {
ONNXRUNTIME_NODE_INSTALL = "skip";
ONNXRUNTIME_NODE_INSTALL_CUDA = "skip";
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
# electron-forge's console output is squeezed into one narrow column if unset
CI = "1";
};
makeCacheWritable = true;
+2
View File
@@ -69,6 +69,8 @@ buildNpmPackage.override { inherit nodejs; } rec {
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
# use our own node headers since we skip downloading them
NIX_CFLAGS_COMPILE = "-I${nodejs}/include/node";
# electron-forge's console output is squeezed into one narrow column if unset
CI = "1";
};
postConfigure = ''
+3
View File
@@ -244,6 +244,9 @@ stdenv.mkDerivation (finalAttrs: {
cp -r static/node_modules resources/node_modules
'';
# electron-forge's console output is squeezed into one narrow column if unset
env.CI = "1";
yarnBuildScript = "release-electron";
installPhase = ''
+3
View File
@@ -191,6 +191,9 @@ stdenv.mkDerivation (finalAttrs: {
env = {
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
# electron-forge's console output is squeezed into one narrow column if unset
CI = "1";
# on Darwin, cmake uses find_library to locate R instead of using the PATH
NIX_LDFLAGS = "-L${R}/lib/R/lib";
@@ -72,6 +72,9 @@ stdenv.mkDerivation (finalAttrs: {
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
# electron-forge's console output is squeezed into one narrow column if unset
env.CI = "1";
buildPhase = ''
runHook preBuild
+3
View File
@@ -97,6 +97,9 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace node_modules/@electron/packager/dist/packager.js \
--replace-fail 'await this.getElectronZipPath(downloadOpts)' '"electron.zip"'
# electron-forge's console output is squeezed into one narrow column if unset
export CI="1";
yarn run package
runHook postBuild