Skip to content

Commit 8b126ab

Browse files
authored
Merge pull request #87 from cwensley/windows-update-installer
Update windows installer
2 parents 74a420f + 96ba405 commit 8b126ab

File tree

5 files changed

+180
-201
lines changed

5 files changed

+180
-201
lines changed

.github/workflows/build.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ jobs:
2323
with:
2424
dotnet-version: ${{ env.DotNetVersion }}
2525

26-
- uses: microsoft/[email protected]
27-
2826
- name: Build PabloDraw
2927
run: dotnet publish Source/PabloDraw/PabloDraw.csproj ${{ env.BuildParameters }} /bl:artifacts/log/pablodraw-windows.binlog
3028

3129
- name: Build PabloDraw.Console
3230
run: dotnet publish Source/PabloDraw.Console/PabloDraw.Console.cxproj ${{ env.BuildParameters }} /bl:artifacts/log/pablodraw.console-windows.binlog
3331

3432
- name: Build msi
35-
run: msbuild ${{ env.BuildParameters }} Source/PabloDraw.WindowsInstaller/PabloDraw.WindowsInstaller.wixproj
33+
run: dotnet build ${{ env.BuildParameters }} Source/PabloDraw.WindowsInstaller/PabloDraw.WindowsInstaller.wixproj
3634

3735
- uses: actions/upload-artifact@v2
3836
with:

.vscode/tasks.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,13 @@
9292
{
9393
"label": "build-windows-installer",
9494
"type": "shell",
95-
"command": "${input:msbuild}",
95+
"command": "dotnet",
9696
"args": [
97-
"/t:Build",
97+
"build",
9898
"${workspaceFolder}/Source/PabloDraw.WindowsInstaller/PabloDraw.WindowsInstaller.wixproj",
9999
"/p:Configuration=${config:var.BuildConfiguration}",
100100
"/p:GenerateFullPaths=true",
101+
// "/p:BuildBranch=refs/tags/3.0.13-beta4",
101102
"/v:Minimal",
102103
"/consoleloggerparameters:NoSummary"
103104
],

Source/Pablo Desktop.sln

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
Directory.Build.props = Directory.Build.props
1515
Directory.Build.targets = Directory.Build.targets
1616
EmbedReferences.targets = EmbedReferences.targets
17+
PabloDraw.Console\PabloDraw.Console.cxproj = PabloDraw.Console\PabloDraw.Console.cxproj
1718
EndProjectSection
1819
EndProject
1920
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "PabloDraw.WindowsInstaller", "PabloDraw.WindowsInstaller\PabloDraw.WindowsInstaller.wixproj", "{38A42F6D-A417-45B0-8EC8-A700F31CBE26}"
@@ -78,10 +79,11 @@ Global
7879
{3FAACC7E-D156-4599-B0D1-6177AD78E8B1}.Release|x64.Build.0 = Release|Any CPU
7980
{3FAACC7E-D156-4599-B0D1-6177AD78E8B1}.Release|x86.ActiveCfg = Release|Any CPU
8081
{3FAACC7E-D156-4599-B0D1-6177AD78E8B1}.Release|x86.Build.0 = Release|Any CPU
81-
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|Any CPU.ActiveCfg = Debug|x86
82+
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|Any CPU.ActiveCfg = Debug|x64
83+
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|Any CPU.Build.0 = Debug|x64
8284
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|Mac.ActiveCfg = Debug|x86
83-
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|x64.ActiveCfg = Debug|x86
84-
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|x64.Build.0 = Debug|x86
85+
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|x64.ActiveCfg = Debug|x64
86+
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|x64.Build.0 = Debug|x64
8587
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|x86.ActiveCfg = Debug|x86
8688
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Debug|x86.Build.0 = Debug|x86
8789
{38A42F6D-A417-45B0-8EC8-A700F31CBE26}.Release|Any CPU.ActiveCfg = Release|x86

Source/PabloDraw.WindowsInstaller/PabloDraw.WindowsInstaller.wixproj

100644100755
+7-29
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled"
3-
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4-
<Import Project="..\Directory.Build.props" />
1+
<Project Sdk="WixToolset.Sdk/4.0.0-rc.3">
52
<PropertyGroup>
6-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7-
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
8-
<ProductVersion>3.10</ProductVersion>
9-
<ProjectGuid>38a42f6d-a417-45b0-8ec8-a700f31cbe26</ProjectGuid>
10-
<SchemaVersion>2.0</SchemaVersion>
113
<OutputName>PabloDraw-Windows-x64</OutputName>
12-
<OutputType>Package</OutputType>
13-
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
14-
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
154
<DefineConstants>PublishDir=$(PublishDir)</DefineConstants>
165
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
176
<OutputPath>$(ArtifactsDir)installer\$(Configuration)\$(BuildTarget)\</OutputPath>
187
<PublishReferences Condition="$(PublishReferences) == ''">True</PublishReferences>
198
</PropertyGroup>
20-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
21-
<DefineConstants>$(DefineConstants);Debug</DefineConstants>
22-
</PropertyGroup>
23-
<ItemGroup>
24-
<Compile Include="Product.wxs" />
25-
</ItemGroup>
269
<ItemGroup>
2710
<ProjectReference Include="..\PabloDraw\PabloDraw.csproj">
2811
<Name>PabloDraw</Name>
@@ -39,21 +22,16 @@
3922
<IsDotnetSDKProject>True</IsDotnetSDKProject>
4023
</ProjectReference>
4124
</ItemGroup>
42-
43-
<Import Project="$(WixTargetsPath)" />
44-
<Import Project="..\Directory.Build.targets" />
45-
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
46-
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
47-
</Target>
48-
4925
<Target Name="SetAssemblyVersion" BeforeTargets="BeforeBuild">
50-
<Message Importance="high" Text="Building Version: $(AssemblyVersion)" />
5126
<PropertyGroup>
52-
<DefineConstants>$(DefineConstants);Version=$(AssemblyVersion)</DefineConstants>
27+
<ProductVersion Condition="$(ProductVersion) == ''">$(AssemblyVersion)</ProductVersion>
28+
<ProductVersion Condition="$(ProductVersion) == ''">$(Version)</ProductVersion>
29+
<ProductVersion Condition="$(ProductVersion.IndexOf('-')) > 0">$(ProductVersion.Substring(0, $(ProductVersion.IndexOf('-'))))</ProductVersion>
30+
<DefineConstants>$(DefineConstants);Version=$(ProductVersion)</DefineConstants>
5331
</PropertyGroup>
32+
<Message Importance="high" Text="Building Version: $(ProductVersion)" />
5433
</Target>
55-
56-
<Target Name="BeforeBuild" Condition="$(PublishReferences) == 'True'">
34+
<Target Name="PublishPabloDraw" BeforeTargets="BeforeBuild" Condition="$(PublishReferences) == 'True'">
5735
<Exec WorkingDirectory="%(ProjectReference.RootDir)%(ProjectReference.Directory)" Command="dotnet publish -c $(Configuration)" Condition="'%(ProjectReference.IsDotnetSDKProject)' == 'True'" />
5836
<!-- <ItemGroup>
5937
<LinkerBindInputPaths Include="%(ProjectReference.PublishDir)" />

0 commit comments

Comments
 (0)