dusionlike / electron-builder-encryptor

simple electron package encryption tool
MIT License
24 stars 7 forks source link

Add MacOS .app Support #6

Closed dprice-covalent closed 2 years ago

dprice-covalent commented 2 years ago

I really appreciate this project and wanted to add a contribution that I had made to get this to work with MacOS .app applications. When building .app applications on MacOS, the resources directory is in the .app/Contents directory, and the executable is in the .app/MacOS directory. I made some updates to the main run function and to the preload script to account for these. I haven't tested this with .pkg packages (these might need to be handled differently), but it works for .app applications.

dusionlike commented 2 years ago

Thanks! ❤️ I don't have a mac so don't know the problem.