Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
danb
Visitor

How to ignore files when building channel?

I have my Roku channel checked into github and thus have a .git folder in my working directory. The .git folder is getting packaged with the channel when I build (as well as other mac os files such as .DS_Store). How do I ignore these files when I build using make?
0 Kudos
5 REPLIES 5
RokuChris
Roku Employee
Roku Employee

Re: How to ignore files when building channel?

The easiest way is probably to add an --exclude directive to your zip command
0 Kudos
danb
Visitor

Re: How to ignore files when building channel?

There is nothing I can add to the Makefile to ignore files or directories?
0 Kudos
RokuMarkn
Visitor

Re: How to ignore files when building channel?

If you're using app.mk, the comment at the beginning of the file describes how to add exclude parameters to the zip command.


# to exclude certain files from being added to the zipfile during packaging
# include a line like this:ZIP_EXCLUDE= -x keys\*
# that will exclude any file who's name begins with 'keys'
# to exclude using more than one pattern use additional '-x <pattern>' arguments
# ZIP_EXCLUDE= -x \*.pkg -x storeassets\*
#
0 Kudos
danb
Visitor

Re: How to ignore files when building channel?

Thanks! Worked great.
0 Kudos
RokuJoel
Binge Watcher

Re: How to ignore files when building channel?

Good things to exclude include .zip files, .PSD files, .DS_Store files, .svn files and folders, thumbs.db files etc.

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.