Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
visose committed Feb 9, 2022
1 parent 6c42190 commit 518fcf2
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
commands:
description: 'Commands'
required: true
default: 'test check build package publish release'
default: 'debug'

jobs:
publish:
Expand Down
11 changes: 7 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

<PropertyGroup>
<Product>Extensions</Product>
<Version>1.0.2</Version>
<Description>Assorted components for Grasshopper.</Description>
<Version>1.0.3</Version>
<Authors>Extensions Authors</Authors>
<Copyright>Copyright (c) 2021 $(Authors)</Copyright>
<PackageProjectUrl>https://github.com/visose/extensions</PackageProjectUrl>
<Description>Assorted components for Grasshopper.</Description>
<PackageTags>Grasshopper;Extensions;Robots</PackageTags>
<PackageProjectUrl>https://github.com/visose/extensions</PackageProjectUrl>
<IconUrl>https://github.com/visose/extensions/raw/master/build/icon.png</IconUrl>
<ReleaseNotes>RELEASE</ReleaseNotes>

<CurrentYear>$([System.DateTime]::Now.Year)</CurrentYear>
<Copyright>Copyright (c) 2017-$(CurrentYear) $(Authors)</Copyright>
<Company>$(Authors) - $(PackageProjectUrl)</Company>
</PropertyGroup>

Expand Down
11 changes: 9 additions & 2 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion build/Extensions.Build/Extensions.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RhinoPackager" Version="1.0.2" />
<PackageReference Include="RhinoPackager" Version="1.0.5" />
</ItemGroup>

</Project>
37 changes: 36 additions & 1 deletion build/Extensions.Build/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
using RhinoPackager;
using RhinoPackager.Commands;

return await Packager.RunAsync(args);
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();
2 changes: 1 addition & 1 deletion build/Extensions.Build/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"Extensions.Build": {
"commandName": "Project",
"commandLineArgs": "check",
"commandLineArgs": "debug",
"workingDirectory": "../../"
}
}
Expand Down
19 changes: 0 additions & 19 deletions build/settings.json

This file was deleted.

Binary file removed lib/Robots.dll
Binary file not shown.
Binary file removed lib/Robots.gha
Binary file not shown.
19 changes: 4 additions & 15 deletions src/Extensions.Grasshopper/Extensions.Grasshopper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,24 @@

<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<AssemblyTitle>$(Product) Grasshopper</AssemblyTitle>
<TargetExt>.gha</TargetExt>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grasshopper" Version="7.13.21348.13001" />
<ProjectReference Include="..\Extensions\Extensions.csproj" />
<Reference Include="Robots">
<HintPath>..\..\lib\Robots.dll</HintPath>
</Reference>
<Reference Include="Robots.Grasshopper">
<HintPath>..\..\lib\Robots.gha</HintPath>
</Reference>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Assets\Embed\**\*" />
</ItemGroup>

<Target Name="Rename" AfterTargets="AfterBuild">
<Move SourceFiles="$(TargetPath)" DestinationFiles="$(TargetDir)$(Product).gha" />
</Target>

<PropertyGroup Condition="$([MSBuild]::IsOSPlatform(Windows))">
<StartProgram>C:\Program Files\Rhino 7\System\Rhino.exe</StartProgram>
<StartArguments>/nosplash /runscript="-grasshopper window show _enter"</StartArguments>
<StartAction>Program</StartAction>
</PropertyGroup>

<Target Name="Rename" AfterTargets="AfterBuild">
<Move SourceFiles="$(TargetPath)" DestinationFiles="$(TargetDir)$(Product)$(TargetExt)" />
</Target>


</Project>
9 changes: 2 additions & 7 deletions src/Extensions/Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RhinoCommon" Version="7.13.21348.13001" />
<PackageReference Include="Robots.Rhino" Version="1.1.4" ExcludeAssets="runtime"/>
<PackageReference Include="morelinq" Version="3.3.2" />
<PackageReference Include="geometry3Sharp" Version="1.0.324" />
<PackageReference Include="com.angusj.Clipper" Version="6.4.2" />
<PackageReference Include="SkeletonNet" Version="1.0.0" />

<Reference Include="gsGCode">
<HintPath>..\..\lib\gsGCode.dll</HintPath>
</Reference>
<Reference Include="Robots">
<HintPath>..\..\lib\Robots.dll</HintPath>
</Reference>
<Reference Include="gsGCode" HintPath="..\..\lib\gsGCode.dll"/>
</ItemGroup>

</Project>

0 comments on commit 518fcf2

Please sign in to comment.