Skip to content

Commit

Permalink
Improve builds for release
Browse files Browse the repository at this point in the history
- Sign the executables
- Separate out .NET Core from Desktop (now that Core is GA)
  • Loading branch information
jskeet committed Sep 27, 2019
1 parent 16f2fd6 commit 666c1f0
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions Drums/buildrelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,37 @@

set -e

dotnet build -c Release VDrumExplorer.Wpf
if [[ $PFX_PATH == "" || $PFX_PASSWORD == "" ]]
then
echo "Please set PFX_PATH and PFX_PASSWORD"
exit 1
fi

dotnet build -c Release -v quiet VDrumExplorer.Wpf
version=$(grep \<Version\> VDrumExplorer.Wpf/VDrumExplorer.Wpf.csproj | sed s/\<[^\>]*\>//g | sed 's/ //g')

rm -rf tmp
mkdir tmp
cd tmp
mkdir VDrumExplorer-$version
cp ../VDrumExplorer.Wpf/bin/Release/net472/* VDrumExplorer-$version
cp ../td17.vdrum VDrumExplorer-$version
cp ../LICENSE* VDrumExplorer-$version
cp ../README.md VDrumExplorer-$version
zip -r VDrumExplorer-$version.zip VDrumExplorer-$version

# .NET Core
release_dir=VDrumExplorer-DotNetCore-$version
mkdir $release_dir
cp ../VDrumExplorer.Wpf/bin/Release/netcoreapp3.0/* $release_dir
signtool sign -a -fd SHA256 -f $PFX_PATH -p $PFX_PASSWORD -t http://timestamp.comodoca.com/authenticode $release_dir/VDrumExplorer.Wpf.exe
cp ../td17.vdrum $release_dir
cp ../LICENSE* $release_dir
cp ../README.md $release_dir
zip -rq VDrumExplorer-DotNetCore-$version.zip $release_dir

# Desktop
release_dir=VDrumExplorer-Desktop-$version
mkdir $release_dir
cp ../VDrumExplorer.Wpf/bin/Release/net472/* $release_dir
signtool sign -a -fd SHA256 -f $PFX_PATH -p $PFX_PASSWORD -t http://timestamp.comodoca.com/authenticode $release_dir/VDrumExplorer.Wpf.exe
cp ../td17.vdrum $release_dir
cp ../LICENSE* $release_dir
cp ../README.md $release_dir
zip -rq VDrumExplorer-Desktop-$version.zip $release_dir

cd ..

0 comments on commit 666c1f0

Please sign in to comment.