Skip to content

Commit

Permalink
Ignoring specific files that are not part of the app logic during IPA…
Browse files Browse the repository at this point in the history
… build
  • Loading branch information
as0ler committed Feb 10, 2022
1 parent 962cb9b commit 0b8792e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion r2flutch/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
PREFIX = '/r2f'
APP_BUNDLE_BASE_PATH = '%s/AppBundle' % PREFIX
DEVICE_PATH = '%s/Device' % PREFIX
IGNORED_FILES = ['.gitkeep', '.gitignore']


def set_block_size(r2f, blocksize):
Expand All @@ -32,7 +33,8 @@ def copy_application_bundle(r2f, app_content, dest, debug_enabled):
os.makedirs(dest)
print_console('Copy App Bundle to disk')
for filepath in tqdm(app_content):
get_file(r2f, filepath, dest, debug_enabled)
if os.path.basename(filepath) not in IGNORED_FILES:
get_file(r2f, filepath, dest, debug_enabled)


def download_module(r2f, module_path, dest_path):
Expand Down

0 comments on commit 0b8792e

Please sign in to comment.