From 88e8074da44b8e39ea5a616e83536d3727901686 Mon Sep 17 00:00:00 2001 From: Graicc <33105645+Graicc@users.noreply.github.com> Date: Mon, 23 May 2022 19:13:32 -0400 Subject: [PATCH] Add full release build script --- GorillaKZ/MakeReleaseFull.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 GorillaKZ/MakeReleaseFull.ps1 diff --git a/GorillaKZ/MakeReleaseFull.ps1 b/GorillaKZ/MakeReleaseFull.ps1 new file mode 100644 index 0000000..5b950fa --- /dev/null +++ b/GorillaKZ/MakeReleaseFull.ps1 @@ -0,0 +1,15 @@ +# Needs to be at least that version, or mmm can't read the archiveme = (ls *.csproj).BaseName:vs) +#Requires -Modules @{ ModuleName="Microsoft.PowerShell.Archive"; ModuleVersion="1.2.3" } +$MyInvocation.MyCommand.Path | Split-Path | Push-Location # Run from this script's directory +$Name = (ls *.csproj).BaseName +dotnet build -c Release + +curl -L https://github.com/Graicc/GorillaKZ/releases/download/v0.1.0/GorillaKZ-v0.1.0.zip -o DL.zip +Expand-Archive DL.zip +rm DL.zip +mv DL\BepInEx . + +cp .\Resources\BepInEx\ . -R -F +cp bin\Release\netstandard2.0\$Name.dll BepInEx\plugins\$Name\ +Compress-Archive .\BepInEx\ $Name-v +rmdir .\BepInEx\ -Recurse