2017-02-23 17:26:14 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2017-05-19 04:33:47 +00:00
|
|
|
<PropertyGroup>
|
2017-06-05 17:48:12 +00:00
|
|
|
<SdkDebianPackageName>dotnet-sdk-$(SdkVersion)</SdkDebianPackageName>
|
2017-05-19 04:33:47 +00:00
|
|
|
</PropertyGroup>
|
2017-02-23 17:26:14 +00:00
|
|
|
|
|
|
|
<PropertyGroup>
|
2017-06-02 15:58:06 +00:00
|
|
|
<SdkDebianUploadUrl>$(DotnetBlobRootUrl)/$(Product)/$(FullNugetVersion)/$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension)</SdkDebianUploadUrl>
|
2017-02-23 17:26:14 +00:00
|
|
|
<DebianUploadJsonFile>$(SdkDebianIntermediateDirectory)/package_upload.json</DebianUploadJsonFile>
|
|
|
|
<DebianRevisionNumber>1</DebianRevisionNumber>
|
|
|
|
|
|
|
|
<DebianUploadJsonContent>
|
|
|
|
{
|
|
|
|
"name":"$(SdkDebianPackageName)",
|
|
|
|
"version":"$(NugetVersion)-$(DebianRevisionNumber)",
|
|
|
|
"repositoryId":"$(REPO_ID)",
|
|
|
|
"sourceUrl": "$(SdkDebianUploadUrl)"
|
|
|
|
}
|
|
|
|
</DebianUploadJsonContent>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-07-10 17:06:23 +00:00
|
|
|
<Target Name="PublishDebFilesToDebianRepo" Condition=" '$(IsDebianBaseDistro)' == 'True' AND '$(SkipPublishToDebianRepo)' != 'true' AND '$(IslinuxPortable)' != 'true' ">
|
2017-02-23 17:26:14 +00:00
|
|
|
<Error Condition="'$(REPO_ID)' == ''" Text="REPO_ID must be set as an environment variable for debian publishing." />
|
|
|
|
<Error Condition="'$(REPO_USER)' == ''" Text="REPO_USER must be set as an environment variable for debian publishing." />
|
|
|
|
<Error Condition="'$(REPO_PASS)' == ''" Text="REPO_PASS must be set as an environment variable for debian publishing." />
|
|
|
|
<Error Condition="'$(REPO_SERVER)' == ''" Text="REPO_SERVER must be set as an environment variable for debian publishing." />
|
|
|
|
|
|
|
|
<Delete Files="$(DebianUploadJsonFile)" />
|
|
|
|
<WriteLinesToFile File="$(DebianUploadJsonFile)" Lines="$(DebianUploadJsonContent)" />
|
|
|
|
|
|
|
|
<Exec Command="$(RepoRoot)/scripts/publish/repoapi_client.sh -addpkg $(DebianUploadJsonFile)" />
|
|
|
|
</Target>
|
|
|
|
</Project>
|