Forum Discussion

SECHIN_SUNNY's avatar
8 years ago

Makefile in roku

Can anyone please tell me on how to deploy a roku .zip file without using the installation plugin . I have seen on many place using the makefile  , but how to implement it in my codes.

7 Replies

  • 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
  • Another option, for anyone using the Atom text editor, is to use the roku-develop package, which will automatically discover Rokus on the local network, and create/deploy .zip files to any/all of those Rokus.
  • sorry for this question , but i don't have much info on bash, can anyone tell me on how to use or deploy bash file to install an aplication.
  • yes i understood , but i want to gain some knowledge regarding installation through bash , please let me know how to implement the makefile code or app.mk file , pls