Update to build system so people can build in release mode without needing signing

This commit is contained in:
Martin Barker
2023-02-24 01:53:01 +00:00
parent 767c2ddad2
commit eccc0edcc9
6 changed files with 628 additions and 16 deletions

View File

@@ -22,6 +22,8 @@
<PackageTags>twitch, notifications</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<Configurations>Debug;Release;ReleaseSign</Configurations>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
@@ -50,7 +52,7 @@
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="powershell -command &quot;if('$(ConfigurationName)' -eq 'Release'){ cd $(TargetDir); ./sign.ps1}&quot;" />
<Exec Command="powershell -command &quot;if('$(ConfigurationName)' -eq 'ReleaseSign'){ cd $(TargetDir); ./sign.ps1}&quot;" />
</Target>
</Project>

View File

@@ -72,9 +72,14 @@ $appArgs = 'sign',
$appArgs = $appArgs + $files;
#run the signtool
signtool $appArgs;
#signtool $appArgs;
# once files are signed package into zip
Get-ChildItem './' | where { $_.Name -notin 'sign.ps1'} | Compress-Archive -DestinationPath 'Twitchy.zip' -Update
iscc ../../../../setup.iss
$setupArgs =
'/pu+',
'/DSourceDir=TwitchDesktopNotifications\bin\x64\ReleaseSign\net6.0-windows10.0.17763.0\',
'../../../../../setup.iss';
iscc $setupArgs
Exit $LASTEXITCODE