Changeset 17373 in josm for trunk/native/macosx
- Timestamp:
- 2020-11-28T17:39:56+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/native/macosx/macos-jpackage.sh
r17244 r17373 18 18 19 19 mkdir app 20 jpackage -n "JOSM" --input dist --main-jar josm-custom.jar \21 --main-class org.openstreetmap.josm.gui.MainApplication \22 --icon ./native/macosx/JOSM.icns --type app-image --dest app \23 --java-options "-Xmx8192m" --app-version $1 \24 --copyright "JOSM, and all its integral parts, are released under the GNU General Public License v2 or later" \25 --vendor "https://josm.openstreetmap.de" \26 --file-associations native/macosx/bz2.properties \27 --file-associations native/macosx/geojson.properties \28 --file-associations native/macosx/gpx.properties \29 --file-associations native/macosx/gz.properties \30 --file-associations native/macosx/jos.properties \31 --file-associations native/macosx/joz.properties \32 --file-associations native/macosx/osm.properties \33 --file-associations native/macosx/zip.properties \34 --add-modules java.base,java.datatransfer,java.desktop,java.logging,java.management,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.sql,java.transaction.xa,java.xml,jdk.crypto.ec,jdk.jfr,jdk.jsobject,jdk.unsupported,jdk.unsupported.desktop,jdk.xml.dom35 36 echo "Building done."37 20 38 21 if [[ $IMPORT_AND_UNLOCK_KEYCHAIN == 1 ]]; then … … 53 36 54 37 KEYCHAIN=build.keychain 38 KEYCHAINPATH=~/Library/Keychains/$KEYCHAIN-db 55 39 KEYCHAIN_PW=`head /dev/urandom | base64 | head -c 20` 56 40 CERTIFICATE_P12=certificate.p12 … … 67 51 fi 68 52 69 echo "Signing App Bundle…" 53 echo "Building and signin app" 54 jpackage -n "JOSM" --input dist --main-jar josm-custom.jar \ 55 --main-class org.openstreetmap.josm.gui.MainApplication \ 56 --icon ./native/macosx/JOSM.icns --type app-image --dest app \ 57 --java-options "-Xmx8192m" \ 58 --java-options "-Dapple.awt.application.appearance=system" \ 59 --app-version $1 \ 60 --copyright "JOSM, and all its integral parts, are released under the GNU General Public License v2 or later" \ 61 --vendor "https://josm.openstreetmap.de" \ 62 --mac-sign \ 63 --mac-package-identifier de.openstreetmap.josm \ 64 --mac-package-signing-prefix de.openstreetmap.josm \ 65 --mac-signing-keychain $KEYCHAINPATH \ 66 --file-associations native/macosx/bz2.properties \ 67 --file-associations native/macosx/geojson.properties \ 68 --file-associations native/macosx/gpx.properties \ 69 --file-associations native/macosx/gz.properties \ 70 --file-associations native/macosx/jos.properties \ 71 --file-associations native/macosx/joz.properties \ 72 --file-associations native/macosx/osm.properties \ 73 --file-associations native/macosx/zip.properties \ 74 --add-modules java.base,java.datatransfer,java.desktop,java.logging,java.management,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.sql,java.transaction.xa,java.xml,jdk.crypto.ec,jdk.jfr,jdk.jsobject,jdk.unsupported,jdk.unsupported.desktop,jdk.xml.dom 70 75 71 codesign -vvv --timestamp --options runtime --deep --force --sign "$SIGNING_KEY_NAME" \ 72 app/JOSM.app/Contents/MacOS/JOSM \ 73 app/JOSM.app/Contents/runtime/Contents/Home/lib/*.jar \ 74 app/JOSM.app/Contents/runtime/Contents/Home/lib/*.dylib \ 75 app/JOSM.app/Contents/runtime/Contents/MacOS/libjli.dylib 76 77 codesign -vvv --timestamp --entitlements native/macosx/josm.entitlements --options runtime --force --sign "$SIGNING_KEY_NAME" app/JOSM.app 78 79 codesign -vvv app/JOSM.app 76 echo "Building done." 80 77 81 78 echo "Preparing for notarization"
Note:
See TracChangeset
for help on using the changeset viewer.