hyper: Linux arm64 not working
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: Raspbian-64bit Bullseye
- Hyper.app version: 3.2.0
- Link of a Gist with the contents of your .hyper.js: https://gist.github.com/Jai-JAP/d52964cf0977bcd2f7087cd929aec9e8
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
- The issue is reproducible in vanilla Hyper.app: yes
Issue
Hyper Linux arm64 not working giving the errors
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1105)
at Module._load (node:internal/modules/cjs/loader:785:27)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Function._load (/tmp/.mount_Hyper-rUBHOP/resources/app.asar/plugins.js:99:37)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/tmp/.mount_Hyper-rUBHOP/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:30:15)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/tmp/.mount_Hyper-rUBHOP/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js',
'/tmp/.mount_Hyper-rUBHOP/resources/app.asar/node_modules/node-pty/lib/index.js',
'/tmp/.mount_Hyper-rUBHOP/resources/app.asar/session.js',
'/tmp/.mount_Hyper-rUBHOP/resources/app.asar/ui/window.js',
'/tmp/.mount_Hyper-rUBHOP/resources/app.asar/index.js',
undefined
]
}
A JavaScript error occurred in the main process
Uncaught Exception:
Error: `node-pty` failed to load. Typically this means that it was built incorrectly. Please check the `readme.md` to more info.
at createNodePtyError (/tmp/.mount_Hyper-rUBHOP/resources/app.asar/session.js:35:34)
at Object.<anonymous> (/tmp/.mount_Hyper-rUBHOP/resources/app.asar/session.js:42:11)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Function._load (/tmp/.mount_Hyper-rUBHOP/resources/app.asar/plugins.js:99:37)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
node-pty.node: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=5e9f50a0d8eb59de2c535c68623728922193c815, not stripped
This is the output of file app.asar/node_modules/node-pty/bin/node-pty-node from arm64 deb from the above artifacts app.asar is the folder where app.asar ( grabbed from opt/Hyper/resources ) is extracted using npx asar extract app.asar destfolder npx asar extract opt/Hyper/resources/app.asar app.asar
The output should actually be something like ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=xxxxxxx....., not stripped
i.e; it should state ARM aarch64 instead of x86_64
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 34
sure
Not much really, caught up with new job, will pick this up again soon.
@LabhanshAgrawal I think replacing https://github.com/vercel/hyper/blob/canary/electron-builder.json#L22-L50 with
Will do the thing
We may have to add
--x64,--arm64or--armv7ltoyarn run distthough, if electron builder doesnot automatically detect platform archAlso can you add “pacman” target for linux in electron-builder.json
Main issue I had was getting an arm environment Tried few actions from the GitHub actions marketplace to set up qemu etc to no luck, and ended up with the circleci build as its on actual Arm hardware.
I’ll use electron builder cli preferably and add the commands to package json
Awesome!! Great work on the workflow. Will refer to it for the build pipeline. Thanks