breaktimer-app icon indicating copy to clipboard operation
breaktimer-app copied to clipboard

Linux arm64 support

Open jwillikers opened this issue 5 years ago • 14 comments

I have a Pinebook Pro laptop which has arm64 processors. Would it be possible to release binaries for Linux arm64?

jwillikers avatar Jun 06 '20 13:06 jwillikers

I'm not going to be able to do that at this point. I imagine you can build the app yourself. I'd also accept pull requests to get this working!

tom-james-watson avatar Jun 08 '20 08:06 tom-james-watson

When I have time, I'll see if I can build it 👍

jwillikers avatar Jun 08 '20 12:06 jwillikers

See https://github.com/tom-james-watson/breaktimer-app/blob/master/DEVELOPMENT.md 🙂

tom-james-watson avatar Jun 08 '20 12:06 tom-james-watson

@tom-james-watson Thanks for the link.

I was able to get everything working and running in the dev environment.

On the default Manjaro KDE distribution on the Pinebook Pro, I installed yarn and npm.

$ pacman -S yarn npm

Then, I followed the instructions on your link, but I had to run the upgrade command to get around an error.

$ yarn
$ yarn upgrade
$ yarn install
$ yarn dev

While I was able to build the package, a fatal error occurred when running yarn start.

$ yarn build
$ yarn start

The output of the failed yarn start command is here. The icon node_modules/electron/dist/resources/app/resources/tray/icon.png does not exist.

jwillikers avatar Jun 12 '20 15:06 jwillikers

That's actually a problem on master that I hadn't noticed.

Note - I've since switched back to npm.

Are you saying the app works ok in dev mode (npm run dev)?

If you want to test the production version, you want to package the app up: yarn package-linux. Then you should be able to find the built version of the production app under the release folder.

tom-james-watson avatar Jul 20 '20 11:07 tom-james-watson

The app works great in dev mode (npm run dev).

Running npm run package produces an AppImage which also works great!

jwillikers avatar Jul 27 '20 23:07 jwillikers

That's great. I don't really have any way of building and publishing this myself at the moment, so I think this will just have to be unofficial support for now.

tom-james-watson avatar Jul 28 '20 08:07 tom-james-watson

@tom-james-watson Yeah, that makes sense. I really appreciate the help and support! 🙏

Emulating Arm64 on QEMU and building it on that might not be too difficult. I can always test that out on one of my amd64 machines and let you know how it goes, if you think that's viable.

jwillikers avatar Jul 28 '20 13:07 jwillikers

Yeah sure if it's something that is easily reproducible then it could be something we could look at adding.

tom-james-watson avatar Jul 28 '20 13:07 tom-james-watson

Will this also work for the Apple M1 processor?

marijnbent avatar Dec 21 '20 10:12 marijnbent

I haven't got the hardware to try this out, so I'm not going to be able to produce official builds any time soon.

As far as I can tell from https://github.com/electron-userland/electron-builder/issues/5392, if we upgrade electron and electron-builder then you should be able to manually build ARM64 macOS binaries without any changes.

tom-james-watson avatar Dec 21 '20 10:12 tom-james-watson

Latest version seems to be working fine on my Mac mini M1

Catsvilles avatar Aug 08 '21 06:08 Catsvilles

+1 for arm64 (M1 Mac) support, down to only two apps I run that are missing it!

a-dows avatar Jan 03 '22 17:01 a-dows