Changeset 18146 in josm
- Timestamp:
- 2021-08-21T00:19:29+02:00 (3 years ago)
- Location:
- trunk/native
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/native/macosx/macos-jpackage.sh
r18138 r18146 7 7 # CERT_MACOS_PW Password for that certificate 8 8 9 set -Eeo upipefail9 set -Eeo pipefail 10 10 11 11 # Don't show one time passwords … … 28 28 then 29 29 echo "CERT_MACOS_P12, CERT_MACOS_PW and APPLE_ID_PW are not set in the environment." 30 echo " I will create a JOSM.app but I won't attempt to sign and notarize it."30 echo "A JOSM.app will be created but not signed nor notarized." 31 31 SIGNAPP=false 32 32 else … … 49 49 fi 50 50 51 set -u 52 51 53 if $SIGNAPP; then 52 54 JPACKAGEOPTIONS="--mac-sign --mac-signing-keychain $KEYCHAINPATH" … … 56 58 57 59 echo "Building and signing app" 58 60 jpackage $JPACKAGEOPTIONS -n "JOSM" --input dist --main-jar josm-custom.jar \ 59 61 --main-class org.openstreetmap.josm.gui.MainApplication \ 60 62 --icon ./native/macosx/JOSM.icns --type app-image --dest app \ -
trunk/native/windows/win-jpackage.sh
r18138 r18146 1 1 #!/bin/bash 2 2 3 set -Eeou pipefail 3 ## Expected environment, passed from GitHub secrets: 4 # https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets 5 # SIGN_CERT PKCS12 certificate keystore used for code signing, base64 encoded 6 # SIGN_STOREPASS Password for that keystore 7 # SIGN_TSA URL of Time Stamping Authority to use 8 9 set -Eeo pipefail 4 10 5 11 # Don't show one time passwords … … 16 22 mkdir app 17 23 24 if [ -z "$SIGN_CERT" ] || [ -z "$SIGN_STOREPASS" ] || [ -z "$SIGN_TSA" ] 25 then 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." 28 SIGNAPP=false 29 else 30 SIGNAPP=true 31 fi 32 33 set -u 34 18 35 JPACKAGEOPTIONS="" 19 36 20 echo "Building app"21 37 echo "Building MSI" 38 jpackage $JPACKAGEOPTIONS -n "JOSM" --input dist --main-jar josm-custom.jar \ 22 39 --main-class org.openstreetmap.josm.gui.MainApplication \ 23 40 --icon ./native/windows/logo.ico --type msi --dest app \ … … 48 65 49 66 echo "Building done." 67 68 if $SIGNAPP; then 69 CERTIFICATE_P12=certificate.p12 70 echo "$SIGN_CERT" | base64 --decode > $CERTIFICATE_P12 71 signtool 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" 72 rm $CERTIFICATE_P12 73 fi
Note:
See TracChangeset
for help on using the changeset viewer.