"TheEndless" wrote:
This blog post has a link to a zip with the latest examples and makefile (app.mk in the examples\source folder): http://blog.roku.com/developer/2013/10/ ... velopment/
Thanks... but all example ZIPs there are circa 2012-01-06, which is 2 years old - and all examples on SourceForge are newer than that - yet miss makefiles.
@Roku*,
what is the definitive source to get current, working, complete examples?
In the mean time, this is a simple `run` script i whipped (run from project's parent directory):
#!/bin/bash
# build
cd "$1"
zip -FS -9 -r ../bundle *
cd ..
# deploy
curl --user rokudev:nuisance --anyauth -sS -F "mysubmit=Install" -F "archive=@bundle.zip" -F "passwd=" http://$ROKU_DEV_TARGET/plugin_install | grep -Po '(?<=<font color="red">).*' | sed 's/<\/font>//'
I commend the
- "-FS" zip switch (makes "re-build" much faster) and it also "cleans" previous project left-overs
- "--anyauth" in curl (vs the blog suggested running curl no auth, checking for 401 and running second time --digest). The problem we are solving: --digest does not work on fw3; --anyauth works everywhere