Skip to content

[BUG] macOS App Fails to Load - Incorrect Asset Packaging in v5.5.0 #286

@rayztan99

Description

@rayztan99

Description:
The Aspect Model Editor v5.5.0 for MacBook ([aspect-model-editor-v5.5.0-mac.dmg] 168 MB Apr 30, 2024) fails to start, showing net::ERR_FILE_NOT_FOUND errors in the developer console for essential files like polyfills.js.

Cause:
The application's assets are packaged incorrectly. By inspecting the app.asar archive, it's clear the web assets are located in a /dist/apps/ame/ subdirectory instead of at the root of the archive.

Evidence:
The asar list command shows the nested file structure:

/dist/apps/ame/index.html
/dist/apps/ame/polyfills.71c53ebd0f8f7024.js
/dist/apps/ame/runtime.c548a9cc4a5b45c6.js
/dist/apps/ame/styles.d8c81d1352315a82.css

Suggested Fix:
The electron-builder configuration needs to be adjusted to map the build output directory (dist/apps/ame) to the root of the asar archive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedHas been viewed by one of the maintainers and is ready for further work, discussion or other steps.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions