Skip to content

Commit

Permalink
Include readme and license in the releases; Trim release version number
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Nov 27, 2023
1 parent defd506 commit 89d71e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ function CreateZip ($element)

Copy-Item -Path ($dir + "\BepInEx\plugins\" + $element + "_BepisPlugins") -Destination ($copy + "\plugins\" + $element + "_BepisPlugins") -Recurse -Force

Copy-Item -Path ($dir + "\..\README.md") -Destination ($copy + "\plugins\" + $element + "_BepisPlugins") -Recurse -Force
Copy-Item -Path ($dir + "\..\LICENSE") -Destination ($copy + "\plugins\" + $element + "_BepisPlugins") -Recurse -Force

try
{
$ver = "r" + (Get-ChildItem -Path ($copy) -Filter ($element + "_*.dll") -Recurse -Force)[0].VersionInfo.FileVersion.ToString()
$ver = "r" + (Get-ChildItem -Path ($copy + "\plugins") -Filter ($element + "_*.dll") -Recurse -Force)[0].VersionInfo.FileVersion.ToString() -replace "([\d+\.]+?\d+)[\.0]*$", '${1}'
}
catch
{
Expand Down

0 comments on commit 89d71e7

Please sign in to comment.