-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove BuildStamp and BuildRev variables, re-adapt build commands
- Loading branch information
Showing
5 changed files
with
69 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,39 +18,34 @@ dep: | |
|
||
dev: | ||
go build \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${DEV_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=2023-01-01T00:00:00 \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=dev" \ | ||
-o cells-sync main.go | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${DEV_VERSION}" \ | ||
-o cells-sync | ||
|
||
dist: | ||
go build -a -trimpath \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
-o cells-sync main.go | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
-o cells-sync | ||
|
||
silicon: | ||
GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build -a -trimpath \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
-o cells-sync-m1 main.go | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
-o cells-sync-m1 | ||
|
||
pure: | ||
go build -a -trimpath --tags pure \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
-o cells-sync-noui main.go | ||
CGO_ENABLED=0 go build -a -trimpath --tags pure \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
-o cells-sync-noui | ||
|
||
win: | ||
go build \ | ||
-ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
go build -a -trimpath \ | ||
-ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
-o cells-sync.exe | ||
|
||
win_pure: | ||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -a -trimpath --tags pure \ | ||
-ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
-o cells-sync-noui.exe | ||
|
||
rsrc: | ||
${GOPATH}/bin/rsrc -arch amd64 -ico app/resources/icon.ico | ||
|
||
|
@@ -69,10 +64,8 @@ libayatana: | |
go mod edit -replace github.com/getlantern/systray=github.com/nekr0z/[email protected] | ||
go mod download github.com/getlantern/systray | ||
go build \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
-o cells-sync main.go | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
-o cells-sync . | ||
go mod edit -dropreplace github.com/getlantern/systray | ||
|
||
xgowin: | ||
|
@@ -81,32 +74,15 @@ xgowin: | |
--image ${XGO_IMAGE} \ | ||
--targets windows/amd64 \ | ||
-ldflags "-H=windowsgui \ | ||
-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
. | ||
|
||
xgowinnoui: | ||
${XGO_BIN} -go 1.19 \ | ||
-out "cells-sync-noui" \ | ||
--image ${XGO_IMAGE} \ | ||
--targets windows/amd64 \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
. | ||
|
||
## Still broken | ||
# To limit build to a given minimal version of MacOS, rather use: | ||
# --targets darwin-10.11/amd64 \ | ||
#xgodarwin: | ||
# ${XGO_BIN} -go 1.19 \ | ||
-out "cells-sync" \ | ||
--image ${XGO_IMAGE} \ | ||
--targets darwin-11.1/amd64 \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION} \ | ||
-X github.com/pydio/cells-sync/common.BuildStamp=${TODAY} \ | ||
-X github.com/pydio/cells-sync/common.BuildRevision=${GITREV}" \ | ||
-ldflags "-X github.com/pydio/cells-sync/common.Version=${CELLS_VERSION}" \ | ||
. | ||
|
||
clean: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters