-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-all.sh
executable file
·88 lines (72 loc) · 3.65 KB
/
build-all.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
#Author: James Keith ([email protected])
#Date: 18-10-2018
#Build properties
Configuration=Release
Platform=AnyCPU
Net=net8.0
#Library names for reuse
common=Tealium.Common
droid=Tealium.Droid
ios=Tealium.iOS
platform_ios=Tealium.Platform.iOS
platform_droid=Tealium.Platform.Droid
nuget=Tealium.Maui.NuGet
firebase_common=Tealium.RemoteCommands.Firebase.Common
firebase_ios=Tealium.RemoteCommands.Firebase.iOS
firebase_droid=Tealium.RemoteCommands.Firebase.Droid
#Project filenames for cleaning/building
proj_common=APIs/$common/$common.csproj
proj_droid=APIs/$droid/$droid.csproj
proj_ios=APIs/$ios/$ios.csproj
proj_platform_ios=APIs/$platform_ios/$platform_ios.csproj
proj_platform_droid=APIs/$platform_droid/$platform_droid.csproj
proj_firebase_common=Integrations/Firebase/$firebase_common/$firebase_common.csproj
proj_firebase_ios=Integrations/Firebase/$firebase_ios/$firebase_ios.csproj
proj_firebase_droid=Integrations/Firebase/$firebase_droid/$firebase_droid.csproj
# echo "Cleaning..."
dotnet build $proj_common /t:Clean /p:Configuration=$Configuration
dotnet build $proj_droid /t:Clean /p:Configuration=$Configuration
dotnet build $proj_ios /t:Clean /p:Configuration=$Configuration
dotnet build $proj_platform_droid /t:Clean /p:Configuration=$Configuration
dotnet build $proj_platform_ios /t:Clean /p:Configuration=$Configuration
dotnet build $proj_firebase_common /t:Clean /p:Configuration=$Configuration
dotnet build $proj_firebase_ios /t:Clean /p:Configuration=$Configuration
dotnet build $proj_firebase_droid /t:Clean /p:Configuration=$Configuration
#dotnet build $proj_nuget /t:Clean /p:Configuration=$Configuration /p:Platform=$Platform
# echo "Deleting old build directories for $Configuration"
# rm -r ./APIs/$common/bin/$Configuration
# rm -r ./APIs/$droid/bin/$Configuration
# rm -r ./APIs/$ios/bin/$Configuration
# rm -r ./APIs/$platform_droid/bin/$Configuration
# rm -r ./APIs/$platform_ios/bin/$Configuration
# rm -r ./APIs/$nuget/bin/$Configuration
# echo "Building..."
dotnet build $proj_common /p:Configuration=$Configuration
dotnet build $proj_droid /p:Configuration=$Configuration
dotnet build $proj_ios /p:Configuration=$Configuration
dotnet build $proj_platform_droid /p:Configuration=$Configuration
dotnet build $proj_platform_ios /p:Configuration=$Configuration
dotnet build $proj_firebase_common /p:Configuration=$Configuration
dotnet build $proj_firebase_ios /p:Configuration=$Configuration
dotnet build $proj_firebase_droid /p:Configuration=$Configuration
#dotnet build $proj_nuget /p:Configuration=$Configuration /p:Platform=$Platform
# echo "Copying..."
# cp APIs/$common/bin/$Configuration/$common.dll ./Binaries
# cp APIs/$droid/bin/$Configuration/$droid.dll ./Binaries
# cp APIs/$ios/bin/$Configuration/$ios.dll ./Binaries
# cp APIs/$platform_droid/bin/$Configuration/$platform_droid.dll ./Binaries
# cp APIs/$platform_ios/bin/$Configuration/$platform_ios.dll ./Binaries
echo "Copying..."
mkdir -p Distribution
cp APIs/$common/bin/$Configuration/$Net/$common.dll ./Distribution
cp APIs/$droid/bin/$Configuration/$Net-android/$droid.dll ./Distribution
cp APIs/$ios/bin/$Configuration/$Net-ios/$ios.dll ./Distribution
cp APIs/$platform_droid/bin/$Configuration/$Net-android/$platform_droid.dll ./Distribution
cp APIs/$platform_ios/bin/$Configuration/$Net-ios/$platform_ios.dll ./Distribution
cp Integrations/Firebase/$firebase_common/bin/$Configuration/$Net/$firebase_common.dll ./Distribution
cp Integrations/Firebase/$firebase_droid/bin/$Configuration/$Net-android/$firebase_droid.dll ./Distribution
cp Integrations/Firebase/$firebase_ios/bin/$Configuration/$Net-ios/$firebase_ios.dll ./Distribution
cd NuGet
./nuget-pack.sh
./nuget-push-to-local.sh