Skip to content

Commit d6a7eab

Browse files
committed
nice
1 parent 47a08a0 commit d6a7eab

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

Runtime/Unity.NodeApi.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/bin/sh
22

3-
dotnet ../../../../../../out/bin/Release/NodeApi.Generator/net10.0/osx-arm64/Microsoft.JavaScript.NodeApi.Generator.dll \
4-
--assembly "../../../Library/ScriptAssemblies/Unity.NodeApi.dll" \
5-
--reference "Microsoft.JavaScript.NodeApi.dll" \
6-
--typedefs "Unity.NodeApi.d.ts"
3+
pushd ../../../Build_BackUpThisFolder_ButDontShipItWithYourGame/Managed/
4+
5+
# enumerate all .dll files in the current directory and put them to semicolon-separated list
6+
refs=$(find . -name "*.dll" -type f -print0 | sed 's/.\//;/g')
7+
8+
dotnet ~/Documents/node-api-dotnet/out/bin/Release/NodeApi.Generator/net10.0/osx-arm64/Microsoft.JavaScript.NodeApi.Generator.dll \
9+
--assembly "Unity.NodeApi.dll" \
10+
--reference "$refs" \
11+
--typedefs "Unity.NodeApi.d.ts" \
12+
--framework "netstandard2.1"
13+
14+
popd

0 commit comments

Comments
 (0)