diff --git a/build/package/Installer.DEB.proj b/build/package/Installer.DEB.proj index f151ba1e5..6a6d49b56 100644 --- a/build/package/Installer.DEB.proj +++ b/build/package/Installer.DEB.proj @@ -10,7 +10,7 @@ TestDebuild; BuildSdkDeb; TestSdkDeb;" - Condition=" '$(OSName)' == 'ubuntu' " + Condition=" '$(OSName)' == 'ubuntu' " Outputs="@(GeneratedInstallers)"/> - + + + + - @@ -58,12 +66,12 @@ PackageName="$(SdkDebianPackageName)" PackageVersion="$(SdkVersion)" WorkingDirectory="$(DotnetDebToolDir)" /> - + - + - - + + @@ -158,11 +166,11 @@ - + - + diff --git a/build/package/Installer.DEB.targets b/build/package/Installer.DEB.targets index 1a041fe20..c4f0d1797 100644 --- a/build/package/Installer.DEB.targets +++ b/build/package/Installer.DEB.targets @@ -75,6 +75,11 @@ $(LayoutDirectory)/debian_config.json + + $(RepoRoot)/packaging/deb/postinst + $(LayoutDirectory)/debian/postinst + + $(SharedFxDebianPackageName) diff --git a/packaging/deb/postinst b/packaging/deb/postinst old mode 100644 new mode 100755 index b000f5933..6bfb2cb7a --- a/packaging/deb/postinst +++ b/packaging/deb/postinst @@ -1,3 +1,15 @@ #!/usr/bin/env sh echo "This software may collect information about you and your use of the software, and send that to Microsoft." echo "Please visit http://aka.ms/dotnet-cli-eula for more information." + +# Run 'dotnet new' to trigger the first time experience to initialize the cache +echo "Welcome to .NET Core! +--------------------- +Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs. + +Telemetry +-------------- +The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and shared with the community. +You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell. +You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry." +dotnet new > /dev/null 2>&1 || true