Skip to content

Commit

Permalink
Update nuspec config
Browse files Browse the repository at this point in the history
  • Loading branch information
discosultan committed Mar 24, 2017
1 parent d3dbd3b commit dc6d471
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Source/MonoGame.Penumbra.DesktopGL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>bin\Debug\MonoGame.Penumbra.xml</DocumentationFile>
<OutputPath>bin\Debug\DesktopGL\</OutputPath>
<DocumentationFile>bin\Debug\DesktopGL\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;DEBUG;MONOGAME;DESKTOPGL</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -32,8 +32,8 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DocumentationFile>bin\Release\MonoGame.Penumbra.xml</DocumentationFile>
<OutputPath>bin\Release\DesktopGL\</OutputPath>
<DocumentationFile>bin\Release\DesktopGL\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;MONOGAME;DESKTOPGL</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
8 changes: 4 additions & 4 deletions Source/MonoGame.Penumbra.WindowsDX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>bin\Debug\MonoGame.Penumbra.xml</DocumentationFile>
<OutputPath>bin\Debug\WindowsDX\</OutputPath>
<DocumentationFile>bin\Debug\WindowsDX\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;DEBUG;MONOGAME;WINDOWSDX</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -32,8 +32,8 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DocumentationFile>bin\Release\MonoGame.Penumbra.xml</DocumentationFile>
<OutputPath>bin\Release\WindowsDX\</OutputPath>
<DocumentationFile>bin\Release\WindowsDX\MonoGame.Penumbra.xml</DocumentationFile>
<DefineConstants>TRACE;MONOGAME;WINDOWSDX</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
Binary file added Tools/MonoGame.Penumbra.DesktopGL.nuspec
Binary file not shown.
Binary file modified Tools/MonoGame.Penumbra.WindowsDX.nuspec
Binary file not shown.
12 changes: 8 additions & 4 deletions Tools/PublishNuget.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Define variables.
$id = 'MonoGame.Penumbra.WindowsDX'
$idWindowsDX = 'MonoGame.Penumbra.WindowsDX'
$idDesktopGL = 'MonoGame.Penumbra.DesktopGL'

$nuspecSuffix = '.nuspec'
$nupkgSuffix = '.nupkg'
Expand All @@ -25,12 +26,15 @@ Function GetNupkgFilename($id)

# Replace version numbers in nuspec files.
Write-Host Replacing version numbers
UpdateVersionInFile (GetNuspecFilename $id) $versionRegex $newVersion
UpdateVersionInFile (GetNuspecFilename $idWindowsDX) $versionRegex $newVersion
UpdateVersionInFile (GetNuspecFilename $idDesktopGL) $versionRegex $newVersion

# Create nuget packages with symbol packages.
Write-Host Creating packages
.\nuget pack (GetNuspecFilename $id) -symbols
.\nuget pack (GetNuspecFilename $idWindowsDX) -symbols
.\nuget pack (GetNuspecFilename $idDesktopGL) -symbols

# Publish nuget packages to nuget.org and symbol packages to symbolsource.org
Write-Host Publishing packages
.\nuget push (GetNupkgFilename $id) -Source https://www.nuget.org/api/v2/package
.\nuget push (GetNupkgFilename $idWindowsDX) -Source https://www.nuget.org/api/v2/package
.\nuget push (GetNupkgFilename $idDesktopGL) -Source https://www.nuget.org/api/v2/package

0 comments on commit dc6d471

Please sign in to comment.