Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Unified Diff: platform_tools/ios/bin/ios_setup.sh

Issue 1855223002: Fixes for iOS Swarming bot (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rm Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « platform_tools/ios/bin/ios_ninja ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/ios/bin/ios_setup.sh
diff --git a/platform_tools/ios/bin/ios_setup.sh b/platform_tools/ios/bin/ios_setup.sh
index dbfed7c26fea8541c1e80b74d207ef8a0ddf3e84..49a2228192874afdc20ff738097fca72b549e876 100755
--- a/platform_tools/ios/bin/ios_setup.sh
+++ b/platform_tools/ios/bin/ios_setup.sh
@@ -41,19 +41,29 @@ if [[ -z "$SKIA_OUT" ]]; then
SKIA_OUT="$SKIA_SRC_DIR/out"
fi
+# Name of the iOS app.
+IOS_APP=iOSShell.ipa
+
+# Location of the compiled iOS app.
+IOS_APP_PATH=${SKIA_OUT}/${BUILDTYPE}/${IOS_APP}
+
+
ios_uninstall_app() {
ideviceinstaller -U "$IOS_BUNDLE_ID"
}
-ios_install_app() {
+ios_package_app() {
rm -rf $IOS_PCKG_DIR
mkdir -p $IOS_PCKG_DIR/Payload # this directory must be named 'Payload'
cp -rf "${SKIA_SRC_DIR}/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app" "${IOS_PCKG_DIR}/Payload/"
- local RET_DIR=`pwd`
- cd $IOS_PCKG_DIR
- zip -r iOSShell.ipa Payload
- ideviceinstaller -i ./iOSShell.ipa
- cd $RET_DIR
+ pushd $IOS_PCKG_DIR
+ zip -r ${IOS_APP} Payload
+ cp ${IOS_APP} ${IOS_APP_PATH}
+ popd
+}
+
+ios_install_app() {
+ ideviceinstaller -i ${IOS_APP_PATH}
}
ios_rm() {
« no previous file with comments | « platform_tools/ios/bin/ios_ninja ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698