Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
visose committed Jun 7, 2023
1 parent a6ac24d commit 0f59570
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<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>
<Icon>icon.png</Icon>
<ReleaseNotes>RELEASE</ReleaseNotes>

<CurrentYear>$([System.DateTime]::Now.Year)</CurrentYear>
Expand Down
6 changes: 5 additions & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
- version: 1.0.4
changes:
- Fixed compatibility with latest Robots version.

- version: 1.0.3
changes:
- Fixed compatibility with early Rhino 7.0 service releases.
Expand All @@ -14,4 +18,4 @@
- version: 1.0.0
changes:
- Updated to work with the latest Robots plugin.
- Fixed checking for Robots plugin as package.
- Fixed checking for Robots plugin as package.
8 changes: 6 additions & 2 deletions build/Extensions.Build/Extensions.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<StartWorkingDirectory>$(RootDir)</StartWorkingDirectory>
<StartArguments>
<!--debug-->
</StartArguments>
</PropertyGroup>

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

</Project>
27 changes: 19 additions & 8 deletions build/Extensions.Build/Program.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
using RhinoPackager;
using RhinoPackager;
using RhinoPackager.Commands;

var app = App.Create(args);
var github = new Github("visose", "Extensions");
Props props = new("Directory.Build.props");
Github github = new("visose", "Extensions");

app.Add(new ICommand[]
{
new CheckVersion(github),
new CheckVersion
(
props: props,
github: github
),
new Build
(
buildProject: "src/Extensions.Grasshopper/Extensions.Grasshopper.csproj"
),
new Yak
(
propsFile: "Directory.Build.props",
props: props,
sourceFolder: "artifacts/bin/Extensions.Grasshopper/net48",
files: new []
{
Expand All @@ -23,16 +28,22 @@
"geometry3Sharp.dll",
"gsGCode.dll",
"MoreLinq.dll",
"SkeletonNet.dll"
"SkeletonNet.dll",
"icon.png"
},
tag: "rh7_0-any"
tags: new []
{
"rh7_0-any",
"rh8_0-any"
}
),
new Release
(
props: props,
github: github,
file: "RELEASE",
notesFile: "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();
await app.RunAsync();
9 changes: 0 additions & 9 deletions build/Extensions.Build/Properties/launchSettings.json

This file was deleted.

1 change: 1 addition & 0 deletions src/Extensions.Grasshopper/Extensions.Grasshopper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<ItemGroup>
<EmbeddedResource Include="Assets\Embed\**\*" />
<None Include="$(RootDir)build\icon.png" CopyToOutputDirectory="PreserveNewest" Visible="false" />
</ItemGroup>

<Target Name="Rename" AfterTargets="AfterBuild">
Expand Down

0 comments on commit 0f59570

Please sign in to comment.