GithubHelp home page GithubHelp logo

Comments (4)

crotwell avatar crotwell commented on July 22, 2024

On the Mac, all the stuff that would be in a startup script is put into a "Info.plist" file and the dependency jar files end up in MyApp.app/Contents/Java/. So you could modify the Info.plist and the Contents/Java directory to accommodate new versions. There may be security issues with writing to those directories depending on how the application was installed.

Good luck.

from gradle-macappbundle.

akasolace avatar akasolace commented on July 22, 2024

This time I think I know what is going on.
On windows I have something like:
/App/Ressources1/
/App/Ressources2/
/App/app.jar

I am using from my application files in Ressources1 and Ressources2 folder.
Also I have some update mechanism that update files in those folders.

Once I bundle my app using macappbundle, my ressources folder got embedded into app.jar.
Hence when I do thing like class.getressources, I end up with
" jar:file:/pathto/XXX.app/Contents/Java/XX.jar!/sprache" when I was expecting " /pathto/XXX.app/Contents/Java/sprache"

This breaks lot of my code. Is it possible to have the ressources not part of the jar itself but as separate ressource folder?

thank you

from gradle-macappbundle.

crotwell avatar crotwell commented on July 22, 2024

Sorry, no idea how to do that. When I have used resources in the past, I have always embedded them in a jar file.

from gradle-macappbundle.

akasolace avatar akasolace commented on July 22, 2024

Actually,
I found a workaround for that problem, but ideally I would still like to choose the working directory.
On mac os X my app is creating some files in the user directory, it would be more appropriate to use the Application Folder.
I could fix it by chaning a lot of relative path to absolute but I dont feel doing it this way so I am still investigating if it is possible to set working directory at global level.
Any help would be very appreciated !!

from gradle-macappbundle.

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.