Fixing ubuntu deb generation.
This commit is contained in:
parent
ecdf6419fb
commit
f42599dec2
2 changed files with 82 additions and 76 deletions
|
@ -1,93 +1,98 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
|
||||||
<SdkDebianPackageName>dotnet-dev-$(SdkVersion)</SdkDebianPackageName>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- dotnet deb-tool -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<DotnetDebToolPackageId>dotnet-deb-tool</DotnetDebToolPackageId>
|
|
||||||
<DotnetDebToolVersion Condition=" '$(DotnetDebToolVersion)' == '' ">1.0.0-*</DotnetDebToolVersion>
|
|
||||||
<DotnetDebToolConsumerProjectName>dotnet-deb-tool-consumer</DotnetDebToolConsumerProjectName>
|
|
||||||
<DotnetDebToolDir>$(IntermediateDirectory)/$(DotnetDebToolConsumerProjectName)</DotnetDebToolDir>
|
|
||||||
<DotnetDebToolPackageSource Condition=" '$(DotnetDebToolPackageSource)' == '' "></DotnetDebToolPackageSource>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- constants -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<DebianInstalledDirectory>/usr/share/dotnet</DebianInstalledDirectory>
|
|
||||||
|
|
||||||
<LayoutPackageRootDirName>package_root</LayoutPackageRootDirName>
|
|
||||||
<LayoutAbsolutePlacementDirName>$</LayoutAbsolutePlacementDirName>
|
|
||||||
<LayoutSamplesDirName>samples</LayoutSamplesDirName>
|
|
||||||
<LayoutDocsDirName>docs</LayoutDocsDirName>
|
|
||||||
<LayoutDebianFilesDirName>debian</LayoutDebianFilesDirName>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- Package Identities -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<SharedFxDebianPackageName>dotnet-sharedframework-$(SharedFrameworkName)-$(SharedFrameworkVersion)</SharedFxDebianPackageName>
|
|
||||||
<SharedFxDebianPackageName>$(SharedFxDebianPackageName.ToLower())</SharedFxDebianPackageName>
|
|
||||||
<HostFxrDebianPackageName>dotnet-hostfxr-$(HostFxrVersion)</HostFxrDebianPackageName>
|
|
||||||
<HostFxrDebianPackageName>$(HostFxrDebianPackageName.ToLower())</HostFxrDebianPackageName>
|
|
||||||
<HostDebianPackageName>dotnet-host</HostDebianPackageName>
|
|
||||||
|
|
||||||
<AdditionalSharedFxDebianPackageName>dotnet-sharedframework-$(SharedFrameworkName)-$(AdditionalSharedFrameworkVersion)</AdditionalSharedFxDebianPackageName>
|
|
||||||
<AdditionalSharedFxDebianPackageName>$(AdditionalSharedFxDebianPackageName.ToLower())</AdditionalSharedFxDebianPackageName>
|
|
||||||
<AdditionalHostFxrDebianPackageName>dotnet-hostfxr-$(AdditionalHostFxrVersion)</AdditionalHostFxrDebianPackageName>
|
|
||||||
<AdditionalHostFxrDebianPackageName>$(AdditionalHostFxrDebianPackageName.ToLower())</AdditionalHostFxrDebianPackageName>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- Inputs -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<ManpagesDirectory>$(RepoRoot)/Documentation/manpages</ManpagesDirectory>
|
|
||||||
<EndToEndTestProject>$(RepoRoot)/test/EndToEnd/EndToEnd.csproj</EndToEndTestProject>
|
|
||||||
<CLISdkRoot>$(OutputDirectory)/sdk</CLISdkRoot>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- Output Directories -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<DotNetDebToolOutputDirectory>$(SdkDebianIntermediateDirectory)/deb-tool-output</DotNetDebToolOutputDirectory>
|
|
||||||
<DebianTestResultsXmlFile>$(SdkDebianIntermediateDirectory)/debian-testResults.xml</DebianTestResultsXmlFile>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- Layout Directories -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<LayoutPackageRootDir>$(LayoutDirectory)/$(LayoutPackageRootDirName)</LayoutPackageRootDir>
|
|
||||||
<LayoutAbsolutePlacementDir>$(LayoutDirectory)/$(LayoutAbsolutePlacementDirName)</LayoutAbsolutePlacementDir>
|
|
||||||
<LayoutSamplesDir>$(LayoutDirectory)/$(LayoutSamplesDirName)</LayoutSamplesDir>
|
|
||||||
<LayoutDocsDir>$(LayoutDirectory)/$(LayoutDocsDirName)</LayoutDocsDir>
|
|
||||||
<LayoutDebianFilesDir>$(LayoutDirectory)/$(LayoutDebianFilesDirName)</LayoutDebianFilesDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- debian_config.json -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<DebianConfigTemplateFile>$(RepoRoot)/packaging/deb/dotnet-debian_config.json</DebianConfigTemplateFile>
|
|
||||||
<DebianConfigJsonFile>$(LayoutDirectory)/debian_config.json</DebianConfigJsonFile>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<Target Name="SetupDebProps"
|
<Target Name="SetupDebProps"
|
||||||
DependsOnTargets="Init">
|
DependsOnTargets="Init">
|
||||||
<ItemGroup>
|
<PropertyGroup>
|
||||||
<DotnetDebToolProjectJsonLines Include="{" />
|
<SdkDebianPackageName>dotnet-dev-$(SdkVersion)</SdkDebianPackageName>
|
||||||
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"version": "1.0.0-*"," />
|
</PropertyGroup>
|
||||||
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"name": "$(DotnetDebToolConsumerProjectName)"," />
|
|
||||||
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"frameworks": { "netcoreapp1.0": {}, "netcoreapp1.1": {} }," />
|
<!-- dotnet deb-tool -->
|
||||||
<DotnetDebToolProjectJsonLines Include="%20%20%20%20"tools": {"$(DotnetDebToolPackageId)": "$(DotnetDebToolVersion)" }" />
|
<PropertyGroup>
|
||||||
<DotnetDebToolProjectJsonLines Include="}" />
|
<DotnetDebToolConsumerProjectName>dotnet-deb-tool-consumer.csproj</DotnetDebToolConsumerProjectName>
|
||||||
</ItemGroup>
|
<DotnetDebToolDir>$(IntermediateDirectory)/$(DotnetDebToolConsumerProjectName)</DotnetDebToolDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!-- constants -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<DebianInstalledDirectory>/usr/share/dotnet</DebianInstalledDirectory>
|
||||||
|
|
||||||
|
<LayoutPackageRootDirName>package_root</LayoutPackageRootDirName>
|
||||||
|
<LayoutAbsolutePlacementDirName>$</LayoutAbsolutePlacementDirName>
|
||||||
|
<LayoutSamplesDirName>samples</LayoutSamplesDirName>
|
||||||
|
<LayoutDocsDirName>docs</LayoutDocsDirName>
|
||||||
|
<LayoutDebianFilesDirName>debian</LayoutDebianFilesDirName>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!-- Package Identities -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<SdkDebianPackageVersion>$(SdkVersion)</SdkDebianPackageVersion>
|
||||||
|
<SdkDebianPackageName>dotnet-dev-$(SdkDebianPackageVersion)</SdkDebianPackageName>
|
||||||
|
<SharedFxDebianPackageVersion>$(SharedFrameworkVersion)</SharedFxDebianPackageVersion>
|
||||||
|
<SharedFxDebianPackageName>dotnet-sharedframework-$(SharedFrameworkName)-$(SharedFxDebianPackageVersion)</SharedFxDebianPackageName>
|
||||||
|
<SharedFxDebianPackageName>$(SharedFxDebianPackageName.ToLower())</SharedFxDebianPackageName>
|
||||||
|
<HostFxrDebianPackageVersion>$(HostFxrVersion)</HostFxrDebianPackageVersion>
|
||||||
|
<HostFxrDebianPackageName>dotnet-hostfxr-$(HostFxrDebianPackageVersion)</HostFxrDebianPackageName>
|
||||||
|
<HostFxrDebianPackageName>$(HostFxrDebianPackageName.ToLower())</HostFxrDebianPackageName>
|
||||||
|
<HostDebianPackageName>dotnet-host</HostDebianPackageName>
|
||||||
|
|
||||||
|
<AdditionalSharedFxDebianPackageVersion>$(AdditionalSharedFrameworkVersion)</AdditionalSharedFxDebianPackageVersion>
|
||||||
|
<AdditionalSharedFxDebianPackageName>dotnet-sharedframework-$(SharedFrameworkName)-$(AdditionalSharedFxDebianPackageVersion)</AdditionalSharedFxDebianPackageName>
|
||||||
|
<AdditionalSharedFxDebianPackageName>$(AdditionalSharedFxDebianPackageName.ToLower())</AdditionalSharedFxDebianPackageName>
|
||||||
|
<AdditionalHostFxrDebianPackageVersion>$(AdditionalHostFxrVersion)</AdditionalHostFxrDebianPackageVersion>
|
||||||
|
<AdditionalHostFxrDebianPackageName>dotnet-hostfxr-$(AdditionalHostFxrDebianPackageVersion)</AdditionalHostFxrDebianPackageName>
|
||||||
|
<AdditionalHostFxrDebianPackageName>$(AdditionalHostFxrDebianPackageName.ToLower())</AdditionalHostFxrDebianPackageName>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!-- Inputs -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<ManpagesDirectory>$(RepoRoot)/Documentation/manpages</ManpagesDirectory>
|
||||||
|
<EndToEndTestProject>$(RepoRoot)/test/EndToEnd/EndToEnd.csproj</EndToEndTestProject>
|
||||||
|
<CLISdkRoot>$(OutputDirectory)/sdk</CLISdkRoot>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CLISdkFiles Include="$(CLISdkRoot)/**/*" />
|
<CLISdkFiles Include="$(CLISdkRoot)/**/*" />
|
||||||
<SdkDebManPageFiles Include="$(ManpagesDirectory)/**/*" />
|
<SdkDebManPageFiles Include="$(ManpagesDirectory)/**/*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Output Directories -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<InstallerOutputDirectory>$(PackagesDirectory)</InstallerOutputDirectory>
|
||||||
|
<SdkInstallerFile>$(InstallerOutputDirectory)/$(ArtifactNameWithVersionSdk)$(InstallerExtension)</SdkInstallerFile>
|
||||||
|
|
||||||
|
<SdkDebianIntermediateDirectory>$(IntermediateDirectory)/debian/sdk</SdkDebianIntermediateDirectory>
|
||||||
|
<DotNetDebToolOutputDirectory>$(SdkDebianIntermediateDirectory)/deb-tool-output</DotNetDebToolOutputDirectory>
|
||||||
|
<DebianTestResultsXmlFile>$(SdkDebianIntermediateDirectory)/debian-testResults.xml</DebianTestResultsXmlFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!-- Layout Directories -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<LayoutDirectory>$(SdkDebianIntermediateDirectory)/debianLayoutDirectory</LayoutDirectory>
|
||||||
|
<LayoutPackageRootDir>$(LayoutDirectory)/$(LayoutPackageRootDirName)</LayoutPackageRootDir>
|
||||||
|
<LayoutAbsolutePlacementDir>$(LayoutDirectory)/$(LayoutAbsolutePlacementDirName)</LayoutAbsolutePlacementDir>
|
||||||
|
<LayoutSamplesDir>$(LayoutDirectory)/$(LayoutSamplesDirName)</LayoutSamplesDir>
|
||||||
|
<LayoutDocsDir>$(LayoutDirectory)/$(LayoutDocsDirName)</LayoutDocsDir>
|
||||||
|
<LayoutDebianFilesDir>$(LayoutDirectory)/$(LayoutDebianFilesDirName)</LayoutDebianFilesDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!-- debian_config.json -->
|
||||||
|
<PropertyGroup>
|
||||||
|
<DebianConfigTemplateFile>$(RepoRoot)/packaging/deb/dotnet-debian_config.json</DebianConfigTemplateFile>
|
||||||
|
<DebianConfigJsonFile>$(LayoutDirectory)/debian_config.json</DebianConfigJsonFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_NAME%">
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_NAME%">
|
||||||
<ReplacementString>$(SharedFxDebianPackageName)</ReplacementString>
|
<ReplacementString>$(SharedFxDebianPackageName)</ReplacementString>
|
||||||
</DebianConfigTokenValues>
|
</DebianConfigTokenValues>
|
||||||
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_NAME_ADDITIONAL%">
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_ADDITIONAL_DEPENDENCY%"
|
||||||
<ReplacementString>$(AdditionalSharedFxDebianPackageName)</ReplacementString>
|
Condition="'$(IncludeAdditionalSharedFrameworks)' == 'true'">
|
||||||
|
<ReplacementString>,
|
||||||
|
"$(AdditionalSharedFxDebianPackageName)" : {}</ReplacementString>
|
||||||
|
</DebianConfigTokenValues>
|
||||||
|
<DebianConfigTokenValues Include="%SHARED_FRAMEWORK_DEBIAN_PACKAGE_ADDITIONAL_DEPENDENCY%"
|
||||||
|
Condition="'$(IncludeAdditionalSharedFrameworks)' != 'true'">
|
||||||
|
<ReplacementString></ReplacementString>
|
||||||
</DebianConfigTokenValues>
|
</DebianConfigTokenValues>
|
||||||
<DebianConfigTokenValues Include="%SDK_NUGET_VERSION%">
|
<DebianConfigTokenValues Include="%SDK_NUGET_VERSION%">
|
||||||
<ReplacementString>$(SdkVersion)</ReplacementString>
|
<ReplacementString>$(SdkVersion)</ReplacementString>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
|
<RuntimeFrameworkVersion>2.0.0-beta-001509-00</RuntimeFrameworkVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<DotNetCliToolReference Include="dotnet-deb-tool" Version="2.0.0-*" />
|
<DotNetCliToolReference Include="dotnet-deb-tool" Version="2.0.0-*" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue