diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cd23f3f..40d27d2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,7 +9,7 @@ on: commands: description: 'Commands' required: true - default: 'test check build package publish release' + default: 'debug' jobs: publish: diff --git a/Directory.Build.props b/Directory.Build.props index 5787472..b81dfb9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,13 +2,16 @@ Extensions - 1.0.2 - Assorted components for Grasshopper. + 1.0.3 Extensions Authors - Copyright (c) 2021 $(Authors) - https://github.com/visose/extensions + Assorted components for Grasshopper. Grasshopper;Extensions;Robots + https://github.com/visose/extensions https://github.com/visose/extensions/raw/master/build/icon.png + RELEASE + + $([System.DateTime]::Now.Year) + Copyright (c) 2017-$(CurrentYear) $(Authors) $(Authors) - $(PackageProjectUrl) diff --git a/RELEASE b/RELEASE index 59bfe75..0497e15 100644 --- a/RELEASE +++ b/RELEASE @@ -1,9 +1,16 @@ +- version: 1.0.3 + changes: + - Fixed compatibility with early Rhino 7.0 service releases. + - Fixed should not appear as supported in Rhino 6 or lower. + - version: 1.0.2 changes: - - Update to work with Robots 1.0.4. + - Updated to work with Robots 1.0.4. + - version: 1.0.1 changes: - - Fix check for Robots plugin when loaded after Extensions. + - Fixed check for Robots plugin when loaded after Extensions. + - version: 1.0.0 changes: - Updated to work with the latest Robots plugin. diff --git a/build/Extensions.Build/Extensions.Build.csproj b/build/Extensions.Build/Extensions.Build.csproj index 9a631fc..2e0fd56 100644 --- a/build/Extensions.Build/Extensions.Build.csproj +++ b/build/Extensions.Build/Extensions.Build.csproj @@ -6,7 +6,7 @@ - + \ No newline at end of file diff --git a/build/Extensions.Build/Program.cs b/build/Extensions.Build/Program.cs index 833514a..6977307 100644 --- a/build/Extensions.Build/Program.cs +++ b/build/Extensions.Build/Program.cs @@ -1,3 +1,38 @@ using RhinoPackager; +using RhinoPackager.Commands; -return await Packager.RunAsync(args); \ No newline at end of file +var app = App.Create(args); +var github = new Github("visose", "Extensions"); + +app.Add(new ICommand[] + { + new CheckVersion(github), + new Build + ( + buildProject: "src/Extensions.Grasshopper/Extensions.Grasshopper.csproj" + ), + new Yak + ( + propsFile: "Directory.Build.props", + sourceFolder: "artifacts/bin/Extensions.Grasshopper/net48", + files: new [] + { + "Extensions.gha", + "Extensions.dll", + "clipper_library.dll", + "geometry3Sharp.dll", + "gsGCode.dll", + "MoreLinq.dll", + "SkeletonNet.dll" + }, + tag: "rh7_0-any" + ), + new Release + ( + github: github, + file: "RELEASE", + message: "> This **release** can only be installed through the package manager in **Rhino 7** using the `_PackageManager` command.\n> Check the [readme](../../blob/master/.github/README.md) for more details." + ) + }); + +await app.RunAsync(); \ No newline at end of file diff --git a/build/Extensions.Build/Properties/launchSettings.json b/build/Extensions.Build/Properties/launchSettings.json index 2a2b045..20e4d52 100644 --- a/build/Extensions.Build/Properties/launchSettings.json +++ b/build/Extensions.Build/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "Extensions.Build": { "commandName": "Project", - "commandLineArgs": "check", + "commandLineArgs": "debug", "workingDirectory": "../../" } } diff --git a/build/settings.json b/build/settings.json deleted file mode 100644 index abf6d05..0000000 --- a/build/settings.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "TestProject": "", - "BuildProject": "src/Extensions.Grasshopper/Extensions.Grasshopper.csproj", - "BuildFolder": "artifacts/bin/Extensions.Grasshopper/net48", - "PackageFolder": "artifacts/package", - "PackageFiles": [ - "Extensions.gha", - "Extensions.dll", - "clipper_library.dll", - "geometry3Sharp.dll", - "gsGCode.dll", - "MoreLinq.dll", - "SkeletonNet.dll" - ], - "GithubOwner": "visose", - "GithubRepo": "Extensions", - "ReleaseFile": "RELEASE", - "ReleaseMessage": "> This **release** can only be installed through the package manager in **Rhino 7** using the `_PackageManager` command.\n> Check the [readme](../../blob/master/.github/README.md) for more details." -} \ No newline at end of file diff --git a/lib/Robots.dll b/lib/Robots.dll deleted file mode 100644 index eb6427c..0000000 Binary files a/lib/Robots.dll and /dev/null differ diff --git a/lib/Robots.gha b/lib/Robots.gha deleted file mode 100644 index 0876e2b..0000000 Binary files a/lib/Robots.gha and /dev/null differ diff --git a/src/Extensions.Grasshopper/Extensions.Grasshopper.csproj b/src/Extensions.Grasshopper/Extensions.Grasshopper.csproj index 9007068..2834f4d 100644 --- a/src/Extensions.Grasshopper/Extensions.Grasshopper.csproj +++ b/src/Extensions.Grasshopper/Extensions.Grasshopper.csproj @@ -2,35 +2,24 @@ net48 - true $(Product) Grasshopper - .gha - - - ..\..\lib\Robots.dll - - - ..\..\lib\Robots.gha - + + + + C:\Program Files\Rhino 7\System\Rhino.exe /nosplash /runscript="-grasshopper window show _enter" Program - - - - - - \ No newline at end of file diff --git a/src/Extensions/Extensions.csproj b/src/Extensions/Extensions.csproj index ec84524..450636a 100644 --- a/src/Extensions/Extensions.csproj +++ b/src/Extensions/Extensions.csproj @@ -6,18 +6,13 @@ - + - - ..\..\lib\gsGCode.dll - - - ..\..\lib\Robots.dll - + \ No newline at end of file