macOS CI fixes
parent
408128a138
commit
0548702043
|
@ -4,6 +4,6 @@ if echo $TRAVIS_TAG | grep ^v; then BUILD_TYPE=RelWithDebInfo; else BUILD_TYPE=D
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||||
make
|
make -j2
|
||||||
make test_solvespace
|
make test_solvespace
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
# app="bin/SolveSpace.app"
|
app="bin/SolveSpace.app"
|
||||||
dmg="bin/SolveSpace.dmg"
|
dmg="bin/SolveSpace.dmg"
|
||||||
bundle_id="com.solvespace.solvespace"
|
bundle_id="com.solvespace.solvespace"
|
||||||
|
|
||||||
|
@ -18,11 +18,16 @@ security unlock-keychain -p secret build.keychain
|
||||||
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PASSWORD -T /usr/bin/codesign
|
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PASSWORD -T /usr/bin/codesign
|
||||||
|
|
||||||
security set-key-partition-list -S apple-tool:,apple: -s -k secret build.keychain
|
security set-key-partition-list -S apple-tool:,apple: -s -k secret build.keychain
|
||||||
#security set-keychain-settings -t 3600 -u build.keychain
|
|
||||||
|
|
||||||
# check if all is good
|
# check if all is good
|
||||||
security find-identity -v
|
security find-identity -v
|
||||||
|
|
||||||
|
# sign the .app
|
||||||
|
codesign -s "${MACOS_DEVELOPER_ID}" --timestamp --options runtime -f --deep "${app}"
|
||||||
|
|
||||||
|
# create the .dmg from the signed .app
|
||||||
|
hdiutil create -srcfolder "${app}" "${dmg}"
|
||||||
|
|
||||||
# sign the .dmg
|
# sign the .dmg
|
||||||
codesign -s "${MACOS_DEVELOPER_ID}" --timestamp --options runtime -f --deep "${dmg}"
|
codesign -s "${MACOS_DEVELOPER_ID}" --timestamp --options runtime -f --deep "${dmg}"
|
||||||
|
|
||||||
|
|
|
@ -410,14 +410,4 @@ if(APPLE)
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:solvespace-cli> ${bundle_bin}
|
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:solvespace-cli> ${bundle_bin}
|
||||||
COMMENT "Bundling executable solvespace-cli"
|
COMMENT "Bundling executable solvespace-cli"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${EXECUTABLE_OUTPUT_PATH}/${bundle}.dmg
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove ${EXECUTABLE_OUTPUT_PATH}/${bundle}.dmg
|
|
||||||
COMMAND hdiutil create -srcfolder ${EXECUTABLE_OUTPUT_PATH}/${bundle}.app
|
|
||||||
${EXECUTABLE_OUTPUT_PATH}/${bundle}.dmg
|
|
||||||
DEPENDS solvespace
|
|
||||||
COMMENT "Building ${bundle}.dmg"
|
|
||||||
VERBATIM)
|
|
||||||
add_custom_target(${bundle}-dmg ALL
|
|
||||||
DEPENDS ${EXECUTABLE_OUTPUT_PATH}/${bundle}.dmg)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue