-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBuild.sh
43 lines (38 loc) · 1.33 KB
/
Build.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
#!/bin/sh
# Echo commands
set -x
# Exit on error
set -e
# Build release and debug builds
dotnet publish ./PlexCleaner/PlexCleaner.csproj \
--arch $TARGETARCH \
--self-contained false \
--output ./Build/Release \
--configuration release \
-property:Version=$BUILD_VERSION \
-property:FileVersion=$BUILD_FILE_VERSION \
-property:AssemblyVersion=$BUILD_ASSEMBLY_VERSION \
-property:InformationalVersion=$BUILD_INFORMATION_VERSION \
-property:PackageVersion=$BUILD_PACKAGE_VERSION
dotnet publish ./PlexCleaner/PlexCleaner.csproj \
--arch $TARGETARCH \
--self-contained false \
--output ./Build/Debug \
--configuration debug \
-property:Version=$BUILD_VERSION \
-property:FileVersion=$BUILD_FILE_VERSION \
-property:AssemblyVersion=$BUILD_ASSEMBLY_VERSION \
-property:InformationalVersion=$BUILD_INFORMATION_VERSION \
-property:PackageVersion=$BUILD_PACKAGE_VERSION
# Copy build output
mkdir -p ./Publish/PlexCleaner/Debug
mkdir -p ./Publish/PlexCleaner/Release
if [ "$BUILD_CONFIGURATION" = "Debug" ] || [ "$BUILD_CONFIGURATION" = "debug" ]
then
cp -r ./Build/Debug/* ./Publish/PlexCleaner
else
cp -r ./Build/Release/* ./Publish/PlexCleaner
fi
cp -r ./Build/Debug/* ./Publish/PlexCleaner/Debug
cp -r ./Build/Release/* ./Publish/PlexCleaner/Release
ls -la ./Publish/PlexCleaner