automatic-mouse-mover
automatic-mouse-mover copied to clipboard
updated dependency for M1 support
- set the go version to 1.16 which is the first version to support M1
- updated all the dependencies to get rid of compile errors On an additional note you can combine an arm and an x86 binary with "lipo" to get a universal binary.
Thanks for the PR! Will take a look asap
thanks for looking at it, I guess the version needs to be 1.18 at least if I understand that pipeline error correctly
Will probably need to edit the workflow file which mentions 1.17
Hmm, seems to be some issues with the new robotgo lib?
I cannot replicate this on my machine, do you know how?
no :(
Better go directly with robotGo v1.0.0 which is in RC1(https://github.com/go-vgo/robotgo/releases/tag/v1.0.0-rc1), which seems to bring not retro-compatible change
this PR can be closed I presume
Newest release still uses Rosetta 2 on my M1
Newest release still uses Rosetta 2 on my M1
I think it's more a matter of compilation because on my side (compiled from source), I have it running as Apple (not Intel)
Should I add something to the build to build one for Apple macs?
may be it depends on the system you used to compile, because I didn't add anything, to make "Apple" appear :/
@Resousse how did you get to the view where it says Apple ?
Activity monitor > processes
Let me compile it with my m1 and add it to the release. Right now the one I have added was compiled on my x86
Should I add something to the build to build one for Apple macs?
Setting Architecture variables should work. I haven't tried yet.
GOOS=darwin
BINARY_NAME=amm_universal
build:
mkdir -p -v ./bin/amm.app/Contents/Resources
mkdir -p -v ./bin/amm.app/Contents/MacOS
cp ./appInfo/*.plist ./bin/amm.app/Contents/Info.plist
cp ./appInfo/*.icns ./bin/amm.app/Contents/Resources/icon.icns
GOARCH=amd64 go build -o ./bin/amm.app/Contents/MacOS/amm_amd64 cmd/main.go
GOARCH=arm64 go build -o ./bin/amm.app/Contents/MacOS/amm_arm64 cmd/main.go
lipo -create -output $(BINARY_NAME) amm_amd64 amm_arm64
When you compiled it it goes with rosetta/intel?
When you compiled it it goes with rosetta/intel?
Yep. I see intel instead of Apple in Activity monitor > processes
on my side, I do not find how to compile an "Intel" version :) My go version is : go1.21.3 darwin/arm64 Same on your side?
Finally I'm able to generate an intel version :
CGO_ENABLED=1 GOARCH=amd64 make