macos: add a tokend postfix for dmg
This commit is contained in:
parent
b9080c16d6
commit
26fac9592d
|
@ -5,6 +5,7 @@ matrix:
|
||||||
- compiler: clang
|
- compiler: clang
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode9.4
|
osx_image: xcode9.4
|
||||||
|
env: DO_PUSH_ARTIFACT=yes
|
||||||
- compiler: clang
|
- compiler: clang
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode12.2
|
osx_image: xcode12.2
|
||||||
|
|
|
@ -140,9 +140,12 @@ if (( $(xcodebuild -version | sed -En 's/Xcode[[:space:]]+([0-9]+)(\.[0-9]*)*/\1
|
||||||
else
|
else
|
||||||
xcodebuild -target OpenSC -configuration Deployment -project OpenSC.tokend/Tokend.xcodeproj install DSTROOT=${BUILDPATH}/target_tokend
|
xcodebuild -target OpenSC -configuration Deployment -project OpenSC.tokend/Tokend.xcodeproj install DSTROOT=${BUILDPATH}/target_tokend
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
TOKEND="-tokend"
|
||||||
else
|
else
|
||||||
# https://github.com/OpenSC/OpenSC.tokend/issues/33
|
# https://github.com/OpenSC/OpenSC.tokend/issues/33
|
||||||
mkdir -p ${BUILDPATH}/target_tokend
|
mkdir -p ${BUILDPATH}/target_tokend
|
||||||
|
TOKEND=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if ! test -e $BUILDPATH/target/Library/Security/tokend/OpenSC.tokend/Contents/Resources/Applications/terminal-notifier.app; then
|
#if ! test -e $BUILDPATH/target/Library/Security/tokend/OpenSC.tokend/Contents/Resources/Applications/terminal-notifier.app; then
|
||||||
|
@ -232,9 +235,9 @@ if test -n "${CODE_SIGN_IDENTITY}"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create .dmg
|
# Create .dmg
|
||||||
rm -f OpenSC-@PACKAGE_VERSION@.dmg
|
rm -f OpenSC-@PACKAGE_VERSION@$TOKEND.dmg
|
||||||
i=0
|
i=0
|
||||||
while ! hdiutil create -srcfolder "${imagedir}" -volname "@PACKAGE_NAME@" -fs JHFS+ OpenSC-@PACKAGE_VERSION@.dmg
|
while ! hdiutil create -srcfolder "${imagedir}" -volname "@PACKAGE_NAME@" -fs JHFS+ OpenSC-@PACKAGE_VERSION@$TOKEND.dmg
|
||||||
do
|
do
|
||||||
i=$[$i+1]
|
i=$[$i+1]
|
||||||
if [ $i -gt 2 ]
|
if [ $i -gt 2 ]
|
||||||
|
|
Loading…
Reference in New Issue