GithubHelp home page GithubHelp logo

Comments (7)

chrisvire avatar chrisvire commented on August 24, 2024

Where is JavaAppLauncher coming from? I need a replacement so that I can submit apps for Notarization. I would submit a PR if I knew how to rebuild it.

from gradle-macappbundle.

chrisvire avatar chrisvire commented on August 24, 2024

I see that @olegs forked to include JavaAppLauncher from https://github.com/i-net-software/SetupBuilder. Could we get an update for this?

from gradle-macappbundle.

olegs avatar olegs commented on August 24, 2024

@chrisvire As far as I understand originally JavaAppLauncher comes from OpenJDK7 https://svn.java.net/svn/appbundler~svn
Unfortunately it is not available at the moment.
I found the following fork repository: https://github.com/TheInfiniteKind/appbundler
It contains source code and build instructions for JavaAppLauncher, however there were some problems building it on my machine from sources.

from gradle-macappbundle.

chrisvire avatar chrisvire commented on August 24, 2024

What about using javapackager from JDK?

from gradle-macappbundle.

chrisvire avatar chrisvire commented on August 24, 2024

@crotwell, can you find the source for JavaAppLauncher? Please?

I had the JavaAppLauncher from https://github.com/i-net-software/SetupBuilder working for me. However, just before releasing, I am seeing this Java2d crash:
https://bugs.openjdk.java.net/browse/JDK-8244818

I don't see this crash with the JavaAppLauncher included in the repo. I REALLY need the source of the JavaAppLauncher that is include in the repo.

I tried taking the source (main.m) from both https://github.com/i-net-software/SetupBuilder and https://github.com/TheInfiniteKind/appbundler and build them using this makefile:

CC=clang
CFLAGS=-x objective-c -mmacosx-version-min=10.12 -I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/darwin
LIB=-framework Foundation -framework Cocoa

JavaAppLauncher: main.m
	$(CC) $(LIB) -o $@ $(CFLAGS) $<

.PHONY: clean

clean:
	rm -f JavaAppLauncher

Using either of these, my app crashes when I drag the main window from the primary monitor to the secondary monitor and then back. If I use the JavaAppLauncher that is included in this repo, then I don't see the crash. However, this binary has
LC_VERSION_MIN_MACOSX set to 10.7 and notarization require 10.9 or higher.

See:
https://osxapps-ssl.itunes.apple.com/itunes-assets/Enigma114/v4/2b/d4/23/2bd42342-15ec-3a17-79fa-448aa3f7f10f/developer_log.json?accessKey=1593985764_2136733404120591835_9D1VT8D9yQ5ZAMFA%2B9ohC8t4CIJ8zq6TwUw9L3aZHAN1Xw2TD%2BhhgOkWsIoq14BtMGGlX5AoC7Qz5MGabeNg7BG4G5q03Wd6koyraCCUIOODlCM5OK74TNP9G%2F9TuFe0hgjvLe%2FRq18UIswdAadhrPQjiA0BTAz1peeoiG8mC7Y%3D

from gradle-macappbundle.

chrisvire avatar chrisvire commented on August 24, 2024

@crotwell , @olegs : I found a version of JavaAppLauncher from OpenJDK7:
https://github.com/openjdk-mirror/jdk7u-jdk/tree/master/src/macosx/bundle/appbundler/native

However, it is not the same as what is included in this repo. It is expecting the full JDK and not the JRE (different parameters in the Info.plist).

from gradle-macappbundle.

crotwell avatar crotwell commented on August 24, 2024

Sorry, I am no longer developing java mac apps and don't have time to devote to this project currently. If you have a pull request I can look at it.

I do not remember where the JavaAppLauncher came from, pretty sure I did not compile it. Best guess is it was included with the JDK from Oracle, but that might have been Java6.

You can set the launcher program to another executable using the
bundleExecutable
property. That said, I think the java world has changed the way apps are packaged in the intervening time and this plugin may no longer be the best choice since it uses an older style.

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.