-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved versioning build and release process.
- Loading branch information
Showing
4 changed files
with
17 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
filet-cloud | ||
filet-cloud-v* | ||
builds/* | ||
resources/deps | ||
**.DS_Store | ||
**.key | ||
|
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 |
---|---|---|
@@ -1,4 +1,14 @@ | ||
#!/bin/bash | ||
VER=v$(date '+%y.%m').$(git rev-parse --short HEAD~5 | xxd -r -p | base64) | ||
GOARCH=arm GOARM=5 GOOS=linux go build -o filet-cloud-$VER-raspberry-pi | ||
GOARCH=arm64 GOOS=android go build -o filet-cloud-$VER-android | ||
mkdir -p builds | ||
GOARCH=arm GOARM=5 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-raspberry-pi | ||
GOARCH=arm64 GOOS=android go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-android | ||
GOARCH=arm64 GOOS=darwin go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-macos-apple | ||
GOARCH=amd64 GOOS=darwin go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-macos-intel | ||
GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-x64 | ||
GOARCH=386 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-x86 | ||
GOARCH=arm64 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-arm | ||
GOARCH=riscv64 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-riscv | ||
echo | ||
echo "RELEASE: $VER" | ||
echo |
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