forked from lemestwo/AikaEmu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPublish_zip.sh
28 lines (20 loc) · 830 Bytes
/
Publish_zip.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
VERSION_PREFIX=0.0.0.2
VERSION_SUFFIX=alpha
FRAMEWORK=netcoreapp2.2
CONFIGURATION=Debug
#CONFIGURATION=Release
mkdir -p publish;
mkdir -p publish/$CONFIGURATION;
for runtime in "win10-x64"; do
dotnet publish -c $CONFIGURATION -r $runtime --self-contained true;
mkdir -p publish/$CONFIGURATION/$runtime;
for project in "src/AikaEmu.AuthServer" "src/AikaEmu.GameServer" "src/AikaEmu.WebServer"; do
mkdir -p publish/$CONFIGURATION/$runtime/$project;
mv $project/bin/$CONFIGURATION/$FRAMEWORK/$runtime/publish/* publish/$CONFIGURATION/$runtime/$project;
rm -R $project/bin/$CONFIGURATION/$FRAMEWORK/$runtime;
done;
cd publish/$CONFIGURATION/$runtime;
7z a -tzip ../../../publish/$CONFIGURATION/AikaEmu.$VERSION_PREFIX-$VERSION_SUFFIX+$runtime.zip *;
cd ../../../;
rm -R publish/$CONFIGURATION/$runtime;
done;