diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..7408a4db --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: ['https://hiron.fanbox.cc/'] diff --git a/.github/workflows/dotnet-grasshopper.yml b/.github/workflows/dotnet-grasshopper.yml new file mode 100644 index 00000000..638707e0 --- /dev/null +++ b/.github/workflows/dotnet-grasshopper.yml @@ -0,0 +1,59 @@ +name: Build Grasshopper Plugin + +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] + +jobs: + build: + strategy: + matrix: + configuration: [Debug, Release] + + runs-on: windows-latest # For a list of available runner types, refer to + + env: + Solution_Name: HoaryFox.sln + Plugin_File_Name: HoaryFox + Debug_File_Path: '.\HoaryFox\bin\' + Release_File_Path: '.\HoaryFox\release\' + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1 + + - name: Setup NuGet + uses: NuGet/setup-nuget@v1 + + - name: Restore the application + run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration + env: + Configuration: ${{ matrix.configuration }} + + - name: Build the application + run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration + env: + Configuration: ${{ matrix.configuration }} + + - name: Copy karambaConnect to /HoaryFox/bin dir + shell: powershell + run: cp ./karambaConnect/bin/karambaConnect.gha ./HoaryFox/bin/karambaConnect.gha + + - name: Upload release build of plugin as artefact + if: ${{ matrix.configuration == 'Release' }} # Only upload gha from a release build + uses: actions/upload-artifact@v2 + with: + name: HoaryFox + path: | + ./HoaryFox/bin/HoaryFox.gha + ./HoaryFox/bin/STBReader.dll + ./HoaryFox/bin/karambaConnect.gha + + diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 7be0320b..00000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "HoaryFox/STBReader"] - path = HoaryFox/STBReader - url = https://github.com/hrntsm/STBReader diff --git a/HoaryFox.sln b/HoaryFox.sln index d45330dd..0afa892b 100644 --- a/HoaryFox.sln +++ b/HoaryFox.sln @@ -1,10 +1,12 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28307.705 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30711.63 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoaryFox", "HoaryFox\HoaryFox.csproj", "{9637855D-D144-4448-9F56-A391A3575DAC}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "karambaConnect", "karambaConnect\karambaConnect.csproj", "{CD5D3228-2B3E-4112-9B42-C82615673DFE}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {9637855D-D144-4448-9F56-A391A3575DAC}.Debug|Any CPU.Build.0 = Debug|Any CPU {9637855D-D144-4448-9F56-A391A3575DAC}.Release|Any CPU.ActiveCfg = Release|Any CPU {9637855D-D144-4448-9F56-A391A3575DAC}.Release|Any CPU.Build.0 = Release|Any CPU + {CD5D3228-2B3E-4112-9B42-C82615673DFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CD5D3228-2B3E-4112-9B42-C82615673DFE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CD5D3228-2B3E-4112-9B42-C82615673DFE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CD5D3228-2B3E-4112-9B42-C82615673DFE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/HoaryFox/HoaryFox.csproj b/HoaryFox/HoaryFox.csproj index 9df1812d..314f83a9 100644 --- a/HoaryFox/HoaryFox.csproj +++ b/HoaryFox/HoaryFox.csproj @@ -10,7 +10,7 @@ Properties HoaryFox HoaryFox - v4.6.1 + v4.7.2 512 false @@ -38,7 +38,6 @@ - @@ -52,8 +51,6 @@ - - @@ -62,17 +59,6 @@ - - - - - - - - - - - @@ -82,32 +68,10 @@ - - ..\packages\RhinoCommon.6.29.20238.11501\lib\net45\Eto.dll - - - ..\packages\Grasshopper.6.29.20238.11501\lib\net45\GH_IO.dll - - - C:\Program Files\Rhino 6\Plug-ins\Grasshopper\GH_Util.dll - False - - - ..\packages\Grasshopper.6.29.20238.11501\lib\net45\Grasshopper.dll - - - ..\..\..\..\AppData\Roaming\Grasshopper\Libraries\Karamba\karambaCommon.dll - False - - - ..\..\..\..\AppData\Roaming\Grasshopper\Libraries\Karamba\karamba.gha - False - - - ..\packages\RhinoCommon.6.29.20238.11501\lib\net45\Rhino.UI.dll - - - ..\packages\RhinoCommon.6.29.20238.11501\lib\net45\RhinoCommon.dll + + False + Library\STBReader.dll + True @@ -115,7 +79,6 @@ - @@ -144,10 +107,22 @@ + + + + 6.20.19322.20361 + compile; build; native; contentfiles; analyzers; buildtransitive + + + 6.20.19322.20361 + compile; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\resources\tokaramba.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/karambaConnect/Resources/ToKaramba.png b/karambaConnect/Resources/ToKaramba.png new file mode 100644 index 00000000..cad94734 Binary files /dev/null and b/karambaConnect/Resources/ToKaramba.png differ diff --git a/karambaConnect/karambaConnect.csproj b/karambaConnect/karambaConnect.csproj new file mode 100644 index 00000000..28c501d2 --- /dev/null +++ b/karambaConnect/karambaConnect.csproj @@ -0,0 +1,116 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {CD5D3228-2B3E-4112-9B42-C82615673DFE} + Library + Properties + karambaConnect + karambaConnect + v4.7.2 + 512 + false + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + false + + + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + False + Library\karamba132full\karambaCommon.dll + False + + + False + Library\karamba132full\kConnect.dll + False + + + Library\STBReader.dll + True + + + + + + + + + + + + + + + + + True + True + Resource.resx + + + + + + + + + + + + + + ResXFileCodeGenerator + Resource.Designer.cs + + + + + 6.20.19322.20361 + compile; build; native; contentfiles; analyzers; buildtransitive + + + 6.20.19322.20361 + compile; build; native; contentfiles; analyzers; buildtransitive + + + + + + Copy "$(TargetPath)" "$(TargetDir)$(ProjectName).gha" +Erase "$(TargetPath)" + + + en-US + + + C:\Program Files\Rhino 6\System\Rhino.exe + + + Program + + \ No newline at end of file diff --git a/karambaConnect/karambaConnectInfo.cs b/karambaConnect/karambaConnectInfo.cs new file mode 100644 index 00000000..26369fba --- /dev/null +++ b/karambaConnect/karambaConnectInfo.cs @@ -0,0 +1,21 @@ +using Grasshopper.Kernel; +using System; +using System.Drawing; + +namespace karambaConnect +{ + public class karambaConnectInfo : GH_AssemblyInfo + { + public override string Name => "HoaryFox(karambaConnect)"; + + public override Bitmap Icon => null; + + public override string Description => "HoaryFox karamba connect extension"; + + public override Guid Id => new Guid("ffa60c17-4050-4232-96db-011eccbd402d"); + + public override string AuthorName => "hrntsm"; + + public override string AuthorContact => "contact@hrntsm.com"; + } +}