Closed Painadath closed 2 years ago
Looks like desktop
is still using windows 7-zip, is that supposed to happen?
Operating System/Distribution
Raspbian Buster
Installer
latest source
What happened?
here is what happended
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated set-value@2.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm WARN deprecated mixin-deep@1.2.0: Critical bug fixed in v2.0.1, please upgrade to the latest version. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated domelementtype@1.3.0: update to domelementtype@1.3.1 npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added npm WARN deprecated xmldom@0.1.27: Deprecated due to CVE-2021-21366 resolved in 0.5.0 npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported npm WARN deprecated es5-shim@4.5.11: this version is missing minified files npm WARN deprecated @types/winston@2.3.7: This is a stub types definition. winston provides its own type definitions, so you do not need this installed. npm WARN deprecated @types/electron-winstaller@4.0.0: This is a stub types definition. electron-winstaller provides its own type definitions, so you do not need this installed. npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm WARN deprecated uuid@3.2.1: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer npm WARN deprecated core-js@2.5.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. npm ERR! code 1 npm ERR! path /home/pi/desktop-linux/node_modules/electron-winstaller npm ERR! command failed npm ERR! command sh -c node ./script/select-7z-arch.js npm ERR! Selecting 7-Zip for arch arm npm ERR! /home/pi/desktop-linux/node_modules/electron-winstaller/script/select-7z-arch.js:16 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: ENOENT: no such file or directory, copyfile 'vendor/7z-arm.exe' -> 'vendor/7z.exe' npm ERR! at Object.copyFileSync (fs.js:1991:3) npm ERR! at Object.<anonymous> (/home/pi/desktop-linux/node_modules/electron-winstaller/script/select-7z-arch.js:14:8) npm ERR! at Module._compile (internal/modules/cjs/loader.js:1063:30) npm ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) npm ERR! at Module.load (internal/modules/cjs/loader.js:928:32) npm ERR! at Function.Module._load (internal/modules/cjs/loader.js:769:14) npm ERR! at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) npm ERR! at internal/main/run_main_module.js:17:47 { npm ERR! errno: -2, npm ERR! syscall: 'copyfile', npm ERR! code: 'ENOENT', npm ERR! path: 'vendor/7z-arm.exe', npm ERR! dest: 'vendor/7z.exe' npm ERR! } npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2021-09-08T23_55_13_487Z-debug.log
And also i am trying to get ut work on arm32 architecgure
@Painadath, this is a electron-winstaller error, not a GitHub Desktop error. Could you make an issue in the electron repo?
@Crilum @Painadath the correct repository for this package is https://github.com/electron/windows-installer#readme, not the main electron/electron
repo
Oops sorry.. :smile:
@Painadath I haven't tried this as I don't have access to a Pi, but you could try moving electron-winstaller
to an optional dependency and see if that let's you get further:
diff --git a/package.json b/package.json
index 40c600135..173d750f6 100644
--- a/package.json
+++ b/package.json
@@ -182,13 +182,13 @@
"electron": "=13.6.2",
"electron-builder": "^22.14.5",
"electron-packager": "^15.4.0",
- "electron-winstaller": "^5.0.0",
"reserved-words": "^0.1.2",
"tsconfig-paths": "^3.9.0"
},
"optionalDependencies": {
"electron-installer-debian": "3.1.0",
- "electron-installer-redhat": "3.3.0"
+ "electron-installer-redhat": "3.3.0",
+ "electron-winstaller": "^5.0.0"
},
"resolutions": {
"electron/@electron/get": "1.12.2"
I'm closing this out as I've pushed that last diff as a change to the default branch which may enable further work here: 5c8113056
Thanks @shiftkey! I'll try building!
I tried building sort of a random way, I couldn't really find any building instructions..
First I ran yarn install --force --ignore-scripts
, and then I ran yarn build:dev
:
$ yarn build:dev
yarn run v1.21.1
$ yarn compile:dev && cross-env NODE_ENV=development ts-node -P script/tsconfig.json script/build.ts
$ cross-env NODE_ENV=development TS_NODE_PROJECT=script/tsconfig.json parallel-webpack --config app/webpack.development.ts
[WEBPACK] Building 5 targets
[WEBPACK] Started building crash.js
[WEBPACK] Started building main.js
[WEBPACK] Started building cli.js
[WEBPACK] Started building renderer.js
[WEBPACK] Started building highlighter.js
(node:9312) Warning: a promise was rejected with a non-error: [object Object]
(Use `node --trace-warnings ...` to show where the warning was created)
[WEBPACK] Build failed after 76.195 seconds
(node:9312) Warning: a promise was rejected with a non-error: [object Object]
(node:9312) Warning: a promise was rejected with a non-error: [object Object]
[WEBPACK] Errors building highlighter.js
Module not found: Error: Can't resolve 'codemirror/addon/runmode/runmode.node.js' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/javascript/javascript' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/coffeescript/coffeescript' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/jsx/jsx' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/htmlmixed/htmlmixed' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/htmlembedded/htmlembedded' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/css/css' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/vue/vue' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/markdown/markdown' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/yaml/yaml' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/xml/xml' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/diff/diff' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/clike/clike' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/mllike/mllike' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/swift/swift' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/shell/shell' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/sql/sql' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/cypher/cypher' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/go/go' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/perl/perl' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/php/php' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/python/python' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/ruby/ruby' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/clojure/clojure' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/rust/rust' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror-mode-elixir' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/haxe/haxe' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/r/r' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/powershell/powershell' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/vb/vb' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/fortran/fortran' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/lua/lua' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/crystal/crystal' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/julia/julia' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/stex/stex' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/sparql/sparql' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/stylus/stylus' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/soy/soy' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/smalltalk/smalltalk' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/slim/slim' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/haml/haml' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/sieve/sieve' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/scheme/scheme' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/rst/rst' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/rpm/rpm' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/q/q' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/puppet/puppet' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/pug/pug' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/protobuf/protobuf' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/properties/properties' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/pig/pig' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/asciiarmor/asciiarmor' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/oz/oz' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/pascal/pascal' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/toml/toml' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/dart/dart' in '/home/pi/src/desktop/app/src/highlighter'
Module not found: Error: Can't resolve 'codemirror/mode/dockerfile/dockerfile' in '/home/pi/src/desktop/app/src/highlighter'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
pi@GnomePi:~/src/desktop $ Error: write EPIPE
at process.target._send (node:internal/child_process:864:20)
at process.target.send (node:internal/child_process:737:19)
at callback (/home/pi/src/desktop/node_modules/worker-farm/lib/child/index.js:32:17)
at finishedCallback (/home/pi/src/desktop/node_modules/parallel-webpack/src/webpackWorker.js:120:32)
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:441:32)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:458:13
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at onCompiled (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:456:21)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1183:17
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1179:33
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:2784:11)
at /home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:3089:11
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at new NodeError (node:internal/errors:372:5)
at process.target.send (node:internal/child_process:739:16)
at callback (/home/pi/src/desktop/node_modules/worker-farm/lib/child/index.js:32:17)
at finishedCallback (/home/pi/src/desktop/node_modules/parallel-webpack/src/webpackWorker.js:120:32)
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:441:32)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:458:13
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at onCompiled (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:456:21)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1183:17
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1179:33
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:2784:11)
at /home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:3089:11
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at new NodeError (node:internal/errors:372:5)
at process.target.send (node:internal/child_process:739:16)
at callback (/home/pi/src/desktop/node_modules/worker-farm/lib/child/index.js:32:17)
at finishedCallback (/home/pi/src/desktop/node_modules/parallel-webpack/src/webpackWorker.js:120:32)
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:441:32)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:458:13
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at onCompiled (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:456:21)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1183:17
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1179:33
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:2784:11)
at /home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:3089:11
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at new NodeError (node:internal/errors:372:5)
at process.target.send (node:internal/child_process:739:16)
at callback (/home/pi/src/desktop/node_modules/worker-farm/lib/child/index.js:32:17)
at finishedCallback (/home/pi/src/desktop/node_modules/parallel-webpack/src/webpackWorker.js:120:32)
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:441:32)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:458:13
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at onCompiled (/home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:456:21)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1183:17
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/pi/src/desktop/node_modules/tapable/lib/Hook.js:18:14)
at /home/pi/src/desktop/node_modules/webpack/lib/Compiler.js:1179:33
at finalCallback (/home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:2784:11)
at /home/pi/src/desktop/node_modules/webpack/lib/Compilation.js:3089:11
at Hook.eval [as callAsync] (eval at create (/home/pi/src/desktop/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
Operating System/Distribution
Raspbian Buster
Installer
latest source
What happened?
here is what happended