Skip to content

Commit

Permalink
Installer improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
elzik committed Oct 15, 2023
1 parent 5f94d32 commit be052fd
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
dotnet build $PSScriptRoot\..\Elzik.FmSync.sln

dotnet test `
--no-build `
-c Release `
--verbosity normal `
-p:CollectCoverage=true `
-p:CoverletOutput=TestResults/coverage.opencover.xml `
Expand Down
20 changes: 20 additions & 0 deletions Build/build-windows-installer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
dotnet publish $PSScriptRoot\..\src\Elzik.FmSync.Worker\Elzik.FmSync.Worker.csproj `
--runtime win-x64 `
--self-contained true `
--configuration Release `
-p:Platform=x64 `
-p:PublishSingleFile=true

dotnet publish $PSScriptRoot\..\src\Elzik.FmSync.Console\Elzik.FmSync.Console.csproj `
--runtime win-x64 `
--self-contained true `
--configuration Release `
-p:Platform=x64 `
-p:PublishSingleFile=true

dotnet build $PSScriptRoot\..\Installer\Elzik.FmSync.WindowsInstaller\Elzik.FmSync.WindowsInstaller.wixproj `
--runtime win-x64 `
--self-contained true `
--configuration Release `
-p:Platform=x64 `
-p:PublishSingleFile=true
11 changes: 4 additions & 7 deletions Elzik.FmSync.sln
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{0FE56BA0-BDDF-4291-9BDD-A6D512610FAE}"
ProjectSection(SolutionItems) = preProject
Build\continuous-integration.ps1 = Build\continuous-integration.ps1
Build\build-and-test.ps1 = Build\build-and-test.ps1
Build\build-windows-installer.ps1 = Build\build-windows-installer.ps1
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Publish", "Publish", "{069FD2C8-3AFB-4D61-A19A-3257331FC223}"
ProjectSection(SolutionItems) = preProject
Publish\local-install.ps1 = Publish\local-install.ps1
Publish\publish.ps1 = Publish\publish.ps1
EndProjectSection
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Installer", "Installer", "{069FD2C8-3AFB-4D61-A19A-3257331FC223}"
EndProject
Project("{B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0}") = "Elzik.FmSync.WindowsInstaller", "Publish\Elzik.FmSync.WindowsInstaller\Elzik.FmSync.WindowsInstaller.wixproj", "{534679A3-D29B-4D63-882B-C09F4D0EA8CB}"
Project("{B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0}") = "Elzik.FmSync.WindowsInstaller", "Installer\Elzik.FmSync.WindowsInstaller\Elzik.FmSync.WindowsInstaller.wixproj", "{534679A3-D29B-4D63-882B-C09F4D0EA8CB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ComponentGroup Id="Console" Directory="CONSOLE_INSTALLFOLDER">
<Component Id="ConsoleExecutable" Bitness="always64">
<File Id="Elzik.FmSync.Console.exe"
Source="$(var.SolutionDir)Publish\output\Elzik.FmSync.Console\win-x64\fmsync.exe"
Source="$(var.Elzik.FmSync.Console.TargetDir)publish\fmsync.exe"
KeyPath="true" />
<Environment Id="Path"
Name="PATH"
Expand All @@ -16,7 +16,7 @@
</Component>
<Component Id="ConsoleConfig" Permanent="true">
<File Id="console.appSettings.json"
Source="$(var.SolutionDir)Publish\output\Elzik.FmSync.Console\win-x64\appSettings.json"
Source="$(var.Elzik.FmSync.Console.TargetDir)publish\appSettings.json"
KeyPath="true" />
</Component>
</ComponentGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="WixToolset.Sdk/4.0.0">
<ItemGroup>
<None Include="CreateEula.ps1" />
<None Include="LICENSE.rtf" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="WixToolset.UI.wixext" Version="4.0.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Elzik.FmSync.Console\Elzik.FmSync.Console.csproj" />
<ProjectReference Include="..\..\src\Elzik.FmSync.Worker\Elzik.FmSync.Worker.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ComponentGroup Id="Worker" Directory="WORKER_INSTALLFOLDER">
<Component Id="WorkerExecutable" Bitness="always64">
<File Id="Elzik.FmSync.Worker.exe"
Source="$(var.SolutionDir)Publish\output\Elzik.FmSync.Worker\win-x64\Elzik.FmSync.Worker.exe"
Source="$(var.Elzik.FmSync.Worker.TargetDir)publish\Elzik.FmSync.Worker.exe"
KeyPath="true" />

<RemoveFile Id="ALL_WORKER_EXECUTABLES" Name="*.exe" On="both" />
Expand All @@ -28,7 +28,7 @@
</Component>
<Component Id="WorkerConfig" Permanent="true">
<File Id="worker.appSettings.json"
Source="$(var.SolutionDir)Publish\output\Elzik.FmSync.Worker\win-x64\appSettings.json"
Source="$(var.Elzik.FmSync.Worker.TargetDir)publish\appSettings.json"
KeyPath="true" />
</Component>
</ComponentGroup>
Expand Down
18 changes: 0 additions & 18 deletions Publish/local-install.ps1

This file was deleted.

18 changes: 0 additions & 18 deletions Publish/publish.ps1

This file was deleted.

0 comments on commit be052fd

Please sign in to comment.