Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sabaki for aarch64 Linux devices #929

Open
gsobell opened this issue Jan 30, 2023 · 5 comments
Open

Sabaki for aarch64 Linux devices #929

gsobell opened this issue Jan 30, 2023 · 5 comments

Comments

@gsobell
Copy link

gsobell commented Jan 30, 2023

As I understand it, it is possible to build Electron apps for Linux Arm platforms. Would it be within the scope of the project to also include a AppImage targeted for those systems in future releases? I think this could open up Sabaki to quite a few tinkerers, on Raspberry Pi, pine64 and other boards, in addition to those who use Arm systems as daily drivers.

@apetresc
Copy link
Member

apetresc commented Feb 2, 2023

Are you on Arch Linux, by any chance? You might want to try out the PKGBUILD, I suspect it'll probably work on aarch64 if Electron does.

@gsobell
Copy link
Author

gsobell commented Feb 2, 2023

It failed repeatedly to build from the AUR, but succeeded building manually with $ npm run build (on a Pinebook Pro).

@apetresc
Copy link
Member

apetresc commented Feb 2, 2023

What error did you get when running the PKGBUILD?

@gsobell
Copy link
Author

gsobell commented Feb 2, 2023

I think the problem is:

+ linux-arm64-unpacked
- linux-unpacked'

The folder my AUR helper looks for in package() does not exist.

> sabaki@0.52.2 build
> npm run bundle && electron-builder --dir


> sabaki@0.52.2 bundle
> webpack --mode production

asset bundle.js 1.25 MiB [emitted] [minimized] (name: main) 1 related asset
orphan modules 627 KiB [orphan] 200 modules
runtime modules 937 bytes 4 modules
modules by path ./node_modules/ 1.64 MiB
  javascript modules 1.61 MiB 300 modules
  json modules 31.1 KiB 2 modules
modules by path ./src/ 747 KiB
  modules by path ./src/modules/ 124 KiB 7 modules
  modules by path ./src/*.js 31.1 KiB 2 modules
  ./src/components/App.js + 178 modules 591 KiB [built] [code generated]
modules by path external "require(/ 84 bytes
  external "require(\"@sabaki/i18n\")" 42 bytes [built] [code generated]
  external "require(\"iconv-lite\")" 42 bytes [built] [code generated]
+ 15 modules
webpack 5.74.0 compiled successfully in 41012 ms
   electron-builder  version=23.3.3 os=6.1.7-1-MANJARO-ARM
   loaded configuration  file=package.json ("build" field)
   writing effective config  file=dist/builder-effective-config.yaml
   packaging       platform=linux arch=arm64 electron=13.6.9 appOutDir=dist/linux-arm64-unpacked
==> Starting check()...

// passes tests...

  14 passing (298ms)
==> Entering fakeroot environment...
==> Starting package()...
cp: cannot stat '/home/gsobell/.cache/paru/clone/sabaki/src/Sabaki-0.52.2/dist/linux-unpacked': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'sabaki-0.52.2-1':
error: packages failed to build: sabaki-0.52.2-1

@apetresc
Copy link
Member

apetresc commented Jan 4, 2024

Indeed that does seem to be the problem. Next time I'm on my Arch machine I'll try to update the PKGBUILD there to accept linux-arm64-unpacked as an output directory, that oughta do it. I'll ping you when it's pushed to the AUR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants