-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from openGemini/sp-https
chore: support https and username
- Loading branch information
Showing
3 changed files
with
76 additions
and
9 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,3 +1,35 @@ | ||
#!/bin/bash | ||
go mod tidy | ||
go build . | ||
|
||
num=$# | ||
|
||
if [ "$num" -gt "0" ]; then | ||
GOOS=linux GOARCH=amd64 go build -mod=mod -o dataMigrate-linux-amd64 ./ | ||
GOOS=linux GOARCH=arm64 go build -mod=mod -o dataMigrate-linux-arm64 ./ | ||
GOOS=darwin GOARCH=amd64 go build -mod=mod -o dataMigrate-darwin-amd64 ./ | ||
GOOS=darwin GOARCH=arm64 go build -mod=mod -o dataMigrate-darwin-arm64 ./ | ||
GOOS=windows GOARCH=amd64 go build -mod=mod -o dataMigrate-windows-amd64.exe ./ | ||
|
||
version=0.4.0 | ||
mv dataMigrate-linux-amd64 dataMigrate | ||
tar -cvzf dataMigrate-$version-linux-amd64.tar.gz ./dataMigrate | ||
rm -rf ./dataMigrate | ||
|
||
mv dataMigrate-linux-arm64 dataMigrate | ||
tar -cvzf dataMigrate-$version-linux-arm64.tar.gz ./dataMigrate | ||
rm -rf ./dataMigrate | ||
|
||
mv dataMigrate-darwin-arm64 dataMigrate | ||
tar -cvzf dataMigrate-$version-darwin-arm64.tar.gz ./dataMigrate | ||
rm -rf ./dataMigrate | ||
|
||
mv dataMigrate-darwin-amd64 dataMigrate | ||
tar -cvzf dataMigrate-$version-darwin-amd64.tar.gz ./dataMigrate | ||
rm -rf ./dataMigrate | ||
|
||
mv dataMigrate-windows-amd64.exe dataMigrate.exe | ||
zip -o dataMigrate-$version-windows-amd64.zip ./dataMigrate.exe | ||
rm -rf ./dataMigrate.exe | ||
else | ||
go build . | ||
fi |
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