Move the logic to the shell script
This commit is contained in:
parent
944e89bdc8
commit
309045e0ac
12
.travis.yml
12
.travis.yml
|
@ -67,19 +67,7 @@ matrix:
|
||||||
script:
|
script:
|
||||||
- brew update-reset
|
- brew update-reset
|
||||||
- brew install --force-bottle qt5
|
- brew install --force-bottle qt5
|
||||||
- security create-keychain -p travis build.keychain
|
|
||||||
- security default-keychain -s build.keychain
|
|
||||||
- security unlock-keychain -p travis build.keychain
|
|
||||||
- echo $OSX_CERT | base64 --decode > dev.p12
|
|
||||||
- security import dev.p12 -k build.keychain -P $OSX_CERT_PASS -T /usr/bin/codesign
|
|
||||||
- rm dev.p12
|
|
||||||
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k travis build.keychain
|
|
||||||
- xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj
|
- xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj
|
||||||
- REQUESTUUID=$(xcrun altool --notarize-app -t osx -f pkg/apple/build/Release/RetroArch.app --primary-bundle-id libretro.RetroArch -u $APPLE_ID -p $APPLE_ID_PASS -itc_provider ZE9XE938Z2 | awk '/RequestUUID/ { print $NF; }')
|
|
||||||
- sleep 100
|
|
||||||
- xcrun altool --notarization-info $REQUESTUUID -u $APPLE_ID -p $APPLE_ID_PASS -ascprovider ZE9XE938Z2
|
|
||||||
- xcrun stapler staple pkg/apple/build/Release/RetroArch.app
|
|
||||||
- xcrun stapler validate pkg/apple/build/Release/RetroArch.app
|
|
||||||
deploy:
|
deploy:
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
provider: script
|
provider: script
|
||||||
|
|
|
@ -17,6 +17,18 @@ echo "Copying binary into dist folder..."
|
||||||
|
|
||||||
cp -rv ${TRAVIS_BUILD_DIR}/pkg/apple/build/Release/RetroArch.app .
|
cp -rv ${TRAVIS_BUILD_DIR}/pkg/apple/build/Release/RetroArch.app .
|
||||||
|
|
||||||
|
echo "Code signing..."
|
||||||
|
|
||||||
|
security create-keychain -p travis build.keychain
|
||||||
|
security default-keychain -s build.keychain
|
||||||
|
security unlock-keychain -p travis build.keychain
|
||||||
|
echo $OSX_CERT | base64 --decode > dev.p12
|
||||||
|
security import dev.p12 -k build.keychain -P $OSX_CERT_PASS -T /usr/bin/codesign
|
||||||
|
rm dev.p12
|
||||||
|
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k travis build.keychain
|
||||||
|
codesign --force --verbose --timestamp --sign "7069CC8A4AE9AFF0493CC539BBA4FA345F0A668B" RetroArch.app/Contents/MacOS/RetroArch
|
||||||
|
codesign --force --verbose --timestamp --sign "7069CC8A4AE9AFF0493CC539BBA4FA345F0A668B" RetroArch.app
|
||||||
|
|
||||||
echo "Downloading assets..."
|
echo "Downloading assets..."
|
||||||
|
|
||||||
cd RetroArch.app/Contents/Resources/
|
cd RetroArch.app/Contents/Resources/
|
||||||
|
@ -33,6 +45,15 @@ FILENAME=$(date +%F)_RetroArch_Metal.dmg
|
||||||
hdiutil create -volname RetroArch -srcfolder ./ -ov -format UDZO ~/${FILENAME}
|
hdiutil create -volname RetroArch -srcfolder ./ -ov -format UDZO ~/${FILENAME}
|
||||||
cp -f ~/${FILENAME} ~/RetroArch_Metal.dmg
|
cp -f ~/${FILENAME} ~/RetroArch_Metal.dmg
|
||||||
|
|
||||||
|
echo "Notarizing DMG..."
|
||||||
|
|
||||||
|
codesign --force --verbose --timestamp --sign "7069CC8A4AE9AFF0493CC539BBA4FA345F0A668B" ~/RetroArch_Metal.dmg
|
||||||
|
REQUESTUUID=$(xcrun altool --notarize-app -t osx -f ~/RetroArch_Metal.dmg --primary-bundle-id libretro.RetroArch -u $APPLE_ID -p $APPLE_ID_PASS -itc_provider ZE9XE938Z2 | awk '/RequestUUID/ { print $NF; }')
|
||||||
|
sleep 100
|
||||||
|
xcrun altool --notarization-info $REQUESTUUID -u $APPLE_ID -p $APPLE_ID_PASS -ascprovider ZE9XE938Z2
|
||||||
|
xcrun stapler staple ~/RetroArch_Metal.dmg
|
||||||
|
xcrun stapler validate ~/RetroArch_Metal.dmg
|
||||||
|
|
||||||
echo "Uploading to server..."
|
echo "Uploading to server..."
|
||||||
|
|
||||||
rsync -avhP -e 'ssh -p 12346 -o StrictHostKeyChecking=no' ~/${FILENAME} travis@bot.libretro.com:~/nightly/apple/osx/x86_64/
|
rsync -avhP -e 'ssh -p 12346 -o StrictHostKeyChecking=no' ~/${FILENAME} travis@bot.libretro.com:~/nightly/apple/osx/x86_64/
|
||||||
|
|
Loading…
Reference in New Issue