Skip to content

Title: App fails to launch on Intel Mac: better-sqlite3 architecture mismatch #5

Description

@Lee-maxpro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions