GithubHelp home page GithubHelp logo

Comments (11)

max-mapper avatar max-mapper commented on May 25, 2024

thanks for the bug report! heres the line of code we're calling in the implementation for reference https://github.com/maxogden/electron-packager/blob/554f3b735483319450c2ad8d0e0cba90e041ebe2/common.js#L10, it's pretty weird the asar file that you get is empty.

I or another maintainer will try and reproduce when we get a chance

from electron-packager.

kfranqueiro avatar kfranqueiro commented on May 25, 2024

This sounds like a similar problem to what #73 is trying to solve. Apparently it's an issue on more than a single platform. It certainly looks as if mac.js is already adding Resources to the path, and then asarApp is adding resources again, which is wrong.

from electron-packager.

masom avatar masom commented on May 25, 2024

@kfranqueiro yep. On windows the app is packaged at /path/to/app/resources but electron-packager adds another resources path component. This probably happened by porting the os x code to windows. The OS X app generates the resources folder under the MyApp.app/Resources which does not exists on windows.

from electron-packager.

masom avatar masom commented on May 25, 2024

Seems like problems got introduced in 8134009

from electron-packager.

masom avatar masom commented on May 25, 2024

8134009#diff-a16e9b0497c5d6579f17c2c139cb3abaL140 was modified to append resources but some file operations did not take this into considerations.

from electron-packager.

malept avatar malept commented on May 25, 2024

Yeah, sorry about that. Give me a second to revert the behavior.

from electron-packager.

masom avatar masom commented on May 25, 2024

@malept #73 should fix it.

from electron-packager.

malept avatar malept commented on May 25, 2024

@masom #73 is not quite right in the Mac code, it adds an extra folder.

@enkows please test 178b3d4 with a Mac build, it reverted the behavior to what it was before my refactoring.

from electron-packager.

masom avatar masom commented on May 25, 2024

@malept 178b3d4 works for us on both windows and OS X

from electron-packager.

kfranqueiro avatar kfranqueiro commented on May 25, 2024

The Mac code should be fine now, as it already adds Resources on its side of the code.

Edit: ah, sorry, now I see what you were referring to in the original PR.

from electron-packager.

enkows avatar enkows commented on May 25, 2024

@malept @masom
178b3d4 fixed the path issue, but the app.asar still has a problem.

$ cp electron/Electron.app/Contents/Resources/app.asar app.asar
$ asar list app.asar
/app.asar

$ asar extract app.asar app/app.asar
$ asar list app/app.asar
/package.json
/index.html
/main.js

It seems like the .asar file packaged twice.

UPDATE:
It's works fine now!
I wrote some scripts to solve the path problem before. After I remove those scripts, it works fine.

Thanks!

from electron-packager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.