Skip to content
Closed
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
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
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"
}
7 changes: 7 additions & 0 deletions msbuild/Microsoft.IdentityModel.Tokens/package.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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