Skip to content

MacOS - Remove/replace alias files in Electron Framework.framework folder #5767

@Faksprod

Description

@Faksprod
  • Version: 21.2.0
  • Electron Version: 21.2.0
  • Target: MAC

I am building an .APP file with electron-buidler and it works great. My app is able to run on my Mac.
My question is about the Frameworks folder structure I can see when right clicking my .app file then > show package content.

In the Frameworks/Electron Framework.framework/ folder I can see 3 alias:

  • Electron Framework
  • Libraries
  • Resources

Capture d’écran 2021-04-04 à 19 05 15

Each of these alias are pointing to their original files stored in the sub folder folder Versions/A/
(this is the same concept/organization for each folder in the Frameworks folder such as Mantle.framework, ReactiveCocoa.framework and Squirrel.framework)

Capture d’écran 2021-04-04 à 19 06 59

For a very specific case, before publish/distribute my app, I need to reorganized this folder/file structure by replacing alias by their original folder/file (then after what I can also remove the Versions folder which is now useless).

I could of course do this manually (I did it and the app still works). I could open each sub folders, then replace each alias by its original file manually... But I will have to do this each time I will update my app before publishing it, which is kind of annoying. My questions:

-> Is there any option to pass to electron-builder to say "please don't create any alias in the Frameworks folder, just put original files where they have to be"?
-> Why such a structure/organization? What is it useful for?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions