Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
EnTerr
Level 8

Lightweight deployment script for Windows

This question made me wonder about writing a Windows equivalent of this script i use on Mac to build&deploy to Roku box.

I like to have as little "friction"/dependencies for people as reasonably possible - but the thing is, stock Windows has neither make nor zip nor curl out of the box. So the question is, can something be done for that, short of a "You wanted a banana but what you got was a gorilla holding the banana and the entire jungle" syndrome (i.e. install some Unix subsystem flavor or get eclipsed).

I did some research and seems that it could potentially be done, by say writing a PowerShell script, one should be able to do zipping and file upload, and result filtering. Yet my PowerShell king-fu is non-existent. So i wonder - has somebody already done this? Like write a deployment script that works on a vanilla Windows?
0 Kudos
2 Replies
renojim
Level 8

Re: Lightweight deployment script for Windows

I've never tried to create one and PowerShell is a beast.  It seems far easier to just download one of the curl executables for Windows.  I used to use netcat, but had to change to curl when they added that stupid password requirement to sideload.  curl combined with a command line zip utility (I use pkzip25 which can probably still be found floating around on the Internet; 7zip would also work) makes a batch file pretty trivial to create.

-JT
0 Kudos
NND
Level 7

Re: Lightweight deployment script for Windows

If you have W10 you can enable Bash on Windows. Very handy.
For myself I've made nodejs script to handle deployment. It isn't small but it does handle more complex deployment scenarios. 
0 Kudos