danb
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2013
01:50 PM
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?
5 REPLIES 5


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2013
02:32 PM
Re: How to ignore files when building channel?
The easiest way is probably to add an --exclude directive to your zip command
danb
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2013
11:47 AM
Re: How to ignore files when building channel?
There is nothing I can add to the Makefile to ignore files or directories?

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2013
01:07 PM
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\*
#
danb
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2013
03:32 PM
Re: How to ignore files when building channel?
Thanks! Worked great.

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2013
04:25 PM
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
- Joel