Body:
Description of the phenomenon: When starting the refactored application, a warning pops up stating that the database cannot be accessed.
Core error message: Error: better-sqlite3 is only bundled with the Electron app.
Objective speculation: It seems that the rebuild_codex.js script failed to properly recompile or replace the native dependency better-sqlite3 with x86_64 architecture when processing the official Arm64 installation package, causing the underlying Electron runtime driver to fail to load.
However, I need this urgently, so I plan to follow the steps in your Prerequisites and run the build process in the terminal. Sometimes, when running the installation and compilation commands directly in a native Intel macOS environment, the system's underlying build chain (Node-gyp) will automatically pull or compile the correct x64 native modules, thus bypassing cross-compilation errors during packaging at a physical level.
Body:
Description of the phenomenon: When starting the refactored application, a warning pops up stating that the database cannot be accessed.
Core error message: Error: better-sqlite3 is only bundled with the Electron app.
Objective speculation: It seems that the rebuild_codex.js script failed to properly recompile or replace the native dependency better-sqlite3 with x86_64 architecture when processing the official Arm64 installation package, causing the underlying Electron runtime driver to fail to load.
However, I need this urgently, so I plan to follow the steps in your Prerequisites and run the build process in the terminal. Sometimes, when running the installation and compilation commands directly in a native Intel macOS environment, the system's underlying build chain (Node-gyp) will automatically pull or compile the correct x64 native modules, thus bypassing cross-compilation errors during packaging at a physical level.