-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add doc for building in linux (#118)
- Loading branch information
Showing
7 changed files
with
57 additions
and
78 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
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,37 @@ | ||
#!/bin/bash | ||
|
||
while [[ "$#" -gt 0 ]]; do | ||
case $1 in | ||
--build-all) | ||
BUILD_ALL=true | ||
;; | ||
*) | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
PUBLISH_FLAGS="--self-contained -p:InvariantGlobalization=true" | ||
ARCH=$(uname -m) | ||
|
||
if [ "$ARCH" == "x86_64" ]; then | ||
ARCH="linux-x64" | ||
elif [ "$ARCH" == "aarch64" ]; then | ||
ARCH="linux-arm64" | ||
else | ||
echo "Unsupported architecture: $ARCH" | ||
fi | ||
|
||
echo "Building VirtualClient solution." | ||
dotnet build src/VirtualClient/VirtualClient.sln -c Debug | ||
|
||
if [ "$BUILD_ALL" = true ]; then | ||
echo "Publishing VirtualClient for all platforms." | ||
dotnet publish src/VirtualClient/VirtualClient.Main/VirtualClient.Main.csproj -r linux-x64 -c Debug $PUBLISH_FLAGS | ||
dotnet publish src/VirtualClient/VirtualClient.Main/VirtualClient.Main.csproj -r linux-arm64 -c Debug $PUBLISH_FLAGS | ||
dotnet publish src/VirtualClient/VirtualClient.Main/VirtualClient.Main.csproj -r win-x64 -c Debug $PUBLISH_FLAGS | ||
dotnet publish src/VirtualClient/VirtualClient.Main/VirtualClient.Main.csproj -r win-arm64 -c Debug $PUBLISH_FLAGS | ||
else | ||
echo "Publishing VirtualClient for architecture: $ARCH" | ||
dotnet publish src/VirtualClient/VirtualClient.Main/VirtualClient.Main.csproj -r $ARCH -c Debug $PUBLISH_FLAGS | ||
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