<commit_before>#!/bin/bash

set -e

dotnet build -c Release 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
cd ..<commit_msg>Improve builds for release<commit_after>#!/bin/bash

set -e

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

# .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 ..
{'fraction_non_alphanumeric': 0.14962010520163646, 'fraction_numerical': 0.012273524254821741, 'mean_word_length': 4.1878787878787875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '472219', 'n_tokens_mistral': 727, 'n_tokens_neox': 650, 'n_words': 149}