|
85 | 85 | <PackagesPath ParameterType="System.String" Required="true" /> |
86 | 86 | <OutputFile ParameterType="System.String" Required="true" /> |
87 | 87 | <LatestInstaller ParameterType="System.String" Output="true" /> |
| 88 | + <LatestInstallerFilename ParameterType="System.String" Output="true" /> |
88 | 89 | </ParameterGroup> |
89 | 90 | <Task> |
90 | 91 | <Code Type="Class" Source="GenerateGitVersionConstants.cs" /> |
|
93 | 94 |
|
94 | 95 | <UsingTask TaskName="GenerateInstallScripts" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll"> |
95 | 96 | <ParameterGroup> |
96 | | - <G4WInstallerPath ParameterType="System.String" Required="true" /> |
97 | | - <GVFSSetupPath ParameterType="System.String" Required="true" /> |
98 | | - <G4WInstallBatPath ParameterType="System.String" Required="true" /> |
99 | | - <GVFSInstallBatPath ParameterType="System.String" Required="true" /> |
| 97 | + <GitInstallerFilename ParameterType="System.String" Required="true" /> |
| 98 | + <VFSForGitSetupFilename ParameterType="System.String" Required="true" /> |
| 99 | + <GitInstallBatPath ParameterType="System.String" Required="true" /> |
| 100 | + <VFSForGitInstallBatPath ParameterType="System.String" Required="true" /> |
| 101 | + <UnifiedInstallBatPath ParameterType="System.String" Required="true" /> |
100 | 102 | </ParameterGroup> |
101 | 103 | <Task> |
102 | 104 | <Code Type="Class" Source="GenerateInstallScripts.cs" /> |
|
138 | 140 | </UsingTask> |
139 | 141 |
|
140 | 142 | <PropertyGroup> |
| 143 | + <GVFSSetupFilename>SetupGVFS.$(GVFSVersion).exe</GVFSSetupFilename> |
141 | 144 | <GVFSSetupPath>$(BuildOutputDir)\GVFS.Installer.Windows\bin\x64\$(Configuration)\SetupGVFS.$(GVFSVersion).exe</GVFSSetupPath> |
142 | 145 | <OutDir>$(BuildOutputDir)\GVFS.Build\</OutDir> |
143 | 146 | <GitVersionConstantsPath>$(OutDir)GVFSConstants.GitVersion.cs</GitVersionConstantsPath> |
144 | 147 | <G4WInstallBatPath>$(OutDir)InstallG4W.bat</G4WInstallBatPath> |
145 | 148 | <GVFSInstallBatPath>$(OutDir)InstallGVFS.bat</GVFSInstallBatPath> |
| 149 | + <UnifiedInstallBatPath>$(OutDir)InstallProduct.bat</UnifiedInstallBatPath> |
146 | 150 | <GVFSInstallerNuspecPath>$(OutDir)GVFS.Installers.nuspec</GVFSInstallerNuspecPath> |
147 | 151 | <AssemblyVersionPath>$(BuildOutputDir)\CommonAssemblyVersion.cs</AssemblyVersionPath> |
148 | 152 | <VersionHeaderPath>$(BuildOutputDir)\CommonVersionHeader.h</VersionHeaderPath> |
|
186 | 190 | <Target Name="GenerateInstallScripts" |
187 | 191 | DependsOnTargets="GVFSPackageRestore;$(GenerateInstallScriptsDependsOn)" |
188 | 192 | Inputs="$(RestoreTimestampPath);@(GeneratedPackageConfig);$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(MSBuildThisFileDirectory)GenerateGitVersionConstants.cs;$(MSBuildThisFileDirectory)GenerateInstallScripts.cs;$(MSBuildThisFileDirectory)GenerateGVFSInstallersNuspec.cs" |
189 | | - Outputs="$(GitVersionConstantsPath);$(G4WInstallBatPath);$(GVFSInstallBatPath);$(GVFSInstallerNuspecPath)" |
| 193 | + Outputs="$(GitVersionConstantsPath);$(G4WInstallBatPath);$(GVFSInstallBatPath);$(GVFSInstallerNuspecPath);$(UnifiedInstallBatPath);$(OutDir)$(G4WInstallerFilename)" |
190 | 194 | Condition="'$(OS)' == 'Windows_NT'"> |
191 | 195 | <GenerateGitVersionConstants GitPackageVersion="$(GitPackageVersion)" PackagesPath="$(PackagesDir)" OutputFile="$(GitVersionConstantsPath)"> |
192 | | - <Output PropertyName="G4WInstaller" TaskParameter="LatestInstaller" /> |
| 196 | + <Output TaskParameter="LatestInstaller" PropertyName="G4WInstaller" /> |
| 197 | + <Output TaskParameter="LatestInstallerFilename" PropertyName="G4WInstallerFilename" /> |
193 | 198 | </GenerateGitVersionConstants> |
194 | | - <GenerateInstallScripts G4WInstallerPath="$(G4WInstaller)" GVFSSetupPath="$(GVFSSetupPath)" G4WInstallBatPath="$(G4WInstallBatPath)" GVFSInstallBatPath="$(GVFSInstallBatPath)" /> |
| 199 | + <GenerateInstallScripts GitInstallerFilename="$(G4WInstallerFilename)" |
| 200 | + VFSForGitSetupFilename="$(GVFSSetupFilename)" |
| 201 | + GitInstallBatPath="$(G4WInstallBatPath)" |
| 202 | + VFSForGitInstallBatPath="$(GVFSInstallBatPath)" |
| 203 | + UnifiedInstallBatPath="$(UnifiedInstallBatPath)"/> |
195 | 204 | <GenerateGVFSInstallersNuspec GVFSSetupPath="$(GVFSSetupPath)" GitPackageVersion="$(GitPackageVersion)" PackagesPath="$(PackagesDir)" OutputFile="$(GVFSInstallerNuspecPath)" /> |
| 205 | + <Copy SourceFiles="$(G4WInstaller)" DestinationFiles="$(OutDir)\$(G4WInstallerFilename)" /> |
196 | 206 | </Target> |
197 | 207 |
|
198 | 208 | <Target Name="GenerateShared" |
|
0 commit comments