Skip to content

Commit 15c9be0

Browse files
committed
Add option --no-runtime for merge script
1 parent 89c4df8 commit 15c9be0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/helper/merge.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ def main():
252252
action='store_true',
253253
dest='debug',
254254
help='print debug log (default: %(default)s)')
255+
parser.add_argument('-n', '--no-runtime', action='store_true',
256+
help='Ignore runtime files')
255257
parser.add_argument('path', nargs='+',
256258
help="Path or obfuscated script")
257259

@@ -280,9 +282,10 @@ def main():
280282
os.path.join(output, name))
281283
logging.info('Merging obfuscated scripts OK')
282284

283-
logging.info('Merging runtime files...')
284-
merge_runtimes(args.path, output)
285-
logging.info('Merging runtime files OK')
285+
if not args.no_runtime:
286+
logging.info('Merging runtime files...')
287+
merge_runtimes(args.path, output)
288+
logging.info('Merging runtime files OK')
286289

287290
logger.info('Merge all the scripts to %s successfully', output)
288291

0 commit comments

Comments
 (0)