Skip to content

Comments

[Bug] Fix GL rebuild errors on Windows platform#149

Merged
wuzhiming merged 3 commits intococos:mainfrom
bofeng-song:main
Oct 21, 2025
Merged

[Bug] Fix GL rebuild errors on Windows platform#149
wuzhiming merged 3 commits intococos:mainfrom
bofeng-song:main

Conversation

@bofeng-song
Copy link
Contributor

@bofeng-song bofeng-song commented Oct 21, 2025

调用windows 平台执行步骤:

  1. call "E:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
  2. npx @electron/rebuild --force --version 37.3.1

package.json Outdated
"build:clear": "node workflow/build-clear.js",
"build:watch": "tsc -b --watch",
"postinstall": "node workflow/postinstall.js",
"postinstall": "node workflow/postinstall.js && patch-package",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 放到 devDependences 吧,正式运行好像不需要这个东西
  2. 把 patch-package 单独弄一个命令就好,我们默认 postinstall 并不需要这个操作,要 rebuild 的只有在发布到 electron 包的时候

@wuzhiming wuzhiming merged commit dd89758 into cocos:main Oct 21, 2025
1 check failed
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.

2 participants