Changes between Version 1 and Version 2 of Ticket #18319, comment 22


Ignore:
Timestamp:
2020-06-03T00:12:42+02:00 (6 years ago)
Author:
Stereo

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18319, comment 22

    v1 v2  
    33I've used `/Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/jpackage -n "JOSM" --input dist --main-jar josm-custom.jar --main-class org.openstreetmap.josm.gui.MainApplication --icon ./native/macosx/JOSM.app/Contents/Resources/JOSM.icns --type app-image --dest appimageoutput --java-options "-Xmx8192m" --app-version "16539" --copyright "JOSM, and all its integral parts, are released under the GNU General Public License v2 or later" --vendor "https://josm.openstreetmap.de" --file-associations native/macosx/gpx.properties --file-associations native/macosx/osm.properties`
    44
    5 The properties file basically look like:
     5The properties files basically look like:
    66
    77{{{
     
    1414What doesn't work yet:
    1515
    16 - I only tell it that it can open .osm and .gpx files
     16- I only tell it that it can open .osm and .gpx files, basically out of laziness. Every file type needs a `.properties` file.
    1717- There are no icons for the gpx and osm files. Giving it the path to JOSM.icns in the `.properties` file causes an error ("java.nio.file.FileAlreadyExistsException: appimageoutput/JOSM.app/Contents/Resources/JOSM.icns") and a blank icon for JOSM.app. Hey, maybe I can finally create icons for .osm files on macOS :)
    1818- It includes *all* of the JRE, so the .app is a humongous 147MB. [jlink can be used to produce a jre with only the necessary parts](https://www.baeldung.com/jlink). Not including a JRE is, apparently, not possible. Considering how much of a pain it is to install Java and to debug different JREs, this might actually be a good thing