Skip to content

Commit

Permalink
build.py: define ignore_patterns (for desktop-only plugins) in buildS…
Browse files Browse the repository at this point in the history
…ettings
  • Loading branch information
johndoe committed Oct 9, 2019
1 parent 7d95b75 commit 3289575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ def saveScriptAndMeta(script, ourDir, filename, oldDir=None):
shutil.rmtree("mobile/assets/plugins")
except:
pass
ignore_patterns = settings.get('ignore_patterns') or []
ignore_patterns.append('*.meta.js')
shutil.copytree(os.path.join(outDir, "plugins"), "mobile/assets/plugins",
# do not include desktop-only plugins to mobile assets
ignore=shutil.ignore_patterns('*.meta.js',
'force-https*', 'speech-search*', 'basemap-cloudmade*',
'scroll-wheel-zoom-disable*'))
ignore=shutil.ignore_patterns(*ignore_patterns))

if buildMobile != 'copyonly':
# now launch 'ant' to build the mobile project
Expand Down
1 change: 1 addition & 0 deletions buildsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'resourceUrlBase': None,
'distUrlBase': None,
'buildMobile': 'debug',
'ignore_patterns': ['speech-search*', 'scroll-wheel-zoom-disable*'],
},


Expand Down

0 comments on commit 3289575

Please sign in to comment.