-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(Microsoft.IdentityModel.Tokens): initial commit
- Loading branch information
Showing
6 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ bouncycastle: | |
|
||
simplebase: | ||
just msbuild/SimpleBase/ | ||
|
||
msidenttokens: | ||
just msbuild/Microsoft.IdentityModel.Tokens/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters