Repository navigation
Build MediaInfoLib for WebAssembly and analyze streams in chunks - #13
Merged
Merged
Conversation
- build-native-wasm.sh compiles MediaInfoLib + ZenLib with the Emscripten SDK of the .NET wasm-tools workload (same toolchain and -fwasm-exceptions/SIMD flags as the runtime) into native/browser-wasm/libmediainfo.a; zlib comes from the .NET runtime. SIZE_T_IS_LONG is needed on wasm32. - The logical P/Invoke library is now "libmediainfo": the WebAssembly SDK binds imports by the archive file name (desktop still goes through the resolver). - SharpMediaInfo.Native.Browser.targets adds the NativeFileReference; it is packed as buildTransitive so NuGet consumers link it automatically. - OpenStream no longer copies the whole stream in memory: it feeds 256 KB chunks and follows Open_Buffer_Continue_GoTo_Get seek requests. New OpenStreamAsync / MediaInfoBuilder.BuildAsync use Stream.ReadAsync. - Fix packing: natives were also packed as contentFiles with a build/../native path, which made NuGet restore fail for consumers. - SharpMediaInfo.Wasm.Smoke runs MediaInfo inside the .NET wasm runtime under Node; CI builds the browser-wasm native and runs it before packing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SyVioAMhEw3uuqBekTJcn2
…10.3 Same CI changes as on the release/* maintenance branches: pushes to release/* build, tag and publish (without becoming the Latest release), and the pack job fails if a package has contentFiles or '..' entries. 26.10.2 is taken by the release/26.10 packaging fix, so this goes out as 26.10.3. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SyVioAMhEw3uuqBekTJcn2
The runner image now ships a newer SDK that takes precedence over the one setup-dotnet installs. With it the net10.0 smoke app would need wasm-tools-net10 and WasmBuildNative isn't applied, and the browser-wasm archive is compiled with that SDK's Emscripten. Pin the SDK with global.json in the two wasm jobs and invalidate the browser-wasm native cache entry. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SyVioAMhEw3uuqBekTJcn2
setup-dotnet installs to /usr/share/dotnet on hosted runners, so the $HOME/.dotnet glob matched nothing and ls exited 2, aborting the step under bash -e -o pipefail before the PATH fallback ran. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SyVioAMhEw3uuqBekTJcn2
Contributor
|
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SyVioAMhEw3uuqBekTJcn2