Closed AlexKMDev closed 2 years ago
thanks will update
PR #2 updates version in netclient.rb
tested on Darwin 21.4.0
working on a multi-arch version ---not quite there yet
Thanks, it seems installation fails only on M1 then (it still outputs No such file or directory
now)? I don't have an Intel mac, so I couldn't check.
someone else got it to work on intel :)
I will do some more investigation on how to do M1 --- maybe it would be easier to have a netclient-M1 cask... would you be willing to test it?
I will do some more investigation on how to do M1 --- maybe it would be easier to have a netclient-M1 cask... would you be willing to test it?
Of course, no problem.
could the No such file or directory
error be the result of #!/usr/local/bin/bash in the install script?
could the
No such file or directory
error be the result of #!/usr/local/bin/bash in the install script?
Probably. I don't have bash at this path at all. Maybe it will be better to use something like #!/usr/bin/env bash
(or even #!/bin/sh
, I don't think bash is really required there) and $(brew --prefix)
to figure out where homebrew is installed?
still not sure how to put two binaries netclient-darwin and netclient-darwin-arm64 in a single cask
You can try to build 2 tgz archives with each architecture with github workflows and then point to the corresponding archive in the cask file. Here is an example of how to check which architecture is used: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/ivpn.rb
You can try to build 2 tgz archives with each architecture with github workflows and then point to the corresponding archive in the cask file. Here is an example of how to check which architecture is used: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/ivpn.rb
OK, I think I get it... On the todo list for tomorrow
update available that should work on arm64 and amd64
Still fails now because of brew-prefix
in install.sh
, it should be brew --prefix
.
is this still an issue with latest release?
There is still an issue while installing netclient:
> brew install netclient
Error: Cask 'netclient' is unreadable: /opt/homebrew/Library/Taps/gravitl/homebrew-netclient/Casks/netclient.rb:6: syntax error, unexpected tIDENTIFIER, expecting end
...5e074d4a53e48b4c1586d8b2007f26f
...^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Library/Taps/gravitl/homebrew-netclient/Casks/netclient.rb:8: syntax error, unexpected tIDENTIFIER, expecting end
...f58e09813839685dc5c43542f3ec97c
...^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It happens because sha256 hashes aren't escaped in the formula. If I fix it manually on my installation, it works fine now. Thanks!
The install command returns 404 error, because of missing
v
before the version number. If I fix it:It still fails to find the directory and I'm not sure why:
It seems there is also only a x86 binary in the tgz archive now and
install.sh
doesn't handle M1 installations (/opt/homebrew
instead of/usr/local
).