Changeset 19032 in josm


Ignore:
Timestamp:
2024-04-04T23:42:54+02:00 (8 months ago)
Author:
taylor.smock
Message:

See #21533: Native Apple Silicon Support

Try to fix code signatures for merged binaries (again).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/native/macosx/macos-jpackage.sh

    r19031 r19032  
    106106    llvm-lipo-15 -create -output "${1}" "${2}" "${3}"
    107107  fi
    108   if [ -n "${KEYCHAINPATH}" ]; then
    109     codesign --remove-signature "${1}"
    110     codesign --sign "FOSSGIS e.V." \
    111       --force \
    112       --keychain "${KEYCHAINPATH}" \
    113       --timestamp \
    114       --prefix "de.openstreetmap.josm" \
    115       --identifier "de.openstreetmap.josm" \
    116       --options runtime \
    117       --verbose=4 "${1}"
    118   fi
    119108}
    120109
     
    161150  do_signapp "JOSM_${first}"
    162151  do_signapp "JOSM_${second}"
     152  if [ -n "${KEYCHAINPATH}" ]; then
     153    function do_codesign() {
     154      codesign --sign "FOSSGIS e.V." \
     155        --force \
     156        --keychain "${KEYCHAINPATH}" \
     157        --timestamp \
     158        --prefix "de.openstreetmap.josm" \
     159        --identifier "${2}" \
     160        --options runtime \
     161        --verbose=4 "${1}"
     162    }
     163    do_codesign app/JOSM.app/Contents/runtime "com.oracle.java.de.openstreetmap.josm"
     164    do_codesign app/JOSM.app/ "de.openstreetmap.josm"
     165  fi
    163166fi
    164167do_signapp JOSM
Note: See TracChangeset for help on using the changeset viewer.