Skip to content

Instantly share code, notes, and snippets.

@Tatsh
Created May 20, 2019 00:34
Show Gist options
  • Save Tatsh/4e064e36e898cfcf6dea11f7f57a5956 to your computer and use it in GitHub Desktop.
Save Tatsh/4e064e36e898cfcf6dea11f7f57a5956 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
SIGNING_IDENTITY='iPhone Distribution: Andrew Udvare (EU5R2QY9HJ)'
mkdir -p ~/dev/retroarch
cd ~/dev/retroarch
if ! [ -d retroarch ]; then
git clone https://github.com/libretro/RetroArch.git retroarch
fi
if ! [ -d libretro-super ]; then
git clone https://github.com/libretro/libretro-super
fi
pushd libretro-super
git up
./libretro-fetch.sh
./libretro-build-ios-arm64.sh snes9x2010 fceumm pcsx_rearmed \
mednafen_{gba,snes} bsnes mgba genesis_plus_gx handy hatari \
nestopia stella
codesign -fs "$SIGNING_IDENTITY" dist/ios-arm64/*.dylib
cp dist/ios-arm64/*.dylib ~/dev/retroarch/retroarch/pkg/apple/iOS/modules
popd
pushd retroarch
git up
xcodebuild -scheme RetroArchiOS11 -configuration Release -project pkg/apple/RetroArch_iOS11.xcodeproj/ -destination generic/platform=iOS archive -archivePath build/RetroArchiOS11.xcarchive || echo 'Use Xcode to archive this project.' >&2
xcodebuild -allowProvisioningUpdates -exportArchive -archivePath build/RetroArchiOS11.xcarchive -exportOptionsPlist ../export-options.plist -exportPath ~/Downloads/
rm -f ~/Downloads/Packaging.log ~/Downloads/ExportOptions.plist ~/Downloads/DistributionSummary.plist
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment