Skip to content

Commit

Permalink
build(Microsoft.IdentityModel.Tokens): initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Feb 8, 2025
1 parent 3c8e33b commit 871be1c
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 6 deletions.
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ bouncycastle:

simplebase:
just msbuild/SimpleBase/

msidenttokens:
just msbuild/Microsoft.IdentityModel.Tokens/
4 changes: 2 additions & 2 deletions msbuild/Base128/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}}
Expand Down
4 changes: 2 additions & 2 deletions msbuild/BouncyCastle/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}}
Expand Down
32 changes: 32 additions & 0 deletions msbuild/Microsoft.IdentityModel.Tokens/justfile
Original file line number Diff line number Diff line change
@@ -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}}
9 changes: 9 additions & 0 deletions msbuild/Microsoft.IdentityModel.Tokens/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions msbuild/SimpleBase/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}}
Expand Down

0 comments on commit 871be1c

Please sign in to comment.