-
Notifications
You must be signed in to change notification settings - Fork 396
/
package.sh
executable file
·24 lines (13 loc) · 951 Bytes
/
package.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
rm -rf "artifacts"
mkdir "artifacts"
dotnet clean src/ForceToolkitForNET.sln
dotnet build src/ForceToolkitForNET.sln -c Release /p:DebugType=Full
dotnet build src/ForceToolkitForNET.sln -c Debug /p:DebugType=Full
dotnet pack src/ForceToolkitForNET/ForceToolkitForNET.csproj -o "..\..\artifacts" --include-symbols --include-source
dotnet pack src/ChatterToolkitForNET/ChatterToolkitForNET.csproj -o "..\..\artifacts" --include-symbols --include-source
cp artifacts/DeveloperForce.Chatter.$1.nupkg artifacts/DeveloperForce.Chatter.$1.nupkg.zip
cp artifacts/DeveloperForce.Force.$1.nupkg artifacts/DeveloperForce.Force.$1.nupkg.zip
unzip artifacts/DeveloperForce.Chatter.$1.nupkg.zip -d artifacts/DeveloperForce.Chatter
unzip artifacts/DeveloperForce.Force.$1.nupkg.zip -d artifacts/DeveloperForce.Force
chmod +r artifacts/DeveloperForce.Chatter/DeveloperForce.Chatter.nuspec
chmod +r artifacts/DeveloperForce.Force/DeveloperForce.Force.nuspec