elements-storage / ZXPInstaller

Open Source ZXP Installer for Adobe Extensions
http://zxpinstaller.com/
GNU General Public License v2.0
339 stars 53 forks source link

Can't pack windows version #78

Open evgenytr opened 2 years ago

evgenytr commented 2 years ago

Evgenys-Mac-Pro:ZXPInstaller-master evgenytrefilov$ yarn pack:win yarn run v1.22.4 $ node hooks/ci-env-wrapper.cjs cmd /c node_modules.bin\electron-builder --win --x64 node:child_process:867 throw err; ^

<ref 1> Error: spawnSync cmd ENOENT at Object.spawnSync (node:internal/child_process:1083:20) at spawnSync (node:child_process:812:24) at Object.execFileSync (node:child_process:858:15) at Object. (/Users/evgenytrefilov/Developer/ZXPInstaller-master/hooks/ci-env-wrapper.cjs:7:26) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { errno: -2, code: 'ENOENT', syscall: 'spawnSync cmd', path: 'cmd', spawnargs: [ '/c', 'node_modules.binelectron-builder', '--win', '--x64' ], error: [Circular 1], status: null, signal: null, output: null, pid: 2004, stdout: null, stderr: null } error Command failed with exit code 1.

Eugeny commented 2 years ago

I'll look into it - as a workaround, you can call it directly: node_modules\.bin\electron-builder --win --x64