Forum Discussion

danb's avatar
danb
Visitor
12 years ago

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

  • The easiest way is probably to add an --exclude directive to your zip command
  • There is nothing I can add to the Makefile to ignore files or directories?
  • 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\*
    #
  • Good things to exclude include .zip files, .PSD files, .DS_Store files, .svn files and folders, thumbs.db files etc.

    - Joel