Skip to content

Commit

Permalink
update build script/templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Thraka committed Jun 13, 2024
1 parent b812379 commit 7904a8a
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 37 deletions.
35 changes: 8 additions & 27 deletions SadConsole/SadConsole.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2710,23 +2710,6 @@
</summary>
<returns>The string "Console".</returns>
</member>
<member name="T:SadConsole.Debug.Screen">
<summary>
A debugging screen that takes the place of the active <see cref="P:SadConsole.GameHost.Screen"/> and displays information about SadConsole.
</summary>
</member>
<member name="M:SadConsole.Debug.Screen.Show(SadConsole.IFont,SadRogue.Primitives.Point)">
<summary>
Displays the debugger.
</summary>
<param name="font">The font to use the debugging screen.</param>
<param name="fontSize">The size of the font.</param>
</member>
<member name="M:SadConsole.Debug.Screen.Show">
<summary>
Shows the debug screen with the default font and size.
</summary>
</member>
<member name="T:SadConsole.DrawCalls.DrawCallCustom">
<summary>
A draw call that invokes an <see cref="T:System.Action"/> delegate.
Expand Down Expand Up @@ -10990,16 +10973,6 @@
<param name="errorMessage">A message to provide to the result if the validation fails.</param>
<returns>The validation result.</returns>
</member>
<member name="M:SadConsole.StringValidation.LettersOnly">
<remarks>
Pattern:<br/>
<code>[a-zA-Z]</code><br/>
Explanation:<br/>
<code>
○ Match a character in the set [A-Za-z].<br/>
</code>
</remarks>
</member>
<member name="T:SadConsole.UI.AdjustableColor">
<summary>
A color that can be adjusted by brightness and mapped to a <see cref="T:SadConsole.UI.Colors"/> color.
Expand Down Expand Up @@ -15000,6 +14973,14 @@
<param name="text">The text to use for the colored string.</param>
<returns>A new colored string object.</returns>
</member>
</members>
</doc>
.ColoredString"/> object using the current gradient.
</summary>
<param name="gradient">The gradient to work with.</param>
<param name="text">The text to use for the colored string.</param>
<returns>A new colored string object.</returns>
</member>
<member name="T:System.Text.RegularExpressions.Generated.LettersOnly_0">
<summary>Custom <see cref="T:System.Text.RegularExpressions.Regex"/>-derived type for the LettersOnly method.</summary>
</member>
Expand Down
4 changes: 2 additions & 2 deletions nuget/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Write-Output "Pushing SadConsole packages"
$sadConsolePackages = Get-ChildItem "SadConsole.*.nupkg" | Select-Object -ExpandProperty Name

foreach ($package in $sadConsolePackages) {
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey --skip-duplicate"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
}

Write-Output "Query NuGet for 10 minutes to find the new package"
Expand Down Expand Up @@ -64,7 +64,7 @@ if ($foundPackage){
$sadConsolePackages = Get-ChildItem "$project*.nupkg" | Select-Object -ExpandProperty Name

foreach ($package in $sadConsolePackages) {
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey --skip-duplicate"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
}

}
Expand Down
2 changes: 1 addition & 1 deletion nuget/build_sadconsole.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Write-Output "Pushing SadConsole packages"
$sadConsolePackages = Get-ChildItem "SadConsole.*.nupkg" | Select-Object -ExpandProperty Name

foreach ($package in $sadConsolePackages) {
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey --skip-duplicate"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
}

Write-Output "Query NuGet for 10 minutes to find the new package"
Expand Down
2 changes: 1 addition & 1 deletion nuget/build_sadconsole_ext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Write-Output "Pushing SadConsole packages"
$sadConsolePackages = Get-ChildItem "SadConsole.Extended*.nupkg" | Select-Object -ExpandProperty Name

foreach ($package in $sadConsolePackages) {
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey --skip-duplicate"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
}

Write-Output "Finished"
Expand Down
2 changes: 1 addition & 1 deletion nuget/build_template.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Write-Output "Pushing template package"
$sadConsolePackages = Get-ChildItem "SadConsole.Templates.$version.nupkg" | Select-Object -ExpandProperty Name

foreach ($package in $sadConsolePackages) {
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }
$output = Invoke-Expression "dotnet nuget push `"$package`" -s nuget.org -k $nugetKey --skip-duplicate"; if ($LASTEXITCODE -ne 0) { Write-Error "Failed"; Write-Output $output; throw }

# Archive the package
Move-Item *.nupkg .\archive\ -force
Expand Down
2 changes: 1 addition & 1 deletion templates/SadConsole.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>10.4.0</PackageVersion>
<PackageVersion>10.4.1</PackageVersion>
<PackageId>SadConsole.Templates</PackageId>
<Title>SadConsole Game Templates</Title>
<Authors>Thraka</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

<!-- SadConsole related NuGet packages. -->
<ItemGroup>
<PackageReference Condition=" '$(GameHost)' == 'monogame' " Include="SadConsole.Host.MonoGame" Version="10.4.0" />
<PackageReference Condition=" '$(GameHost)' == 'sfml' " Include="SadConsole.Host.SFML" Version="10.4.0" />
<PackageReference Condition=" '$(GameHost)' == 'monogame' " Include="SadConsole.Host.MonoGame" Version="10.4.1" />
<PackageReference Condition=" '$(GameHost)' == 'sfml' " Include="SadConsole.Host.SFML" Version="10.4.1" />
<PackageReference Include="SadConsole.Extended" Version="10.4.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

<ItemGroup>
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303" />
<PackageReference Include="SadConsole.Host.MonoGame" Version="10.4.0" />
<PackageReference Include="SadConsole.Host.MonoGame" Version="10.4.1" />
<PackageReference Include="SadConsole.Extended" Version="10.4.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="SadConsole.Host.SFML" Version="10.4.0" />
<PackageReference Include="SadConsole.Host.SFML" Version="10.4.1" />
<PackageReference Include="SadConsole.Extended" Version="10.4.0" />
</ItemGroup>

</Project>

0 comments on commit 7904a8a

Please sign in to comment.