-
Notifications
You must be signed in to change notification settings - Fork 35
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
677 changed files
with
9,910 additions
and
5,378 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
v=$(head -n 1 ./version.txt) | ||
currentDate=`date +%-m%d` | ||
version=$v.$currentDate | ||
|
||
currentDir=$(pwd) | ||
parentFolder=$(dirname "$currentDir") | ||
outputRootFolder="$parentFolder/out/local/$version" | ||
sourceRootFolder="$parentFolder/source/src" | ||
|
||
gatewayOutputFolder="$outputRootFolder/gateway" | ||
messengerProCommandOutputFolder="$outputRootFolder/command-server" | ||
messengerProQueryOutputFolder="$outputRootFolder/query-server" | ||
messengerGrpcOutputFolder="$outputRootFolder/messenger-grpc" | ||
smsOutputFolder="$outputRootFolder/sms" | ||
|
||
echo "Current dir: $currentDir" | ||
echo "OutputFolder is: $outputRootFolder" | ||
|
||
CreateFolderIfNotExists() { | ||
folder="$1" | ||
if [ ! -d "$folder" ]; then | ||
echo "Create new folder: $folder" | ||
mkdir -p "$folder" | ||
fi | ||
} | ||
|
||
Build-Server() { | ||
srcFolder="$1" | ||
outputFolder="$2" | ||
sourceFolder="$sourceRootFolder/$srcFolder" | ||
dotnet publish "$sourceFolder" -c Release -o "$outputFolder" | ||
} | ||
|
||
Build-Server "./MyTelegram.GatewayServer" "$gatewayOutputFolder" | ||
Build-Server "./MyTelegram.Messenger.CommandServer" "$messengerProCommandOutputFolder" | ||
Build-Server "./MyTelegram.Messenger.QueryServer" "$messengerProQueryOutputFolder" | ||
Build-Server "./MyTelegram.MessengerServer.GrpcService" "$messengerGrpcOutputFolder" | ||
Build-Server "./MyTelegram.SmsSender" "$smsOutputFolder" | ||
|
||
cd "$currentDir" |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
54 changes: 0 additions & 54 deletions
54
build/docker/Dockerfile-messenger-command-server-linux-musl-x64
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.