Skip to content

Commit

Permalink
Add missing .NET 3.5 binary and buff release script a bit...
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciastex authored and Ciastex committed Aug 23, 2020
1 parent 14803d4 commit 8aaaf65
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
Binary file not shown.
53 changes: 48 additions & 5 deletions prep_release.sh → pack_release.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
#!/bin/bash

art="./__BUILD/artifact"
shared="./Centrifuge.Shared/Binaries"
net35_bin="./__BUILD/Release/net35"
net35_art="./__BUILD/artifact/net35"
net35_art="$art/net35"

std20_bin="./__BUILD/Release/netstandard20"
std20_art="./__BUILD/artifact/netstandard20"
std20_art="$art/netstandard20"

installer_bin="./__BUILD/installer/Release/net461"

api_ver=$(sed -n 's/<Version>\(.*\)<\/Version>/\1/p' Reactor.API/Reactor.API.csproj | awk '{$1=$1};1')

rm -rf $net35_art 2> /dev/null
rm -rf $std20_art 2> /dev/null
platform="$(uname -s)"
case "${platform}" in
Linux*) machine="Linux";;
Darwin*) machine="Mac";;
CYGWIN*) machine="Cygwin";;
MINGW*) machine="MinGw";;
*) machine="Unsupported"
esac

rm -rf $art 2> /dev/null

mkdir -p $net35_art/Centrifuge
mkdir -p $net35_art/Managed
Expand All @@ -25,6 +40,7 @@ cp $net35_bin/MonoMod.Utils.dll $net35_art/Managed/
cp $net35_bin/Spindle.exe $net35_art/Managed/
cp $net35_bin/install_windows.bat $net35_art/Managed/
cp $net35_bin/install_linux.sh $net35_art/Managed/
cp $shared/System.Runtime.Serialization.dll $net35_art/Managed/

cp $std20_bin/Reactor.dll $std20_art/Centrifuge/
cp $std20_bin/Reactor.API.dll $std20_art/Centrifuge/
Expand All @@ -38,4 +54,31 @@ cp $std20_bin/MonoMod.Utils.dll $std20_art/Managed/
cp $std20_bin/Spindle.dll $std20_art/Managed/Spindle.exe
cp $std20_bin/install_windows.bat $std20_art/Managed/
cp $std20_bin/install_linux.sh $std20_art/Managed/
cp $std20_bin/System.* $std20_art/Managed/
cp $std20_bin/System.* $std20_art/Managed/

cd $net35_art
echo "Packaging .NET 3.5 build..."
zip -rj9 ../Centrifuge.$api_ver.net35.zip Centrifuge Managed
cd ../../../
echo

cd $std20_art
echo "Packaging .NET Standard 2.0 build..."
zip -rj9 ../Centrifuge.$api_ver.netstandard.zip Centrifuge Managed
cd ../../../
echo

if [ "$platform" == "Linux" ] || [ "$platform" == "Mac" ] || [ "$platform" == "Unsupported" ]; then
echo "Skipping installer packaging as we're not running on Windows..."
else
echo "Packaging installer..."

cd $installer_bin
zip -rj9 ../../../../$art/Centrifuge.Installer.zip .
cd ../../../../
echo
fi

stat -c "[%s bytes] %n" $art/Centrifuge.$api_ver.net35.zip
stat -c "[%s bytes] %n" $art/Centrifuge.$api_ver.netstandard.zip
stat -c "[%s bytes] %n" $art/Centrifuge.Installer.zip

0 comments on commit 8aaaf65

Please sign in to comment.