Skip to content
Merged
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
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
default:
just --list

all: base128 simplebase bouncycastle
all: base128 bouncycastle newtonsoftjson simplebase

base128:
just msbuild/Base128/

bouncycastle:
just msbuild/BouncyCastle/

newtonsoftjson:
just msbuild/Newtonsoft.Json/

simplebase:
just msbuild/SimpleBase/
2 changes: 2 additions & 0 deletions msbuild/Newtonsoft.Json/Newtonsoft.Json.dll.meta

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

32 changes: 32 additions & 0 deletions msbuild/Newtonsoft.Json/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
git_repo := "https://github.com/JamesNK/Newtonsoft.Json"
git_ref := "13.0.3"
dll_name := "Newtonsoft.Json.dll"
dotnet_framework := "netstandard2.0"
csproj_relative_path := "Src" / "Newtonsoft.Json" / "Newtonsoft.Json.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"
csproj_path := repo_dir / csproj_relative_path

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
dotnet build {{csproj_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/Newtonsoft.Json/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "org.basisvr.newtonsoft.json",
"version": "13.0.3",
"displayName": "Newtonsoft.Json",
"description": "High-performance JSON framework",
"documentationUrl": "https://github.com/JamesNK/Newtonsoft.Json",
"publishConfig": { "registry": "https://npm.pkg.github.com/@BasisVR" },
"repository":"https://github.com/BasisVR/UpmBuilds"
}
7 changes: 7 additions & 0 deletions msbuild/Newtonsoft.Json/package.json.meta

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

4 changes: 3 additions & 1 deletion msbuild/SimpleBase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"version": "4.0.2",
"displayName": "SimpleBase",
"description": "Base16, Base32, Base58, Base85 encoding/decoding library",
"documentationUrl": "https://github.com/ssg/SimpleBase"
"documentationUrl": "https://github.com/ssg/SimpleBase",
"publishConfig": { "registry": "https://npm.pkg.github.com/@BasisVR" },
"repository":"https://github.com/BasisVR/UpmBuilds"
}