diff --git a/SabreTools.Matching.1.3.2.nupkg b/SabreTools.Matching.1.3.2.nupkg new file mode 100644 index 0000000..1eb8c94 Binary files /dev/null and b/SabreTools.Matching.1.3.2.nupkg differ diff --git a/publish-nix.sh b/publish-nix.sh new file mode 100644 index 0000000..e6562fe --- /dev/null +++ b/publish-nix.sh @@ -0,0 +1,36 @@ +#! /bin/bash + +# This batch file assumes the following: +# - .NET 8.0 (or newer) SDK is installed and in PATH +# +# If any of these are not satisfied, the operation may fail +# in an unpredictable way and result in an incomplete output. + +# Optional parameters +NO_BUILD=false +while getopts "uba" OPTION +do + case $OPTION in + b) + NO_BUILD=true + ;; + *) + echo "Invalid option provided" + exit 1 + ;; + esac +done + +# Set the current directory as a variable +BUILD_FOLDER=$PWD + +# Only build if requested +if [ $NO_BUILD = false ] +then + # Restore Nuget packages for all builds + echo "Restoring Nuget packages" + dotnet restore + + # Create Nuget Package + dotnet pack SabreTools.Matching/SabreTools.Matching.csproj --output $BUILD_FOLDER +fi \ No newline at end of file diff --git a/publish-win.ps1 b/publish-win.ps1 new file mode 100644 index 0000000..5c6c002 --- /dev/null +++ b/publish-win.ps1 @@ -0,0 +1,26 @@ +# This batch file assumes the following: +# - .NET 8.0 (or newer) SDK is installed and in PATH +# +# If any of these are not satisfied, the operation may fail +# in an unpredictable way and result in an incomplete output. + +# Optional parameters +param( + [Parameter(Mandatory = $false)] + [Alias("NoBuild")] + [switch]$NO_BUILD +) + +# Set the current directory as a variable +$BUILD_FOLDER = $PSScriptRoot + +# Only build if requested +if (!$NO_BUILD.IsPresent) +{ + # Restore Nuget packages for all builds + Write-Host "Restoring Nuget packages" + dotnet restore + + # Create Nuget Package + dotnet pack SabreTools.Matching\SabreTools.Matching.csproj --output $BUILD_FOLDER +}