Skip to content

Commit

Permalink
Automatically construct the distribution .zip
Browse files Browse the repository at this point in the history
  • Loading branch information
RoystonS committed Sep 30, 2021
1 parent fd6d02f commit bc2c631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-and-publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ dotnet publish -p:PublishProfile=FolderProfile
$path = Resolve-Path "BravoLights\bin\Release\net5.0-windows\publish\BetterBravoLights.exe"

$o = [system.diagnostics.fileversioninfo]::GetVersionInfo($path)
echo $o.ProductVersion | Out-File -Encoding UTF8 BravoLights\bin\Release\net5.0-windows\publish\VERSION.txt
Write-Output "Better Bravo Lights $($o.ProductVersion)" | Out-File -Encoding UTF8 BravoLights\bin\Release\net5.0-windows\publish\VERSION.txt

Compress-Archive -Path BravoLights\bin\Release\net5.0-windows\publish\* -Force -DestinationPath BetterBravoLights.zip

0 comments on commit bc2c631

Please sign in to comment.