Skip to content

Commit

Permalink
WiX Toolset v4-preview.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robmen committed Nov 11, 2022
1 parent 209c921 commit 7a4632a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

![latest version](https://img.shields.io/nuget/vpre/wix)
![download count](https://img.shields.io/nuget/dt/wix)
![build status](https://img.shields.io/appveyor/build/wixtoolset/wix4)

# WiX Toolset v4

Expand Down
6 changes: 5 additions & 1 deletion src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,15 @@

<WriteLinesToFile File='$(SigningFilelist)' Lines='do-not-sign-files-in-nupkg' Overwrite='true' />

<Exec Command='dotnet.exe tool install --tool-path "$(SigningToolFolder)" SignClient' />
<Exec Command='dotnet.exe tool install --tool-path "$(SigningToolFolder)" SignClient' IgnoreExitCode='true' />
</Target>

<Target Name="SignOutput" DependsOnTargets="_GetSignClient" AfterTargets="AfterBuild"
Condition=" '$(SigningUser)'!='' and '$(SignOutput)'!='false' and
('$(MSBuildProjectExtension)'=='.csproj' or ('$(MSBuildProjectExtension)'=='.vcxproj' and '$(ConfigurationType)'!='StaticLibrary'))">

<Message Importance="high" Text="Signing file: $(TargetPath) using configuration from: $(SigningConfiguration)" />

<Exec Command='"$(SigningToolExe)" sign -i $(TargetPath) -c "$(SigningConfiguration)" -n "WiX Toolset" -d "WiX Toolset" -u https://wixtoolset.org/ -r "$(SigningUser)" -s "$(SigningSecret)"'
WorkingDirectory="$(MSBuildProjectDirectory)" EchoOff="true" />
</Target>
Expand All @@ -128,6 +130,8 @@
<SigningNupkgs Include="@(NuGetPackOutput)" Condition=" '%(Extension)'=='.nupkg' " />
</ItemGroup>

<Message Importance="high" Text="Signing nupkg: @(SigningNupkgs->&apos;%(Identity)&apos;) using configuration from: $(SigningConfiguration)" />

<Exec Command='"$(SigningToolExe)" sign -i "@(SigningNupkgs->&apos;%(Identity)&apos;)" -c "$(SigningConfiguration)" -f "$(SigningFilelist)" -n "WiX Toolset" -d "WiX Toolset" -u https://wixtoolset.org/ -r "$(SigningUser)" -s "$(SigningSecret)"'
WorkingDirectory="$(MSBuildProjectDirectory)" EchoOff="true" />
</Target>
Expand Down
2 changes: 1 addition & 1 deletion src/ext/Bal/bal.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ msbuild -p:Configuration=%_C% -bl:%_L%\bal_build.binlog || exit /b

dotnet test test\WixToolsetTest.Dnc.HostGenerator -c %_C% --nologo --no-build -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Dnc.HostGenerator.trx" || exit /b

msbuild -Restore -p:Configuration=%_C% test\examples\examples.proj -bl || exit /b
msbuild -Restore -p:Configuration=%_C% test\examples\examples.proj -bl:%_L%\bal_examples_build.binlog || exit /b

:: Test
dotnet test test\WixToolsetTest.Bal -c %_C% --no-build -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Bal.trx" || exit /b
Expand Down
9 changes: 8 additions & 1 deletion src/internal/SetBuildNumber/SetBuildNumber.proj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@

<PropertyGroup>
<SetBuildNumbersDependsOn>
__SetPropertiesFromGit;
__SetPropertiesFromGit;
SetAppVeyorBuildNumber;
SetGlobalJson;
SetDirectoryPackagesProps;
InstallSigningClient
</SetBuildNumbersDependsOn>

<GlobalJsonPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\..\..\global.json))</GlobalJsonPath>
Expand Down Expand Up @@ -88,6 +89,12 @@
</Target>


<Target Name="InstallSigningClient"
DependsOnTargets="_GetSignClient"
Condition=" '$(SigningUser)'!='' ">
</Target>


<Target Name="SetBuildNumbers"
DependsOnTargets="$(SetBuildNumbersDependsOn)"
BeforeTargets="AfterBuild" />
Expand Down
2 changes: 1 addition & 1 deletion src/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0-preview.1-build.{height}
4.0-preview.1

0 comments on commit 7a4632a

Please sign in to comment.