From 871be1c2608332af073c0b8eb5464bc8432c5fab Mon Sep 17 00:00:00 2001 From: Ryan Butler Date: Sat, 8 Feb 2025 17:19:11 -0500 Subject: [PATCH] build(Microsoft.IdentityModel.Tokens): initial commit --- justfile | 3 ++ msbuild/Base128/justfile | 4 +-- msbuild/BouncyCastle/justfile | 4 +-- .../Microsoft.IdentityModel.Tokens/justfile | 32 +++++++++++++++++++ .../package.json | 9 ++++++ msbuild/SimpleBase/justfile | 4 +-- 6 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 msbuild/Microsoft.IdentityModel.Tokens/justfile create mode 100644 msbuild/Microsoft.IdentityModel.Tokens/package.json diff --git a/justfile b/justfile index b117bbb..ef88d40 100644 --- a/justfile +++ b/justfile @@ -11,3 +11,6 @@ bouncycastle: simplebase: just msbuild/SimpleBase/ + +msidenttokens: + just msbuild/Microsoft.IdentityModel.Tokens/ diff --git a/msbuild/Base128/justfile b/msbuild/Base128/justfile index e35d522..0752a1d 100644 --- a/msbuild/Base128/justfile +++ b/msbuild/Base128/justfile @@ -9,7 +9,6 @@ working_dir := `mktemp -d` repo_dir := working_dir / "repo" dotnet_artifact_dir := working_dir / "dotnet_artifacts" upm_contents_dir := working_dir / "upm_contents" -csproj_path := repo_dir / csproj_relative_path default: assemble_upm @@ -21,7 +20,8 @@ clone: git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}} build: clone - dotnet build {{csproj_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} + rm -f {{repo_dir / "global.json"}} + cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} assemble_upm: clone build && clean mkdir -p {{upm_contents_dir}} diff --git a/msbuild/BouncyCastle/justfile b/msbuild/BouncyCastle/justfile index e010bc5..a1ff277 100644 --- a/msbuild/BouncyCastle/justfile +++ b/msbuild/BouncyCastle/justfile @@ -9,7 +9,6 @@ working_dir := `mktemp -d` repo_dir := working_dir / "repo" dotnet_artifact_dir := working_dir / "dotnet_artifacts" upm_contents_dir := working_dir / "upm_contents" -csproj_path := repo_dir / csproj_relative_path default: assemble_upm @@ -21,7 +20,8 @@ clone: git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}} build: clone - dotnet build {{csproj_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} + rm -f {{repo_dir / "global.json"}} + cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} assemble_upm: clone build && clean mkdir -p {{upm_contents_dir}} diff --git a/msbuild/Microsoft.IdentityModel.Tokens/justfile b/msbuild/Microsoft.IdentityModel.Tokens/justfile new file mode 100644 index 0000000..3215045 --- /dev/null +++ b/msbuild/Microsoft.IdentityModel.Tokens/justfile @@ -0,0 +1,32 @@ +git_repo := "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet" +git_ref := "8.4.0" +dll_name := "Microsoft.IdentityModel.Tokens.dll" +dotnet_framework := "netstandard2.0" +csproj_relative_path := "src" / "Microsoft.IdentityModel.Tokens" / "Microsoft.IdentityModel.Tokens.csproj" +out_dir := invocation_directory() / "build" + +working_dir := `mktemp -d` +repo_dir := working_dir / "repo" +dotnet_artifact_dir := working_dir / "dotnet_artifacts" +upm_contents_dir := working_dir / "upm_contents" + +default: assemble_upm + +# Clean build outputs +clean: + rm -rf {{working_dir}} + +clone: + git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}} + +build: clone + rm -f {{repo_dir / "global.json"}} + cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} + +assemble_upm: clone build && clean + mkdir -p {{upm_contents_dir}} + cp {{dotnet_artifact_dir / dll_name}} {{upm_contents_dir}} + cp package.json {{upm_contents_dir}} + # cp *.meta {{upm_contents_dir}} + mkdir -p {{out_dir}} + npm pack --pack-destination {{out_dir}} {{upm_contents_dir}} diff --git a/msbuild/Microsoft.IdentityModel.Tokens/package.json b/msbuild/Microsoft.IdentityModel.Tokens/package.json new file mode 100644 index 0000000..57dacf9 --- /dev/null +++ b/msbuild/Microsoft.IdentityModel.Tokens/package.json @@ -0,0 +1,9 @@ +{ + "name": "org.basisvr.microsoft.identitymodel.tokens", + "version": "8.4.0", + "displayName": "Microsoft.IdentityModel.Tokens", + "description": "Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.", + "documentationUrl": "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet", + "publishConfig": { "registry": "https://npm.pkg.github.com/@BasisVR" }, + "repository":"https://github.com/BasisVR/UpmBuilds" +} diff --git a/msbuild/SimpleBase/justfile b/msbuild/SimpleBase/justfile index eb03470..c4966a9 100644 --- a/msbuild/SimpleBase/justfile +++ b/msbuild/SimpleBase/justfile @@ -9,7 +9,6 @@ working_dir := `mktemp -d` repo_dir := working_dir / "repo" dotnet_artifact_dir := working_dir / "dotnet_artifacts" upm_contents_dir := working_dir / "upm_contents" -csproj_path := repo_dir / csproj_relative_path default: assemble_upm @@ -21,7 +20,8 @@ clone: git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}} build: clone - dotnet build {{csproj_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} + rm -f {{repo_dir / "global.json"}} + cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} assemble_upm: clone build && clean mkdir -p {{upm_contents_dir}}