Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project does not work on OSX Mojave #15

Open
jmfayard opened this issue Feb 7, 2019 · 5 comments
Open

Project does not work on OSX Mojave #15

jmfayard opened this issue Feb 7, 2019 · 5 comments

Comments

@jmfayard
Copy link

jmfayard commented Feb 7, 2019

$ ./gradlew generateNativeInstaller
No base JDK. Package will use system JRE.
No base JDK. Package will use system JRE.
Creating app bundle: /Users/jmfayard/Dev/try/fxldemo-gradle/build/installer/bundles/fxldemo-gradle.app
java.io.FileNotFoundException: /Users/jmfayard/Dev/try/fxldemo-gradle/build/installer/bundles/fxldemo-gradle.app/Contents/PkgInfo (Permission denied)
Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
@jmfayard
Copy link
Author

jmfayard commented Feb 7, 2019

In my own project with Gradle 5.2, it didn't work either, albeit with a different error

./gradlew generateNativeInstaller
13:29:44: Executing task 'generateNativeInstaller'...
> Task :jar UP-TO-DATE
> Task :copyAppDependencies
> Task :generateApplicationManifest
> Task :embedApplicationManifest
No base JDK. Package will use system JRE.
No base JDK. Package will use system JRE.
Creating app bundle: /Users/jmfayard/Dev/mautinoa/asciiapp/build/installer/bundles/de.fayard.asciiapp.app
Did not find a key matching 'Developer ID Application: '
Building DMG package for de.fayard.asciiapp
Did not find a key matching 'Developer ID Application: '
Exec failed with code 2 command [[/usr/bin/SetFile, -c, icnC, /var/folders/4c/176bjfgn2fj9xp68ckjpz2940000gs/T/fxbundler3335180035600545251/images/de.fayard.asciiapp/.VolumeIcon.icns] in unspecified directory
Result DMG installer for de.fayard.asciiapp: /Users/jmfayard/Dev/mautinoa/asciiapp/build/installer/bundles/de.fayard.asciiapp-0.1.dmg
Building PKG package for de.fayard.asciiapp
Did not find a key matching 'Developer ID Application: '
Did not find a key matching 'Developer ID Installer: '
Did not find a key matching '3rd Party Mac Developer Application: '
Bundler Mac App Store Ready Bundler skipped because of a configuration problem: No Mac App Store App Signing Key  
Advice to fix: Install your app signing keys into your Mac Keychain using XCode.

> Task :generateNativeInstaller
Native installer is now available in /Users/jmfayard/Dev/mautinoa/asciiapp/build/installer

That does produce a .app, but it fails and crash

image

image

@jmfayard
Copy link
Author

jmfayard commented Feb 7, 2019

Do I need an Apple Developer ID?
https://help.apple.com/developer-account/#/dev04fd06d56

@edvin
Copy link
Owner

edvin commented Feb 7, 2019

You don't need an apple dev id unless you want to sign your package. Your first issue seems to be related to write permissions. You need to investigate that locally. The ClassNotFoundException is probably a result of fxlauncher being unable to download the files from your configured app url. Either you haven't uploaded the files to the given location, or something is preventing your machine from downloading the files from that location.

@JacekPietras
Copy link

Snipaste_2019-03-29_02-04-51

Similar issue after just running project on Windows

@edvin
Copy link
Owner

edvin commented Mar 29, 2019

So the same is true here. To know exactly what you're doing wrong you're going to have to post your project :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants