2018-09-03 01:57:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
mkdir -p ~/.ssh
|
|
|
|
|
|
|
|
chmod 700 ~/.ssh
|
|
|
|
|
|
|
|
echo "Decrypting SSH key..."
|
|
|
|
|
|
|
|
openssl aes-256-cbc -K $encrypted_e9bb4da59666_key -iv $encrypted_e9bb4da59666_iv -in travis-deploy-key.enc -out ~/.ssh/id_rsa -d
|
|
|
|
|
|
|
|
chmod 600 ~/.ssh/id_rsa
|
|
|
|
|
2018-09-03 23:50:04 +00:00
|
|
|
mkdir ~/dist
|
|
|
|
cd ~/dist
|
|
|
|
|
|
|
|
echo "Copying binary into dist folder..."
|
|
|
|
|
|
|
|
cp -rv ~/libretro-super/retroarch/pkg/apple/build/Release/RetroArch.app .
|
|
|
|
|
|
|
|
echo "Downloading assets..."
|
|
|
|
|
|
|
|
cd RetroArch.app/Contents/Resources/
|
|
|
|
curl -O http://bot.libretro.com/assets/frontend/bundle.zip
|
|
|
|
unzip -o bundle.zip
|
|
|
|
rm -rf bundle.zip
|
|
|
|
|
2018-09-03 01:57:06 +00:00
|
|
|
echo "Creating DMG image..."
|
|
|
|
|
2018-09-03 23:50:04 +00:00
|
|
|
cd ~/dist
|
2018-09-03 01:57:06 +00:00
|
|
|
|
|
|
|
FILENAME=$(date +%F)_RetroArch_Metal.dmg
|
|
|
|
|
2018-09-03 23:50:04 +00:00
|
|
|
hdiutil create -volname RetroArch -srcfolder ./ -ov -format UDZO ~/${FILENAME}
|
2018-09-03 01:57:06 +00:00
|
|
|
|
|
|
|
echo "Uploading to server..."
|
|
|
|
|
2018-09-03 23:50:04 +00:00
|
|
|
rsync -avhP -e 'ssh -p 12346 -o StrictHostKeyChecking=no' ~/${FILENAME} travis@bot.libretro.com:~/nightly/apple/osx/x86_64/
|