Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# THIRD-PARTY-NOTICES.txt is generated by scripts/generate-third-party-notices.ps1, which
# always emits LF line endings for reproducibility. Pin the checked-out line endings to LF
# too, so `git diff --exit-code` in the third-party-notices CI check (.github/workflows/
# third-party-notices.yaml) can't fail purely due to a runner's core.autocrlf setting
# converting LF to CRLF on checkout.
THIRD-PARTY-NOTICES.txt text eol=lf
16 changes: 14 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,29 @@ jobs:
- name: Publish 32Bit binary
run: dotnet publish .\src\dscom.client\dscom.client.csproj --no-self-contained -c Release -r win-x86 -f net8.0 /p:PublishSingleFile=true; copy src\dscom.client\bin\Release\net8.0\win-x86\publish\dscom.exe src\dscom.client\bin\Release\net8.0\win-x86\publish\dscom32.exe

- name: Package 32Bit binary
run: |
Copy-Item LICENSE src\dscom.client\bin\Release\net8.0\win-x86\publish\LICENSE
Copy-Item THIRD-PARTY-NOTICES.txt src\dscom.client\bin\Release\net8.0\win-x86\publish\THIRD-PARTY-NOTICES.txt
Compress-Archive -Path src\dscom.client\bin\Release\net8.0\win-x86\publish\dscom32.exe, src\dscom.client\bin\Release\net8.0\win-x86\publish\LICENSE, src\dscom.client\bin\Release\net8.0\win-x86\publish\THIRD-PARTY-NOTICES.txt -DestinationPath dscom-win-x86.zip

- name: Release 32Bit binary
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
files: src/dscom.client/bin/Release/net8.0/win-x86/publish/dscom32.exe
files: dscom-win-x86.zip

- name: Publish 64Bit binary
run: dotnet publish .\src\dscom.client\dscom.client.csproj --no-self-contained -c Release -r win-x64 -f net8.0 /p:PublishSingleFile=true

- name: Package 64Bit binary
run: |
Copy-Item LICENSE src\dscom.client\bin\Release\net8.0\win-x64\publish\LICENSE
Copy-Item THIRD-PARTY-NOTICES.txt src\dscom.client\bin\Release\net8.0\win-x64\publish\THIRD-PARTY-NOTICES.txt
Compress-Archive -Path src\dscom.client\bin\Release\net8.0\win-x64\publish\dscom.exe, src\dscom.client\bin\Release\net8.0\win-x64\publish\LICENSE, src\dscom.client\bin\Release\net8.0\win-x64\publish\THIRD-PARTY-NOTICES.txt -DestinationPath dscom-win-x64.zip

- name: Release 64Bit binary
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
files: src/dscom.client/bin/Release/net8.0/win-x64/publish/dscom.exe
files: dscom-win-x64.zip
41 changes: 41 additions & 0 deletions .github/workflows/third-party-notices.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Third-Party Notices Check

on:
workflow_dispatch:
pull_request:

jobs:
check-third-party-notices:
runs-on: windows-2022

steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
env:
# https://github.com/dotnet/sdk/issues/44957
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet

- name: Restore dependencies
run: dotnet restore dscom.sln

- name: Install nuget-license
run: dotnet tool install --global nuget-license

- name: Generate THIRD-PARTY-NOTICES.txt
shell: pwsh
run: ./scripts/generate-third-party-notices.ps1

- name: Verify THIRD-PARTY-NOTICES.txt is up to date
shell: pwsh
run: |
git diff --exit-code -- THIRD-PARTY-NOTICES.txt
if ($LASTEXITCODE -ne 0) {
Write-Error "THIRD-PARTY-NOTICES.txt is out of date. Run '.\scripts\generate-third-party-notices.ps1' locally and commit the result."
exit 1
}
63 changes: 63 additions & 0 deletions THIRD-PARTY-NOTICES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
THIRD-PARTY NOTICES
===================

dscom (dSPACE.Runtime.InteropServices, dscom, dSPACE.Runtime.InteropServices.BuildTasks)
uses third-party NuGet packages that are subject to the following license terms.
The list below covers all direct and transitive package dependencies of the published
projects (src/dscom, src/dscom.client, src/dscom.build) across all target frameworks
(net8.0, net48). Test-only projects are not included, as they are not part of the
published NuGet packages. Build-time-only tooling (e.g. MinVer, Microsoft.SourceLink.*,
Microsoft.Build.Tasks.Git) is also excluded, since those packages never ship a runtime
asset and are therefore never part of the published output.

The full text of each license referenced below (by "License Expression") is
reproduced verbatim in the "FULL LICENSE TEXTS" section at the end of this file.
Per-package copyright notices are listed in the "Copyright" column of the table.
Package versions are intentionally not listed, as they are not required for
attribution and would otherwise change on every dependency update.

This file is auto-generated. Do not edit it manually.

Generation:
dotnet tool install --global nuget-license
dotnet restore dscom.sln
.\scripts\generate-third-party-notices.ps1

Tool: https://github.com/sensslen/nuget-license
+-------------------------------------------+----------------------------+--------------------+--------------------------------+-----------------------------------------------+-----------+------------------------------------------------+
| Package | License Information Origin | License Expression | License Url | Copyright | Authors | Package Project Url |
+-------------------------------------------+----------------------------+--------------------+--------------------------------+-----------------------------------------------+-----------+------------------------------------------------+
| System.Buffers | Expression | MIT | https://licenses.nuget.org/MIT | © Microsoft Corporation. All rights reserved. | Microsoft | https://github.com/dotnet/maintenance-packages |
| System.CommandLine | Expression | MIT | https://licenses.nuget.org/MIT | © Microsoft Corporation. All rights reserved. | Microsoft | https://github.com/dotnet/command-line-api |
| System.CommandLine.NamingConventionBinder | Expression | MIT | https://licenses.nuget.org/MIT | © Microsoft Corporation. All rights reserved. | Microsoft | https://github.com/dotnet/command-line-api |
| System.IO.Hashing | Expression | MIT | https://licenses.nuget.org/MIT | © Microsoft Corporation. All rights reserved. | Microsoft | https://dot.net/ |
| System.Memory | Expression | MIT | https://licenses.nuget.org/MIT | © Microsoft Corporation. All rights reserved. | Microsoft | https://github.com/dotnet/maintenance-packages |
| System.Numerics.Vectors | Expression | MIT | https://licenses.nuget.org/MIT | © Microsoft Corporation. All rights reserved. | Microsoft | https://github.com/dotnet/maintenance-packages |
| System.Runtime.CompilerServices.Unsafe | Expression | MIT | https://licenses.nuget.org/MIT | © Microsoft Corporation. All rights reserved. | Microsoft | https://github.com/dotnet/maintenance-packages |
+-------------------------------------------+----------------------------+--------------------+--------------------------------+-----------------------------------------------+-----------+------------------------------------------------+


FULL LICENSE TEXTS
===================

--- MIT ---

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading