-
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.
Add utility script to build release zips.
- Loading branch information
Showing
2 changed files
with
25 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Builds iro4cli in Release mode, configured as a standalone application without need for the .NET runtime. | ||
# Generates binaries for Linux, Windows and Mac. | ||
|
||
sudo rm -rf bin/ | ||
CYAN='\033[0;36m' | ||
GREEN='\033[0;32m' | ||
NC='\033[0m' | ||
|
||
mkdir -p bin/ReleaseZipped | ||
|
||
function buildVariant { | ||
echo -e "${CYAN}Building variant for $1...${NC}" | ||
dotnet publish -r $1 -c Release --self-contained true --p:DebugSymbols=false --p:DebugType=None | ||
zip -r bin/ReleaseZipped/$1.zip bin/Release/net6.0/$1/publish | ||
echo -e "${GREEN}Build complete for $1.${NC}" | ||
} | ||
|
||
buildVariant win-x64 | ||
buildVariant linux-x64 | ||
buildVariant linux-musl-x64 | ||
buildVariant linux-arm64 | ||
buildVariant osx-x64 | ||
|
||
echo -e "${GREEN}All builds completed. Exiting...${NC}" |
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