Skip to content

Commit

Permalink
compile dbxcli for AMD64 on Mac (Intel code to be used on Intel and S…
Browse files Browse the repository at this point in the history
…ilicon), update documentation, issue #1
  • Loading branch information
ThomasMaul committed May 31, 2022
1 parent 5490bc9 commit 5e74b89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions optional/dbxcli_Mac_precompiled/HowToCompileYourself.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ dbxcli version: 0.1.0
SDK version: 5.4.0
Spec version: 097e9ba

Note: this runs a build fitting your current CPU architecture. If you run on Intel, you get Intel. If you are using AMD/Silicon, you get a build for Silicon.
While Intel can be used on Silicon thanks to Rosetta, it does not work the other way around.

To build on ARM an Intel version, useable on both architecture, instead of go build ente:
GOOS=darwin GOARCH=amd64 go build -o dbxcli main.go

Test as above.

Last step:
Copy it into your destination folder, such as resources and sign it. (Modify the path below fitting to your path), also use your certificate name:

Expand Down
Binary file modified optional/dbxcli_Mac_precompiled/dbxcli
Binary file not shown.

0 comments on commit 5e74b89

Please sign in to comment.