#6575 Updating installer with distributable packages
This commit is contained in:
commit
278c283151
|
@ -349,10 +349,10 @@ macro(generate_versionfile)
|
||||||
"export SYNERGY_VERSION_STAGE=\"${SYNERGY_VERSION_STAGE}\"\n")
|
"export SYNERGY_VERSION_STAGE=\"${SYNERGY_VERSION_STAGE}\"\n")
|
||||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||||
FILE(WRITE ${CMAKE_BINARY_DIR}/version.bat
|
FILE(WRITE ${CMAKE_BINARY_DIR}/version.bat
|
||||||
"SET SYNERGY_VERSION_MAJOR=\"${SYNERGY_VERSION_MAJOR}\"\n"
|
"SET SYNERGY_VERSION_MAJOR=${SYNERGY_VERSION_MAJOR}\n"
|
||||||
"SET SYNERGY_VERSION_MINOR=\"${SYNERGY_VERSION_MINOR}\"\n"
|
"SET SYNERGY_VERSION_MINOR=${SYNERGY_VERSION_MINOR}\n"
|
||||||
"SET SYNERGY_VERSION_PATCH=\"${SYNERGY_VERSION_PATCH}\"\n"
|
"SET SYNERGY_VERSION_PATCH=${SYNERGY_VERSION_PATCH}\n"
|
||||||
"SET SYNERGY_VERSION_STAGE=\"${SYNERGY_VERSION_STAGE}\"\n")
|
"SET SYNERGY_VERSION_STAGE=${SYNERGY_VERSION_STAGE}\n")
|
||||||
endif()
|
endif()
|
||||||
endmacro(generate_versionfile)
|
endmacro(generate_versionfile)
|
||||||
|
|
||||||
|
@ -377,8 +377,9 @@ endif()
|
||||||
#
|
#
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||||
message (STATUS "Configuring the v1 installer")
|
message (STATUS "Configuring the v1 installer")
|
||||||
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer)
|
|
||||||
generate_versionfile()
|
generate_versionfile()
|
||||||
|
set(QT_PATH $ENV{CMAKE_PREFIX_PATH})
|
||||||
|
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
<Include>
|
<Include>
|
||||||
<?define Name="Synergy" ?>
|
<?define Name="Synergy" ?>
|
||||||
<?define Version="@SYNERGY_VERSION@" ?>
|
<?define Version="@SYNERGY_VERSION@" ?>
|
||||||
<?define QtVersion="5.9.5" ?> <!-- TODO: Configure this externally //-->
|
|
||||||
<?define Author="Symless Ltd" ?>
|
<?define Author="Symless Ltd" ?>
|
||||||
<?define BinPath="@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/$(var.Configuration)" ?>
|
<?define BinPath="@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/$(var.Configuration)" ?>
|
||||||
<?define ResPath="@CMAKE_CURRENT_SOURCE_DIR@/res" ?>
|
<?define ResPath="@CMAKE_CURRENT_SOURCE_DIR@/res" ?>
|
||||||
|
@ -11,13 +10,12 @@
|
||||||
<?define ProgramFilesFolder="ProgramFiles64Folder" ?>
|
<?define ProgramFilesFolder="ProgramFiles64Folder" ?>
|
||||||
<?define PlatformSimpleName="64-bit" ?>
|
<?define PlatformSimpleName="64-bit" ?>
|
||||||
<?define UpgradeGuid="E8A4FA54-14B9-4FD1-8E00-7BC46555FDA0" ?>
|
<?define UpgradeGuid="E8A4FA54-14B9-4FD1-8E00-7BC46555FDA0" ?>
|
||||||
<?define QtPath="C:\Qt\Qt$(var.QtVersion)\$(var.QtVersion)\msvc2015_64" ?>
|
|
||||||
<?else ?>
|
<?else ?>
|
||||||
<?define ProgramFilesFolder="ProgramFilesFolder" ?>
|
<?define ProgramFilesFolder="ProgramFilesFolder" ?>
|
||||||
<?define PlatformSimpleName="32-bit" ?>
|
<?define PlatformSimpleName="32-bit" ?>
|
||||||
<?define UpgradeGuid="BE0B9FD8-45E2-4A8E-A0D8-1F774D074A78" ?>
|
<?define UpgradeGuid="BE0B9FD8-45E2-4A8E-A0D8-1F774D074A78" ?>
|
||||||
<?define QtPath="C:\Qt\Qt$(var.QtVersion)\$(var.QtVersion)\msvc2015" ?>
|
|
||||||
<?endif ?>
|
<?endif ?>
|
||||||
|
<?define QtPath="@QT_PATH@" ?>
|
||||||
<?define QtBinPath="$(var.QtPath)\bin" ?>
|
<?define QtBinPath="$(var.QtPath)\bin" ?>
|
||||||
<?define QtPlatformPath="$(var.QtPath)\plugins\platforms" ?>
|
<?define QtPlatformPath="$(var.QtPath)\plugins\platforms" ?>
|
||||||
<?define OpenSSLPath="$(var.ExtPath)\openssl\windows\$(var.Platform)" ?>
|
<?define OpenSSLPath="$(var.ExtPath)\openssl\windows\$(var.Platform)" ?>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<ComponentGroupRef Id="OpenSSLComponents"/>
|
<ComponentGroupRef Id="OpenSSLComponents"/>
|
||||||
<ComponentGroupRef Id="ProductQtPluginComponents"/>
|
<ComponentGroupRef Id="ProductQtPluginComponents"/>
|
||||||
<ComponentRef Id="RegistryEntries"/>
|
<ComponentRef Id="RegistryEntries"/>
|
||||||
|
<MergeRef Id="VC_Redist"/>
|
||||||
</Feature>
|
</Feature>
|
||||||
<DirectoryRef Id="TARGETDIR">
|
<DirectoryRef Id="TARGETDIR">
|
||||||
<Component Guid="7CF3564D-1F8E-4D3D-9781-E1EE22D5BD67" Id="RegistryEntries">
|
<Component Guid="7CF3564D-1F8E-4D3D-9781-E1EE22D5BD67" Id="RegistryEntries">
|
||||||
|
@ -36,6 +37,11 @@
|
||||||
<!-- Windows 8 and later only -->
|
<!-- Windows 8 and later only -->
|
||||||
<Condition><![CDATA[Installed OR (VersionNT >= 602)]]></Condition>
|
<Condition><![CDATA[Installed OR (VersionNT >= 602)]]></Condition>
|
||||||
</Component>
|
</Component>
|
||||||
|
<?if $(var.Platform) = x64 ?>
|
||||||
|
<Merge Id="VC_Redist" SourceFile="$(env.ProgramFiles)\Common Files\Merge Modules\Microsoft_VC140_CRT_x64.msm" DiskId="1" Language="0"/>
|
||||||
|
<?else ?>
|
||||||
|
<Merge Id="VC_Redist" SourceFile="$(env.ProgramFiles)\Common Files\Merge Modules\Microsoft_VC140_CRT_x86.msm" DiskId="1" Language="0"/>
|
||||||
|
<?endif ?>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
<Icon Id="synergy.ico" SourceFile="$(var.ResPath)/synergy.ico"/>
|
<Icon Id="synergy.ico" SourceFile="$(var.ResPath)/synergy.ico"/>
|
||||||
<WixVariable Id="WixUIBannerBmp" Value="$(var.ResPath)\banner.bmp"/>
|
<WixVariable Id="WixUIBannerBmp" Value="$(var.ResPath)\banner.bmp"/>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio 14
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
VisualStudioVersion = 14.0.23107.0
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.29411.108
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Synergy", "Synergy.wixproj", "{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}"
|
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Synergy", "Synergy.wixproj", "{D4BA9F39-6A35-4C8F-9CB2-67FCBE5CAB17}"
|
||||||
EndProject
|
EndProject
|
||||||
|
@ -24,4 +25,7 @@ Global
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {2E0AA1C9-0F14-4FE4-8F18-430484EFBACE}
|
||||||
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,31 +1,33 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ProductVersion>3.10</ProductVersion>
|
<ProductVersion>3.11</ProductVersion>
|
||||||
<ProjectGuid>{d4ba9f39-6a35-4c8f-9cb2-67fcbe5cab17}</ProjectGuid>
|
<ProjectGuid>{d4ba9f39-6a35-4c8f-9cb2-67fcbe5cab17}</ProjectGuid>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<OutputName>Synergy</OutputName>
|
<OutputName>Synergy</OutputName>
|
||||||
<OutputType>Package</OutputType>
|
<OutputType>Package</OutputType>
|
||||||
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
|
<OutputPath>bin\$(Configuration)\</OutputPath>
|
||||||
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
|
<IntermediateOutputPath>wix\obj\$(Configuration)\</IntermediateOutputPath>
|
||||||
<OutputPath>bin\$(Configuration)\</OutputPath>
|
</PropertyGroup>
|
||||||
<IntermediateOutputPath>wix\obj\$(Configuration)\</IntermediateOutputPath>
|
<ItemGroup>
|
||||||
</PropertyGroup>
|
<Compile Include="$(SolutionDir)/Product.wxs" />
|
||||||
<ItemGroup>
|
<Content Include="$(SolutionDir)/Include.wxi" />
|
||||||
<WixExtension Include="WixFirewallExtension">
|
|
||||||
<HintPath>$(WixExtDir)\WixFirewallExtension.dll</HintPath>
|
</ItemGroup>
|
||||||
<Name>WixFirewallExtension</Name>
|
<ItemGroup>
|
||||||
</WixExtension>
|
<WixExtension Include="WixUtilExtension">
|
||||||
<WixExtension Include="WixUtilExtension">
|
<HintPath>C:\Program Files (x86)\WiX Toolset v3.11\bin\WixUtilExtension.dll</HintPath>
|
||||||
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
|
<Name>WixUtilExtension</Name>
|
||||||
<Name>WixUtilExtension</Name>
|
</WixExtension>
|
||||||
</WixExtension>
|
<WixExtension Include="WixUIExtension">
|
||||||
<WixExtension Include="WixUIExtension">
|
<HintPath>C:\Program Files (x86)\WiX Toolset v3.11\bin\WixUIExtension.dll</HintPath>
|
||||||
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
|
<Name>WixUIExtension</Name>
|
||||||
<Name>WixUIExtension</Name>
|
</WixExtension>
|
||||||
</WixExtension>
|
<WixExtension Include="WixFirewallExtension">
|
||||||
<Compile Include="Product.wxs"/>
|
<HintPath>C:\Program Files (x86)\WiX Toolset v3.11\bin\WixFirewallExtension.dll</HintPath>
|
||||||
<Content Include="Include.wxi"/>
|
<Name>WixFirewallExtension</Name>
|
||||||
</ItemGroup>
|
</WixExtension>
|
||||||
<Import Project="$(WixTargetsPath)"/>
|
</ItemGroup>
|
||||||
|
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue