Skip to content

Commit b35d280

Browse files
committed
build(Microsoft.IdentityModel.Tokens): initial commit
1 parent 3c8e33b commit b35d280

8 files changed

Lines changed: 59 additions & 6 deletions

File tree

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ bouncycastle:
1111

1212
simplebase:
1313
just msbuild/SimpleBase/
14+
15+
msidenttokens:
16+
just msbuild/Microsoft.IdentityModel.Tokens/

msbuild/Base128/justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ working_dir := `mktemp -d`
99
repo_dir := working_dir / "repo"
1010
dotnet_artifact_dir := working_dir / "dotnet_artifacts"
1111
upm_contents_dir := working_dir / "upm_contents"
12-
csproj_path := repo_dir / csproj_relative_path
1312

1413
default: assemble_upm
1514

@@ -21,7 +20,8 @@ clone:
2120
git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}}
2221

2322
build: clone
24-
dotnet build {{csproj_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}}
23+
rm -f {{repo_dir / "global.json"}}
24+
cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}}
2525

2626
assemble_upm: clone build && clean
2727
mkdir -p {{upm_contents_dir}}

msbuild/BouncyCastle/justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ working_dir := `mktemp -d`
99
repo_dir := working_dir / "repo"
1010
dotnet_artifact_dir := working_dir / "dotnet_artifacts"
1111
upm_contents_dir := working_dir / "upm_contents"
12-
csproj_path := repo_dir / csproj_relative_path
1312

1413
default: assemble_upm
1514

@@ -21,7 +20,8 @@ clone:
2120
git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}}
2221

2322
build: clone
24-
dotnet build {{csproj_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}}
23+
rm -f {{repo_dir / "global.json"}}
24+
cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}}
2525

2626
assemble_upm: clone build && clean
2727
mkdir -p {{upm_contents_dir}}

msbuild/Microsoft.IdentityModel.Tokens/Microsoft.IdentityModel.Tokens.dll.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
git_repo := "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet"
2+
git_ref := "8.4.0"
3+
dll_name := "Microsoft.IdentityModel.Tokens.dll"
4+
dotnet_framework := "netstandard2.0"
5+
csproj_relative_path := "src" / "Microsoft.IdentityModel.Tokens" / "Microsoft.IdentityModel.Tokens.csproj"
6+
out_dir := invocation_directory() / "build"
7+
8+
working_dir := `mktemp -d`
9+
repo_dir := working_dir / "repo"
10+
dotnet_artifact_dir := working_dir / "dotnet_artifacts"
11+
upm_contents_dir := working_dir / "upm_contents"
12+
13+
default: assemble_upm
14+
15+
# Clean build outputs
16+
clean:
17+
rm -rf {{working_dir}}
18+
19+
clone:
20+
git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}}
21+
22+
build: clone
23+
rm -f {{repo_dir / "global.json"}}
24+
cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}}
25+
26+
assemble_upm: clone build
27+
mkdir -p {{upm_contents_dir}}
28+
cp {{dotnet_artifact_dir / dll_name}} {{upm_contents_dir}}
29+
cp package.json {{upm_contents_dir}}
30+
# cp *.meta {{upm_contents_dir}}
31+
mkdir -p {{out_dir}}
32+
npm pack --pack-destination {{out_dir}} {{upm_contents_dir}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "org.basisvr.microsoft.identitymodel.tokens",
3+
"version": "8.4.0",
4+
"displayName": "Microsoft.IdentityModel.Tokens",
5+
"description": "Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.",
6+
"documentationUrl": "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet",
7+
"publishConfig": { "registry": "https://npm.pkg.github.com/@BasisVR" },
8+
"repository":"https://github.com/BasisVR/UpmBuilds"
9+
}

msbuild/Microsoft.IdentityModel.Tokens/package.json.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

msbuild/SimpleBase/justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ working_dir := `mktemp -d`
99
repo_dir := working_dir / "repo"
1010
dotnet_artifact_dir := working_dir / "dotnet_artifacts"
1111
upm_contents_dir := working_dir / "upm_contents"
12-
csproj_path := repo_dir / csproj_relative_path
1312

1413
default: assemble_upm
1514

@@ -21,7 +20,8 @@ clone:
2120
git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}}
2221

2322
build: clone
24-
dotnet build {{csproj_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}}
23+
rm -f {{repo_dir / "global.json"}}
24+
cd {{repo_dir}} && dotnet build {{csproj_relative_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}}
2525

2626
assemble_upm: clone build && clean
2727
mkdir -p {{upm_contents_dir}}

0 commit comments

Comments
 (0)