GithubHelp home page GithubHelp logo

Comments (5)

crotwell avatar crotwell commented on August 24, 2024

For 1), the dmg creation is done by hdiutil, and it has no options for not following symlinks. Sorry, but that is not something I have the ability to fix. The correct way to do the linking is to create it inside the dmg after it has been created. Then it will function as you want.

For 2) it would be nice to allow this, but using a "blank" background image seems a good workaround. I'll leave this issue open and try to add an option if I make another release, but not sure if or when that would happen.

from gradle-macappbundle.

hepcat72 avatar hepcat72 commented on August 24, 2024

So for 1), would it be a command-line call to hdiutil to add the alias to the dmg created by running the createDmg task? So, I would run gradle createDmg, then run the new task you're proposing to add the alias? I'm not very familiar with hdiutil. This is the first mac app I've ever built. If this is how that would be handled, could I also define window locations for the README and sample data file I added? Because their default locations appear to be filling the window from top-left to right, above the .app and apps alias...

macAppBundle {
  ...
  copyMacPkgFiles()
}

def copyMacPkgFiles() {
  copy {
    from file("${projectDir}/")
    into file("${buildDir}/macApp")
    include 'README.md'
    rename('README.md','README.txt')
  }
  mkdir file("${buildDir}/macApp/Sample")
  copy {
    from file("${projectDir}/src/main/resources")
    into file("${buildDir}/macApp/Sample")
    include 'spellman.cdt'
  }
}

from gradle-macappbundle.

crotwell avatar crotwell commented on August 24, 2024

You have to first create the dmg, then mount it, then do whatever extra stuff you want, then unmount it.

See https://github.com/crotwell/gradle-macappbundle/blob/master/src/main/groovy/edu/sc/seis/macAppBundle/MacAppBundlePlugin.groovy
about line 296 for the dmg creation and about line 383 for how the linking it is done internally.

This page although old, maybe useful.

from gradle-macappbundle.

victorkifer avatar victorkifer commented on August 24, 2024

@hepcat72 opened a pull request which should add this functionality #62

from gradle-macappbundle.

crotwell avatar crotwell commented on August 24, 2024

In v2.2.3

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.