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

Exits without output on Apple Silicon #3

Open
tomjn opened this issue Jun 8, 2023 · 1 comment
Open

Exits without output on Apple Silicon #3

tomjn opened this issue Jun 8, 2023 · 1 comment

Comments

@tomjn
Copy link

tomjn commented Jun 8, 2023

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
Copy link
Contributor

joecampo commented Jun 8, 2023

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:

  • I have the wrong .sfx wrapper assigned to that specific PHP version
  • Something else is wonky with the PHP Micro CLI sfx build

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

  • From the Artifacts section download the applicable micro-cli zipped artifact for your PHP version
  • The zip file will contain the micro-cli.sfx file
  • Take your phar that you built and concatenate them together cat micro-cli.sfx demo.phar > demo.phar
  • chmod +x the outputted phar, and it should run.

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

No branches or pull requests

2 participants