Comments (5)
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.
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.
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.
@hepcat72 opened a pull request which should add this functionality #62
from gradle-macappbundle.
In v2.2.3
from gradle-macappbundle.
Related Issues (20)
- Deprecation warning with Gradle 4.0-rc-1 HOT 4
- Error: execCommand == null HOT 2
- Subproject evalutation and executing project.afterEvaluate{} HOT 1
- Resulting app does not open when bundleJRE = true HOT 6
- Error prototypes method getJREDirName HOT 4
- About the dmg HOT 7
- backgroundImage option fails on osascript when project path contains spaces
- JDK 10 is not bundled HOT 7
- Adding javaExtras.put() creates an app that wonβt run HOT 3
- Builing DMG often fails when background image is set HOT 2
- Switch app launcher to one with a better JRE missing error? HOT 5
- Application hangs when okhttp3.Credentials.basic method gets called HOT 2
- is it possible to manually edit the startup script? HOT 4
- Gradle 5.0 build fails on non-macOS systems HOT 1
- Java 11 JRE's from adoptopenjdk are not supported HOT 1
- Remove dependency between assemble and macappbundle tasks
- Created application cannot be notarized for Mac OS Mojave HOT 7
- Documention/Links on how to contribute HOT 1
- JavaAppLauncher Apple Silicon (arm64) support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-macappbundle.