firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.03k stars 115 forks source link

macos ARM pre-built binary #1242

Closed shuguenot closed 1 month ago

shuguenot commented 1 month ago

Is your feature request related to a problem? Please describe. Is it possible to build an arm64 binary for macos ?

firecow commented 1 month ago

I haven't been able to make it work

mjn@mjn-laptop:~/workspace/firecow-gitlab-ci-local$ npm run pkg-macos-arm64

> gitlab-ci-local@4.50.0 pkg-macos-arm64
> pkg src/index.js --public -t node18-macos-arm64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos-arm64/gitlab-ci-local > bin/macos-arm64.gz

> pkg@5.8.1
(node:155822) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v18.5.0-macos-arm64         [====================] 100%

  fetched-v18.5.0-linuxstatic-arm64   [====================] 100%

> Warning Unable to sign the macOS executable
  Due to the mandatory code signing requirement, before the
  executable is distributed to end users, it must be signed.
  Otherwise, it will be immediately killed by kernel on launch.
  An ad-hoc signature is sufficient.
  To do that, run pkg on a Mac, or transfer the executable to a Mac
  and run "codesign --sign - <executable>", or (if you use Linux)
  install "ldid" utility to PATH and then run pkg again
gzip: bin/macos-arm64/gitlab-ci-local: No such file or directory

Ps. I looks like we need a Mac man :D

firecow commented 1 month ago

This is a dublicate by the way https://github.com/firecow/gitlab-ci-local/issues/704

Let's move stuff to that issue instead