-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
141 additions
and
0 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ _test | |
.idea | ||
pkg | ||
bin | ||
release | ||
*.tmp | ||
|
||
# Architecture specific extensions/prefixes | ||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@echo off | ||
|
||
if "%OS%" == "Windows_NT" ( | ||
setlocal enabledelayedexpansion | ||
) | ||
|
||
cd src\etcdkeeper | ||
|
||
REM Windows amd64 | ||
set GOOS=windows | ||
set GOARCH=amd64 | ||
go install | ||
echo build etcdkeeper GOOS=windows GOARCH=amd64 ok | ||
|
||
REM Linux amd64 | ||
set GOOS=linux | ||
set GOARCH=amd64 | ||
go install | ||
echo build etcdkeeper GOOS=linux GOARCH=amd64 ok | ||
|
||
REM Darwin amd64 | ||
set GOOS=darwin | ||
set GOARCH=amd64 | ||
go install | ||
echo build etcdkeeper GOOS=darwin GOARCH=amd64 ok | ||
|
||
REM Linux arm64 | ||
set GOOS=linux | ||
set GOARCH=arm64 | ||
go install | ||
echo build etcdkeeper GOOS=linux GOARCH=arm64 ok | ||
|
||
cd ..\.. | ||
|
||
endlocal |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
cd src/etcdkeeper || echo Need to cd to the src/etcdkeeper directory first. | ||
|
||
# Windows amd64 | ||
export GOOS=windows | ||
export GOARCH=amd64 | ||
go install | ||
echo build etcdkeeper GOOS=windows GOARCH=amd64 ok | ||
|
||
# Linux amd64 | ||
export GOOS=linux | ||
export GOARCH=amd64 | ||
go install | ||
echo build etcdkeeper GOOS=linux GOARCH=amd64 ok | ||
|
||
# Darwin amd64 | ||
export GOOS=darwin | ||
export GOARCH=amd64 | ||
go install | ||
echo build etcdkeeper GOOS=darwin GOARCH=amd64 ok | ||
|
||
# Linux arm64 | ||
export GOOS=linux | ||
export GOARCH=arm64 | ||
go install | ||
echo build etcdkeeper GOOS=linux GOARCH=arm64 ok | ||
|
||
cd ../.. |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@echo off | ||
|
||
if "%OS%" == "Windows_NT" ( | ||
setlocal enabledelayedexpansion | ||
) | ||
|
||
set ver=%1 | ||
|
||
if "%ver%" == "" ( | ||
echo Release version is empty. | ||
goto quit | ||
) | ||
|
||
REM Windows amd64 | ||
echo release etcdkeeper-v%ver%-windows_x86_64.zip | ||
tar -cf release\etcdkeeper-v%ver%-windows_x86_64.zip --strip-components 1 bin\etcdkeeper.exe | ||
tar -rf release\etcdkeeper-v%ver%-windows_x86_64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-windows_x86_64.zip LICENSE README.md | ||
|
||
REM Linux amd64 | ||
echo release etcdkeeper-v%ver%-linux_x86_64.zip | ||
tar -cf release\etcdkeeper-v%ver%-linux_x86_64.zip --strip-components 2 bin\linux_amd64\etcdkeeper | ||
tar -rf release\etcdkeeper-v%ver%-linux_x86_64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-linux_x86_64.zip LICENSE README.md | ||
|
||
REM Darwin amd64 | ||
echo release etcdkeeper-v%ver%-darwin_x86_64.zip | ||
tar -cf release\etcdkeeper-v%ver%-darwin_x86_64.zip --strip-components 2 bin\darwin_amd64\etcdkeeper | ||
tar -rf release\etcdkeeper-v%ver%-darwin_x86_64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-darwin_x86_64.zip LICENSE README.md | ||
|
||
REM Linux arm64 | ||
echo release etcdkeeper-v%ver%-linux_arm64.zip | ||
tar -cf release\etcdkeeper-v%ver%-linux_arm64.zip --strip-components 2 bin\linux_arm64\etcdkeeper | ||
tar -rf release\etcdkeeper-v%ver%-linux_arm64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-linux_arm64.zip LICENSE README.md | ||
|
||
:quit | ||
|
||
endlocal |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
ver=$1 | ||
|
||
if [ "ver" = "" ]; then | ||
echo Release version is empty. | ||
exit | ||
fi | ||
|
||
# Windows amd64 | ||
echo release etcdkeeper-v%ver%-windows_x86_64.zip | ||
tar -cf release\etcdkeeper-v%ver%-windows_x86_64.zip --strip-components 1 bin\etcdkeeper.exe | ||
tar -rf release\etcdkeeper-v%ver%-windows_x86_64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-windows_x86_64.zip LICENSE README.md | ||
|
||
# Linux amd64 | ||
echo release etcdkeeper-v%ver%-linux_x86_64.zip | ||
tar -cf release\etcdkeeper-v%ver%-linux_x86_64.zip --strip-components 2 bin\linux_amd64\etcdkeeper | ||
tar -rf release\etcdkeeper-v%ver%-linux_x86_64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-linux_x86_64.zip LICENSE README.md | ||
|
||
# Darwin amd64 | ||
echo release etcdkeeper-v%ver%-darwin_x86_64.zip | ||
tar -cf release\etcdkeeper-v%ver%-darwin_x86_64.zip --strip-components 2 bin\darwin_amd64\etcdkeeper | ||
tar -rf release\etcdkeeper-v%ver%-darwin_x86_64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-darwin_x86_64.zip LICENSE README.md | ||
|
||
# Linux arm64 | ||
echo release etcdkeeper-v%ver%-linux_arm64.zip | ||
tar -cf release\etcdkeeper-v%ver%-linux_arm64.zip --strip-components 2 bin\linux_arm64\etcdkeeper | ||
tar -rf release\etcdkeeper-v%ver%-linux_arm64.zip assets | ||
tar -rf release\etcdkeeper-v%ver%-linux_arm64.zip LICENSE README.md |