Skip to content

Commit 295ae1a

Browse files
committed
Prepend import.meta.url and copy symbols from obj
1 parent 7a39202 commit 295ae1a

File tree

7 files changed

+10
-3
lines changed

7 files changed

+10
-3
lines changed

wasm/dotnet/build-aot/wwwroot/_framework/dotnet.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wasm/dotnet/build-aot/wwwroot/_framework/dotnet.native.js.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
86:dotnet_BenchTask__RunBatchd__9_MoveNext
8888
87:ut_dotnet_BenchTask__RunBatchd__9_MoveNext
8989
88:dotnet_Interop_RunIteration_int_int_int
90-
89:dotnet_Interop___Wrapper_RunIteration_1589245755_System_Runtime_InteropServices_JavaScript_JSMarshalerArgument_
90+
89:dotnet_Interop___Wrapper_RunIteration_533449265_System_Runtime_InteropServices_JavaScript_JSMarshalerArgument_
9191
90:dotnet_Interop__cctor
9292
91:dotnet_Sample_ExceptionsTask__ctor
9393
92:dotnet_Sample_JsonTask__ctor
Binary file not shown.
Binary file not shown.

wasm/dotnet/build-interp/wwwroot/_framework/dotnet.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

wasm/dotnet/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55

66
dotnet workload install wasm-tools
77
dotnet publish -o ./build-interp ./src/dotnet/dotnet.csproj
8-
dotnet publish -o ./build-aot ./src/dotnet/dotnet.csproj -p:RunAOTCompilation=true
8+
printf '%s\n' 'import.meta.url ??= "";' | cat - ./build-interp/wwwroot/_framework/dotnet.js > temp.js && mv temp.js ./build-interp/wwwroot/_framework/dotnet.js
9+
cp ./src/dotnet/obj/Release/net9.0/wasm/for-publish/dotnet.native.js.symbols ./build-interp/wwwroot/_framework/
10+
11+
dotnet publish -o ./build-aot ./src/dotnet/dotnet.csproj -p:RunAOTCompilation=true
12+
printf '%s\n' 'import.meta.url ??= "";' | cat - ./build-aot/wwwroot/_framework/dotnet.js > temp.js && mv temp.js ./build-aot/wwwroot/_framework/dotnet.js
13+
cp ./src/dotnet/obj/Release/net9.0/wasm/for-publish/dotnet.native.js.symbols ./build-aot/wwwroot/_framework/

0 commit comments

Comments
 (0)