|
|
@@ -18,7 +18,7 @@
|
|
|
<Target Name="PrepareForBuild">
|
|
|
<MakeDir Directories="$(IntermediateOutputPath)" />
|
|
|
|
|
|
- <Error Text="Currently only linux-x64 is supported by Rpm installers." Condition=" '$(TargetRuntimeIdentifier)' != 'linux-x64' " />
|
|
|
+ <Error Text="Currently only linux-x64 and linux-arm64 are supported by Rpm installers." Condition=" '$(TargetRuntimeIdentifier)' != 'linux-x64' AND '$(TargetRuntimeIdentifier)' != 'linux-arm64'" />
|
|
|
|
|
|
<Error Text="Missing required property: RpmPackageInstallRoot" Condition=" '$(RpmPackageInstallRoot)' == '' " />
|
|
|
<Error Text="Missing required property: PackageContentRoot" Condition=" '$(PackageContentRoot)' == '' " />
|
|
|
@@ -37,6 +37,11 @@
|
|
|
<Target Name="Pack" />
|
|
|
|
|
|
<Target Name="RpmBuild" DependsOnTargets="$(RpmBuildDependsOn)">
|
|
|
+ <PropertyGroup>
|
|
|
+ <CblMariner1TargetPath>$(InstallersOutputPath)$(CblMarinerBaseName)$(CblMariner1VersionSuffix)$(CblMarinerExtension)</CblMariner1TargetPath>
|
|
|
+ <CblMariner2TargetPath>$(InstallersOutputPath)$(CblMarinerBaseName)$(CblMariner2VersionSuffix)$(CblMarinerExtension)</CblMariner2TargetPath>
|
|
|
+ </PropertyGroup>
|
|
|
+
|
|
|
<!-- Create layout: Create changelog -->
|
|
|
<PropertyGroup>
|
|
|
<ChangeLogProps>DATE=$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))</ChangeLogProps>
|
|
|
@@ -51,10 +56,6 @@
|
|
|
<GenerateFileFromTemplate TemplateFile="$(MSBuildThisFileDirectory)changelog.in" OutputPath="$(GeneratedChangeLog)" Properties="$(ChangeLogProps)" />
|
|
|
|
|
|
<!-- Run fpm -->
|
|
|
- <PropertyGroup>
|
|
|
- <RpmArch Condition=" '$(TargetArchitecture)' == 'x64' ">amd64</RpmArch>
|
|
|
- </PropertyGroup>
|
|
|
-
|
|
|
<ItemGroup>
|
|
|
<FpmArgs Include="--verbose" />
|
|
|
<FpmArgs Include="--input-type=dir" />
|
|
|
@@ -79,12 +80,12 @@
|
|
|
<Exec Command="scl enable rh-ruby25 'fpm @(FpmArgs,' ')'" />
|
|
|
|
|
|
<Copy SourceFiles="$(TargetPath)"
|
|
|
- DestinationFiles="$(CblMarinerTargetPath)"
|
|
|
+ DestinationFiles="$(CblMariner1TargetPath)"
|
|
|
OverwriteReadOnlyFiles="True"
|
|
|
SkipUnchangedFiles="False"
|
|
|
UseHardlinksIfPossible="False" />
|
|
|
|
|
|
- <Message Text="$(TargetPath) -> $(CblMarinerTargetPath)" Importance="high" />
|
|
|
+ <Message Text="$(TargetPath) -> $(CblMariner1TargetPath)" Importance="high" />
|
|
|
|
|
|
<Copy SourceFiles="$(TargetPath)"
|
|
|
DestinationFiles="$(CblMariner2TargetPath)"
|