Update to build system so people can build in release mode without needing signing
This commit is contained in:
@@ -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 "if('$(ConfigurationName)' -eq 'Release'){ cd $(TargetDir); ./sign.ps1}"" />
|
||||
<Exec Command="powershell -command "if('$(ConfigurationName)' -eq 'ReleaseSign'){ cd $(TargetDir); ./sign.ps1}"" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user