trustcrypto / OnlyKey-App

The OnlyKey App is used for the initial setup and configuration of OnlyKey. Supported on Windows, macOS, Linux, and Chromebook (with Chrome App).
https://docs.crp.to/app.html
Other
105 stars 24 forks source link

Please provide ARM64 version of the app #207

Open as400l opened 1 year ago

as400l commented 1 year ago

Hi, there are more and more devices running arm64 CPUs. So please provide arm64 version of the app. Alternatively make onlykey-cli even on functionality with the gui app. So eg one can make firmware updates from cli etc.

thx

nkichukov commented 1 year ago

I've been running this app on aarch64 for a few years already without any problems. You need to download: https://github.com/LeonardLaszlo/nw.js-armv7-binaries/releases/download/nw54-arm64_2021-07-10/nw54-arm64_2021-07-10.tar.gz (1.)

and extract this file from (1.): usr/docker/dist/nwjs-chromium-ffmpeg-branding/nwjs-v0.54.2-linux-arm64.tar.gz (2.)

Then extract from (2.) into this folder: resources/nw/nwjs/

Before building I have a patch (I do not remember why this was needed, but it is part of my ebuild):

--- a/tasks/build.js    2020-12-06 00:07:21.000000000 +0100
+++ b/tasks/build.js    2021-02-21 00:55:59.964170524 +0100
@@ -48,6 +48,10 @@

   if (getEnvName() === "production") {
     console.log(`Copying node_modules from ${getNodeModulesDir()}...`);
+    projectDir.copy("resources/nw", projectDir.path("release_node_modules/node_modules/nw/"), {
+      overwrite: true,
+      matching: ["*"],
+    });
     rootDir.copy(`${getNodeModulesDir()}`, destDir.path("node_modules"), {
       matching: ["!nw/**/*"],
       overwrite: true,

and then build the app as usual: npm run release

Good luck.