Skip to content

build: Windows 7 兼容构建方案(esbuild-wasm / @rollup/wasm-node,纯 WASM 工具链) - #136

Open
doujiaozh wants to merge 1 commit into
omdsh-dev:mainfrom
doujiaozh:win7-compat-build
Open

doujiaozh wants to merge 1 commit into
omdsh-dev:mainfrom
doujiaozh:win7-compat-build

Conversation

@doujiaozh

Copy link
Copy Markdown

背景

在 Windows 7 上执行 pnpm build 会以

…-node

Native Go/Rust toolchain binaries (esbuild.exe, rollup.exe, rolldown
binding) import Win8+ APIs such as GetSystemTimePreciseAsFileTime and
crash with 0xc0000005 on Windows 7. Add build-win7.mjs, a pure-Node
build entry backed by esbuild-wasm and @rollup/wasm-node plus
typescript transpileModule, producing equivalent dist/ and lib/
artifacts. Includes static asset copy (manifest, _locales, assets,
panel HTML rewrite), a PE-import Win8+ API scanner, and optional
GoWin7Fixer.exe fallback via --fix-native.
@doujiaozh

Copy link
Copy Markdown
Author

Tested on a real Windows 7 x64 machine (8GB RAM). The node build-win7.mjs script generated a fully functional Chrome extension without any 0xc0000005 crashes. Replaces native Rust/Go binaries with pure WASM. Ready for review.

@doujiaozh

Copy link
Copy Markdown
Author

Hey @Lum1104, just a gentle ping to see if there's any chance we could get this Windows 7 compatibility PR merged. It's fully tested and makes the extension usable for a large legacy user base. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant