r3-team / r3

REI3 - Free and open low code
https://rei3.de
MIT License
359 stars 47 forks source link

Added support for compilation on Darwin #18

Closed florintanasa closed 2 years ago

florintanasa commented 2 years ago

I did it the same things also for Darwin OS, like for FreeBSD, now can be compiled also for/on Darwin OS. Great tool and programming language go, we can do binary file for an others platforms (cross compiling). With: go tool dist list obtain GOOS/GOARCH value and to compile we use: example for Darwin: GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.appVersion=2.5.1.2981" or for Windows: GOOS=windows GOARCH=amd64 go build -ldflags "-X main.appVersion=2.5.1.2981" or for FreeBSD: GOOS=freebsd GOARCH=amd64 go build -ldflags "-X main.appVersion=2.5.1.2981"