Created
November 3, 2020 03:39
-
-
Save Tatsh/9f68b7c941ff044fcc0bbce685b06773 to your computer and use it in GitHub Desktop.
Build RetroArch scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
SIGNING_IDENTITY=- | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SIGNING_IDENTITY=- | |
setup() { | |
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 | |
} | |
build0() { | |
pushd libretro-super || exit 1 | |
git up | |
./libretro-fetch.sh | |
./libretro-build.sh stella snes9x | |
codesign -fs "$SIGNING_IDENTITY" dist/osx-x86_64/*.dylib | |
cp dist/osx-x86_64/*.dylib ~/dev/retroarch/retroarch/pkg/apple/OSX/modules | |
popd || exit 1 | |
} | |
build1() { | |
pushd retroarch || exit 1 | |
git up | |
xcodebuild -scheme RetroArch -configuration Release -workspace pkg/apple/RetroArch.xcworkspace CODE_SIGN_IDENTITY="$SIGNING_IDENTITY" | |
popd || exit 1 | |
} | |
setup | |
build0 | |
build1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>method</key> | |
<string>app-store</string> | |
<key>teamID</key> | |
<string>TEAM_ID</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment