mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-07-08 18:06:08 +00:00
Add dotnet-deb command
This commit is contained in:
13
dotnet-deb/Program.cs
Normal file
13
dotnet-deb/Program.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Dotnet.Packaging
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static int Main(string[] args)
|
||||
{
|
||||
PackagingRunner runner = new PackagingRunner("Debian/Ubuntu installer package", "CreateDeb");
|
||||
return runner.Run(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
43
dotnet-deb/dotnet-deb.csproj
Normal file
43
dotnet-deb/dotnet-deb.csproj
Normal file
@@ -0,0 +1,43 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>netcoreapp1.0;netcoreapp2.0</TargetFrameworks>
|
||||
<VersionPrefix>0.1.1</VersionPrefix>
|
||||
<Authors>Frederik Carlier</Authors>
|
||||
<Company>Quamotion</Company>
|
||||
<Copyright>Copyright (c) Frederik Carlier and Contributors</Copyright>
|
||||
<PackageLicenseUrl>https://github.com/qmfrederik/dotnet-packaging/blob/master/LICENSE</PackageLicenseUrl>
|
||||
<PackageProjectUrl>https://github.com/qmfrederik/dotnet-packaging/</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/qmfrederik/dotnet-packaging/</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>dotnet cli packaging deb debian ubuntu mint installer</PackageTags>
|
||||
<Description>Create Debian and Ubuntu installers (.deb files ) of your .NET Core projects straight from the command line.
|
||||
|
||||
Once you've installed this package as a .NET CLI tool, run dotnet deb to generate a .deb file which contains the publish output of your .NET Project.
|
||||
|
||||
See https://github.com/qmfrederik/dotnet-packaging/ for more information on how to use dotnet deb.</Description>
|
||||
<Product>Packaging Tools for .NET CLI</Product>
|
||||
<NugetPackageFolder Condition="$(NugetPackageFolder) == ''">$(USERPROFILE)\.nuget\packages</NugetPackageFolder>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="$(NugetPackageFolder)\microsoft.extensions.commandlineutils\1.1.1\lib\netstandard1.3\Microsoft.Extensions.CommandLineUtils.dll" Link="Microsoft.Extensions.CommandLineUtils.dll">
|
||||
<Pack>true</Pack>
|
||||
<PackagePath>lib\$(TargetFramework)\</PackagePath>
|
||||
</Content>
|
||||
|
||||
<!-- Required in the package root to run the cli tool always with bundled runtime -->
|
||||
<Content Include="../prefercliruntime">
|
||||
<PackagePath>prefercliruntime</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\dotnet-rpm\PackagingRunner.cs" Link="PackagingRunner.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26430.4
|
||||
VisualStudioVersion = 15.0.26730.16
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-tarball", "dotnet-tarball\dotnet-tarball.csproj", "{7CC0E2CC-8D01-41A2-A8A6-951161D7E413}"
|
||||
EndProject
|
||||
@@ -11,7 +11,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-zip", "dotnet-zip\do
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Packaging.Targets.Tests", "Packaging.Targets.Tests\Packaging.Targets.Tests.csproj", "{794FEF8B-7496-4CF9-BFE0-65CBFD3D962A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnet-rpm", "dotnet-rpm\dotnet-rpm.csproj", "{8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-rpm", "dotnet-rpm\dotnet-rpm.csproj", "{8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-deb", "dotnet-deb\dotnet-deb.csproj", "{CB69DD41-E3DA-4418-8A32-419E1B5642DD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@@ -39,8 +41,15 @@ Global
|
||||
{8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8DE91847-CD14-4B05-BD4E-6B3FEBF6C014}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CB69DD41-E3DA-4418-8A32-419E1B5642DD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {62E1BD2B-4750-4D2C-B86C-12BDD4BD5CB1}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Reference in New Issue
Block a user