Skip to content

Commit 9f29d85

Browse files
feat: dynamic mapping.json
1 parent d846d7a commit 9f29d85

File tree

6 files changed

+1357
-156
lines changed

6 files changed

+1357
-156
lines changed

scripts/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!shell.nix
3+
!Makefile
4+
!.gitignore

scripts/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.PHONY: all mapping.json
2+
3+
all: mapping.json
4+
5+
mapping.json:
6+
curl -sSL https://github.com/monkeyman192/MBINCompiler/releases/latest/download/mapping.json -o ./mapping.json
7+
jq '.Mapping | map({(.Key): .Value}) | add' ./mapping.json > ../src/data/mapping.json
8+
npx prettier --write ../src/data/mapping.json --config ../.prettierrc

scripts/shell.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ pkgs ? import <nixpkgs> {
2+
config = {
3+
permittedInsecurePackages = [
4+
"dotnet-runtime-6.0.36"
5+
];
6+
};
7+
}
8+
}:
9+
10+
pkgs.mkShell {
11+
buildInputs = [
12+
pkgs.dotnet-runtime_6
13+
pkgs.gnumake
14+
pkgs.nodejs_24
15+
pkgs.jq
16+
];
17+
18+
shellHook = ''
19+
export DOTNET_ROOT=${pkgs.dotnet-runtime_6}/share/dotnet/
20+
'';
21+
}

src/data/jsonmap/account.json

Lines changed: 0 additions & 155 deletions
This file was deleted.

0 commit comments

Comments
 (0)