Changeset 18155 in josm for trunk/native
- Timestamp:
- 2021-08-22T02:57:40+02:00 (3 years ago)
- Location:
- trunk/native/windows
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/native/windows/win-jpackage.sh
r18153 r18155 18 18 fi 19 19 20 echo "Building JOSM Windows Installer package "20 echo "Building JOSM Windows Installer packages" 21 21 22 22 mkdir app … … 25 25 then 26 26 echo "SIGN_CERT, SIGN_STOREPASS and SIGN_TSA are not set in the environment." 27 echo "A JOSM. msi will be created but not signed."27 echo "A JOSM.exe and JOSM.msi will be created but not signed." 28 28 SIGNAPP=false 29 29 else … … 35 35 JPACKAGEOPTIONS="" 36 36 37 echo "Building MSI" 38 jpackage $JPACKAGEOPTIONS -n "JOSM" --input dist --main-jar josm-custom.jar \ 37 echo "Building EXE and MSI" 38 for type in exe msi 39 do 40 jpackage $JPACKAGEOPTIONS -n "JOSM" --input dist --main-jar josm-custom.jar \ 39 41 --main-class org.openstreetmap.josm.gui.MainApplication \ 40 --icon ./native/windows/logo.ico --type msi--dest app \42 --icon ./native/windows/logo.ico --type $type --dest app \ 41 43 --java-options "--add-exports=java.base/sun.security.action=ALL-UNNAMED" \ 42 44 --java-options "--add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED" \ … … 60 62 --file-associations native/file-associations/osm.properties \ 61 63 --file-associations native/file-associations/zip.properties \ 64 --add-launcher HWConsole=native/windows/MLConsole.properties \ 62 65 --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 66 done 63 67 68 mv app/JOSM-1.5.$1.exe app/JOSM.exe 64 69 mv app/JOSM-1.5.$1.msi app/JOSM.msi 70 71 # Workaround to https://bugs.openjdk.java.net/browse/JDK-8261845 72 # to remove after we switch to Java 17+ for jpackage builds 73 chmod u+w app/JOSM.exe 65 74 66 75 echo "Building done." … … 69 78 CERTIFICATE_P12=certificate.p12 70 79 echo "$SIGN_CERT" | base64 --decode > $CERTIFICATE_P12 71 signtool.exe sign //f $CERTIFICATE_P12 //d "Java OpenStreetMap Editor" //du "https://josm.openstreetmap.de" //p "$SIGN_STOREPASS" //v //fd SHA256 //tr "$SIGN_TSA" //td SHA256 "app/JOSM.msi" 80 for ext in exe msi 81 do 82 signtool.exe sign //f $CERTIFICATE_P12 //d "Java OpenStreetMap Editor" //du "https://josm.openstreetmap.de" //p "$SIGN_STOREPASS" //v //fd SHA256 //tr "$SIGN_TSA" //td SHA256 "app/JOSM.$ext" 83 done 72 84 rm $CERTIFICATE_P12 73 85 fi
Note:
See TracChangeset
for help on using the changeset viewer.