-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpack-dependencies.sh
123 lines (105 loc) · 3.03 KB
/
pack-dependencies.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
mkdir deps
mkdir local-source
cd deps
git clone https://github.com/Neuralia/Neuralia.Blockchains.Tools
git clone https://github.com/Neuralia/Neuralia.Data.HashFunction.xxHash
git clone https://github.com/Neuralia/Neuralia.Blockchain
git clone https://github.com/Neuralia/Neuralia.BouncyCastle
git clone https://github.com/Neuralia/Neuralia.STUN
cd Neuralia.Data.HashFunction.xxHash
if test -f "Neuralia.Data.HashFunction.xxHash.1.0.0.nupkg"; then
echo "file exists."
else
dotnet restore
if dotnet build -c Release --no-incremental ; then
if dotnet pack -c Release -o ../ ; then
dotnet clean ;
echo "pack completed"
else
echo "build failed"
fi
else
echo "build failed"
fi
fi
cp Neuralia.Data.HashFunction.xxHash.1.0.0.nupkg ../Neuralia.Blockchains.Tools/local-source/
cp Neuralia.Data.HashFunction.xxHash.1.0.0.nupkg ../../local-source/
cp Neuralia.Data.HashFunction.xxHash.1.0.0.nupkg ../Neuralia.Blockchain/local-source/
cp Neuralia.Data.HashFunction.xxHash.1.0.0.nupkg ../Neuralia.BouncyCastle/local-source/
cd ../Neuralia.Blockchains.Tools
if test -f "Neuralia.Blockchains.Tools.1.0.0.nupkg"; then
echo "file exists."
else
dotnet restore
if dotnet build -c Release --no-incremental ; then
if dotnet pack -c Release -o ../ ; then
dotnet clean ;
echo "pack completed"
else
echo "build failed"
fi
else
echo "build failed"
fi
fi
cp Neuralia.Blockchains.Tools.1.0.0.nupkg ../Neuralia.Blockchain/local-source/
cp Neuralia.Blockchains.Tools.1.0.0.nupkg ../Neuralia.BouncyCastle/local-source/
cp Neuralia.Blockchains.Tools.1.0.0.nupkg ../../local-source/
cd ../Neuralia.STUN
if test -f "Neuralia.STUN.1.0.0.nupkg"; then
echo "file exists."
else
dotnet restore
if dotnet build -c Release --no-incremental ; then
if dotnet pack -c Release -o ../ ; then
dotnet clean ;
echo "pack completed"
else
echo "build failed"
fi
else
echo "build failed"
fi
fi
cp Neuralia.STUN.1.0.0.nupkg ../Neuralia.Blockchain/local-source/
cp Neuralia.STUN.1.0.0.nupkg ../../local-source/
cd ../
if test -f "Neuralia.BouncyCastle.1.0.0.nupkg"; then
cd Neuralia.BouncyCastle
echo "file exists."
else
cd Neuralia.BouncyCastle
dotnet restore
if dotnet build Neuralia.BouncyCastle.sln -c Release --no-incremental ; then
if dotnet pack Neuralia.BouncyCastle.sln -c Release -o ../ ; then
dotnet clean ;
echo "pack completed"
else
echo "build failed"
fi
else
echo "build failed"
fi
fi
cd ../
cp Neuralia.BouncyCastle.1.0.0.nupkg Neuralia.Blockchain/local-source/
cp Neuralia.BouncyCastle.1.0.0.nupkg ../local-source/
cd Neuralia.Blockchain
if test -f "Neuralia.Blockchains.Common.1.0.0.nupkg" & test -f "Neuralia.Blockchains.Core.1.0.0.nupkg"; then
echo "files exists."
else
dotnet restore
if dotnet build -c Release --no-incremental ; then
if dotnet pack -c Release -o ../../ ; then
dotnet clean ;
echo "pack completed"
else
echo "build failed"
fi
else
echo "build failed"
fi
fi
cp Neuralia.Blockchains.Common.1.0.0.nupkg ../../local-source/
cp Neuralia.Blockchains.Core.1.0.0.nupkg ../../local-source/