jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.08k stars 1.07k forks source link

Any tips for compiling a binary executable of fpm on arm64? #2055

Closed jgresham closed 3 months ago

jgresham commented 3 months ago

I'm looking to compile a binary executable of fpm for arm64 (and hopefully other architectures). Does anyone have experience or advice for trying to compile a ruby project into an executable? or any specific fpm related knowledge that might help for this?

Background

fpm is a dependency for a popular electron app builder tool (desktop apps). They are currently using an old fpm binary and only have an x86 version. I'm looking to provide an aarch64/arm64 version to support electron apps on arm boards out of the box. More: https://github.com/signalapp/Signal-Desktop/issues/6063#issuecomment-1307001166

jgresham commented 3 months ago

Ok, I think have it here https://github.com/jgresham/fpm-arm-binary/blob/main/compile-script.sh

jordansissel commented 3 months ago

I’m glad you got things working and reported your findings!

One suggestion: after ‘git clone’ do a ‘git checkout’ of a release tag to ensure you get a released version of fpm.

On Tue, Mar 19, 2024, at 4:21 PM, Johns Gresham wrote:

Ok, I think have it here https://github.com/jgresham/fpm-arm-binary/blob/main/compile-script.sh

— Reply to this email directly, view it on GitHub https://github.com/jordansissel/fpm/issues/2055#issuecomment-2008331307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABAF2VWTHYGMRMC4IJTWNTYZDB6ZAVCNFSM6AAAAABE4E4FASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBYGMZTCMZQG4. You are receiving this because you are subscribed to this thread.Message ID: @.***>