darling-system_cmds/dynamic_pager.tproj/generate_plist.sh
2017-02-27 18:13:37 -08:00

17 lines
314 B
Bash

#!/bin/sh
set -e
set -x
cp "${SCRIPT_INPUT_FILE_0}" "${SCRIPT_OUTPUT_FILE_0}"
case "$PLATFORM_NAME" in
iphone*|appletv*|watch*)
/usr/libexec/PlistBuddy -c "Add :LaunchOnlyOnce bool true" "${SCRIPT_OUTPUT_FILE_0}"
;;
macosx)
;;
*)
echo "Unsupported platform: $PLATFORM_NAME"
exit 1
;;
esac