configuredco / haulable

Create standalone PHP CLI applications with PHP Micro CLI
MIT License
163 stars 3 forks source link

Exits without output on Apple Silicon #3

Closed tomjn closed 3 weeks ago

tomjn commented 1 year ago

I fired up Laravel zero and created the base example CLI app, then tried to use Haulage to package it for apple silicon. I wanted to see how large the result would be, but found that after chmod +x'ing the output it wouldn't execute and is returning a bad error code of 1 and a newline, but nothing else

joecampo commented 1 year ago

Hey there, thanks so much for reporting! For which PHP version? This package is incredibly simple as it just concatenates the phar with PHP Micro CLI's self-extracting wrapper .sfx.

There are two things that I think this could be:

More than likely I'd imagine it is something I goofed up 😅. Unfortunately, I don't have access to an Apple Silicon machine at the moment to test. If you're interested in helping, I'd be more than grateful.

If you'd be able to help test: From the latest build here: https://github.com/dixyes/lwmbs/actions/runs/5207423135