From: Zeke Sikelianos Date: Wed, 18 Jan 2017 19:52:09 +0000 (-0800) Subject: fix syntax and use relative path to electron-api.json target X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6af7cfff33b682f4b4435c592f4394075c9f7e09;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git fix syntax and use relative path to electron-api.json target --- diff --git a/script/create-dist.py b/script/create-dist.py index fa66e34..f777d7a 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -132,9 +132,9 @@ def copy_license(): shutil.copy2(os.path.join(SOURCE_ROOT, 'LICENSE'), DIST_DIR) def create_api_json_schema(): - outfile = os.path.join(DIST_DIR, 'electron-api.json') - execute(['electron-docs-linter', '--outfile={0}'.format(outfile)], - '--version={}'.format(ELECTRON_VERSION.replace('v', ''))) + outfile = os.path.relpath(os.path.join(DIST_DIR, 'electron-api.json')) + execute(['electron-docs-linter', 'docs', '--outfile={0}'.format(outfile), + '--version={}'.format(ELECTRON_VERSION.replace('v', ''))]) def strip_binaries(): for binary in TARGET_BINARIES[PLATFORM]: