Skip to content

Commit

Permalink
Instructions for use
Browse files Browse the repository at this point in the history
  • Loading branch information
lzell committed Sep 22, 2011
1 parent 1ad1775 commit 3a5fcf1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
14 changes: 12 additions & 2 deletions README
@@ -1,3 +1,13 @@
Make changes to Application project, then run:
./update_template
Copy the Application directory to:
~/Library/Application Support/Developer/Shared/Xcode/Project Templates/AppleTV

Now, when you create a new project in Xcode you will have an option for AppleTV Application.

After you create a new ATV application using this template, you must set the IP or hostname
of your apple tv in the target's build setting under ATV_ADDRESS.

This bundle is derived from Michael Gile's work:
http://mgile.com/post/10202555713/atvhelloworld-appletv2-1-click-build-and-deploy-xcode

If you modify this template and would like to update your system's template, run:
./update_template
10 changes: 6 additions & 4 deletions update_template
@@ -1,16 +1,18 @@
#!/bin/bash

ATV_TEMPLATE_PATH=~/"Library/Application Support/Developer/Shared/Xcode/Project Templates/AppleTV/Application"
ATV_TEMPLATE_PATH=~/"Library/Application Support/Developer/Shared/Xcode/Project Templates/AppleTV"
mkdir -p "$ATV_TEMPLATE_PATH"

ATV_APPLICATION_PATH=~/"Library/Application Support/Developer/Shared/Xcode/Project Templates/AppleTV/Application"

ls -palhG "$ATV_TEMPLATE_PATH"
ls -palhG "$ATV_APPLICATION_PATH"
echo -e "\n\nAbout to replace the above files, continue? (y/n)"
read -e CONT

if [ $CONT == "y" ]
then
rm -rf "$ATV_TEMPLATE_PATH"
cp -rf Application "$ATV_TEMPLATE_PATH"
rm -rf "$ATV_APPLICATION_PATH"
cp -rf Application "$ATV_APPLICATION_PATH"
else
echo "Not doing anything."
fi
Expand Down

0 comments on commit 3a5fcf1

Please sign in to comment.