Skip to content

fix: replace package-template with feopack in native binding loader#1

Open
CoderSerio wants to merge 9 commits intomainfrom
fix/native-binding-name
Open

fix: replace package-template with feopack in native binding loader#1
CoderSerio wants to merge 9 commits intomainfrom
fix/native-binding-name

Conversation

@CoderSerio
Copy link
Member

@CoderSerio CoderSerio commented Mar 6, 2026

问题

index.js(napi-rs 生成的原生绑定加载器)仍引用模板占位符 package-template,而非项目名 feopack

修复

  • index.js: 替换 78 处 package-templatefeopack
  • package.json: 修正仓库 URL → atom-universe/FeOPack

影响

修复后,原生绑定加载器能正确加载 feopack 二进制文件。

注意

这是从 napi-rs package-template fork 后的必要修复。理想情况下应通过 napi build --platform 重新生成 index.js

- Update index.js to use correct binary name 'feopack' instead of template placeholder
- Fix repository URL in package.json to point to atom-universe/FeOPack

This fixes the native binding loading issue where the generated index.js
was still referencing the napi-rs package-template instead of feopack.
@CoderSerio CoderSerio force-pushed the fix/native-binding-name branch 2 times, most recently from cd49b8a to 0bb9f12 Compare March 6, 2026 07:28
Aion added 8 commits March 6, 2026 15:29
- CI workflow calls 'yarn build' which didn't exist
- Added: napi build --platform --release
- Remove @feopack/cli workspace dependency (doesn't exist)
- Add build script: napi build --platform --release
- Removed non-existent @feopack/cli workspace dependency
- Added missing 'build' script for CI
- Regenerated yarn.lock to match package.json
- Build script needs --package node-binding for cargo workspace
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