From 68c71d225b884e585c735654f5209f76a71f2310 Mon Sep 17 00:00:00 2001 From: William Li Date: Thu, 15 Jun 2017 22:36:41 +0000 Subject: [PATCH] Stop produce duplicated package for VSTS build definition Currently VSTS is producing duplicate package and they are running into each other will producing Today: Linux x64 build definition: both .deb and .tar.gz Ubuntu 16.04 build definition: both .deb and .tar.gz (ex. dotnet-sdk-2.0.0-preview3-006477-linux-x64.tar.gz, dotnet-sdk-debug-2.0.0-preview3-006477-linux-x64.tar.gz, dotnet-sdk-internal-2.0.0-preview3-006477-linux-x64.tar.gz) After this change: Linux x64: .tar.gz Ubuntu 16.04: .deb No change for windows and macOS Tested on Ubuntu with and without --linux-portable and windows --- Microsoft.DotNet.Cli.sln | 1 + build/DerivedHostMachineInfo.props | 7 +++++++ build/FileExtensions.props | 11 ++++------- build/Publish.targets | 9 ++++++--- dir.props | 1 + run-build.sh | 2 +- 6 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 build/DerivedHostMachineInfo.props diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln index 0f680db2f..018a8b81c 100644 --- a/Microsoft.DotNet.Cli.sln +++ b/Microsoft.DotNet.Cli.sln @@ -59,6 +59,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{89905EC4 build\Test.targets = build\Test.targets build\Version.props = build\Version.props build\VersionBadge.props = build\VersionBadge.props + build\DerivedHostMachineInfo.props = build\DerivedHostMachineInfo.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "package", "package", "{FD7D515A-D10F-4F49-B8AE-21CF7ED071AE}" diff --git a/build/DerivedHostMachineInfo.props b/build/DerivedHostMachineInfo.props new file mode 100644 index 000000000..d9dc94444 --- /dev/null +++ b/build/DerivedHostMachineInfo.props @@ -0,0 +1,7 @@ + + + true + true + true + + diff --git a/build/FileExtensions.props b/build/FileExtensions.props index fbbca63a7..21f8a68d2 100644 --- a/build/FileExtensions.props +++ b/build/FileExtensions.props @@ -1,20 +1,17 @@ - True - True - .zip .tar.gz .msi .pkg - .deb - .rpm + .deb + .rpm .exe $(InstallerExtension) - $(InstallerExtension) - $(InstallerExtension) + $(InstallerExtension) + $(InstallerExtension) lib diff --git a/build/Publish.targets b/build/Publish.targets index 77507cd46..d38175d64 100644 --- a/build/Publish.targets +++ b/build/Publish.targets @@ -26,9 +26,12 @@ - - - + + + diff --git a/dir.props b/dir.props index 2daa217c5..756fccc32 100644 --- a/dir.props +++ b/dir.props @@ -28,6 +28,7 @@ + diff --git a/run-build.sh b/run-build.sh index 31497fb16..fcbf1b7e9 100755 --- a/run-build.sh +++ b/run-build.sh @@ -104,7 +104,7 @@ while [[ $# > 0 ]]; do ;; --linux-portable) LINUX_PORTABLE_INSTALL_ARGS="--runtime-id linux-x64" - CUSTOM_BUILD_ARGS="/p:Rid=\"linux-x64\" /p:OSName=\"linux\"" + CUSTOM_BUILD_ARGS="/p:Rid=\"linux-x64\" /p:OSName=\"linux\" /p:IslinuxPortable=\"true\"" args=( "${args[@]/$1}" ) ;; --help)