Skip to content

Commit

Permalink
Release 4.0.0-pre.7
Browse files Browse the repository at this point in the history
  • Loading branch information
NogginBops committed Oct 9, 2023
1 parent 766d06c commit b0a83af
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 28 deletions.
17 changes: 10 additions & 7 deletions RELEASE_NOTES.md
@@ -1,31 +1,34 @@
# Release notes

All notable changes are documented in this file.
## [4.0.0-pre.7]
- Added properties to `GLControlSettings` to control backbuffer bits.
- Added `GLControlSettings.SrgbCapable` to set backbuffer sRGB capabilities.
- Fix issue where OpenTK 4.7.2+ would throw an exception at startup.

## 4.0.0-pre.6
## [4.0.0-pre.6]
- _August 27, 2021_
- Update dependencies to OpenTK 4.6.4 packages.

## 4.0.0-pre.5
## [4.0.0-pre.5]
- _March 4, 2021_
- Add `Context` property for better backward compatibility with GLControl 3.x.

## 4.0.0-pre.4
## [4.0.0-pre.4]
- _February 18, 2021_
- Fix `Control.Site` null-reference bug.
- Add `Load` event for better backward compatibility with GLControl 3.x.
- Update simple test to demonstrate `Load` event.

## 4.0.0-pre.3
## [4.0.0-pre.3]
- _December 28, 2020_
- Fix design-mode bugs.

## 4.0.0-pre.2
## [4.0.0-pre.2]
- _December 22, 2020_
- Add more example projects to show usage: Simple example, multi-control example, and raw-input example.
- Fix more bugs.

## 4.0.0-pre.1
## [4.0.0-pre.1]
- _December 21, 2020_
- All-new WebForms.GLControl, rewritten from the ground up for OpenTK 4.x and .NET Core 3.x+.
- Support both WinForms input events and "native device" input events.
Expand Down
54 changes: 33 additions & 21 deletions build/Build.cs
Expand Up @@ -39,19 +39,18 @@ class Build : NukeBuild

public static int Main () => Execute<Build>(x => x.Compile);

[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
[Parameter("Configuration to build - Default is 'Release'")]
readonly Configuration Configuration = Configuration.Release;

[Parameter("NuGet api key")]
readonly string NugetApiKey;
[Parameter("NuGet api key", Name = "opentk_nuget_api_key")]
readonly string NugetApiKey = "";

[Parameter("Github authentication token")]
readonly string GitHubAuthToken;
[Parameter("Github authentication token", Name = "opentk_github_token")]
readonly string GitHubAuthToken = "";

[Parameter("NuGet api url")]
readonly string NugetApiUrl = "https://api.nuget.org/v3/index.json";


//[Parameter("URL of the icon to be displayed for the package")]
readonly string packageIconUrl = "https://raw.githubusercontent.com/opentk/opentk.net/docfx/assets/opentk.png";

Expand Down Expand Up @@ -157,13 +156,20 @@ class Build : NukeBuild
.Requires(() => Configuration.Equals(Configuration.Release))
.Executes(() =>
{
DotNetNuGetPush(s => s
if (string.IsNullOrEmpty(NugetApiKey))
{
Log.Warning("No nuget api key set.");
}
else
{
DotNetNuGetPush(s => s
.SetSource(NugetApiUrl)
.SetApiKey(NugetApiKey)
.EnableSkipDuplicate()//in case the artifacts folder was no cleaned
.CombineWith(
ArtifactsDirectory.GlobFiles("*.symbols.nupkg").NotEmpty(), (cs, v) => cs
.SetTargetPath(v)));
}
});

Target PushGithub => _ => _
Expand All @@ -173,20 +179,26 @@ class Build : NukeBuild
.Requires(() => Configuration.Equals(Configuration.Release))
.Executes(() =>
{
var releaseTag =$"v{releaseVersion}";
var repositoryInfo = GetGitHubRepositoryInfo(GitRepository);
var nuGetPackages = ArtifactsDirectory.GlobFiles("*.symbols.nupkg").NotEmpty().ToArray();
if (string.IsNullOrEmpty(GitHubAuthToken))
{
Log.Warning("No github auth token set.");
}
else
{
var releaseTag =$"v{releaseVersion}";
var repositoryInfo = GetGitHubRepositoryInfo(GitRepository);
var nuGetPackages = ArtifactsDirectory.GlobFiles("*.symbols.nupkg").NotEmpty().ToArray();
//Note: if the release is already present, nothing happens
GitHubTasks.PublishRelease(s => s
.SetToken(GitHubAuthToken)
.SetArtifactPaths(nuGetPackages.Select(s => s.ToString()).ToArray())
.SetTag(releaseTag)
.SetReleaseNotes(releaseNotes)
.SetCommitSha(GitRepository.Commit)
.SetRepositoryName(repositoryInfo.repositoryName)
.SetRepositoryOwner(repositoryInfo.gitHubOwner)).Wait();
//Note: if the release is already present, nothing happens
GitHubTasks.PublishRelease(s => s
.SetToken(GitHubAuthToken)
.SetArtifactPaths(nuGetPackages.Select(s => s.ToString()).ToArray())
.SetTag(releaseTag)
.SetReleaseNotes(releaseNotes)
.SetCommitSha(GitRepository.Commit)
.SetRepositoryName(repositoryInfo.repositoryName)
.SetRepositoryOwner(repositoryInfo.gitHubOwner)).Wait();
}
});

}

0 comments on commit b0a83af

Please sign in to comment.