Here's a bash script to zip and deploy a Scenegraph app
#you need to define username, password, and IP to match your environment
user=myUsername
pass=myPassword
roku_ip=x.x.x.x
#delete previous zips
rm -fv out/*
#generate zip for device
zip -r out/app.zip manifest source images components
#push zip to Roku
uagent='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)';
curl --user $user:$pass --digest --verbose --max-time 5 --user-agent "$uagent" --form archive=@app.zip --form "mysubmit=Replace" "http://$roku_ip/plugin_install" > /dev/null
exit 0