generate electron-api.json and upload with release
This commit is contained in:
		
					parent
					
						
							
								67c89b68d3
							
						
					
				
			
			
				commit
				
					
						8d201ae1ad
					
				
			
		
					 3 changed files with 6 additions and 2 deletions
				
			
		|  | @ -4,7 +4,7 @@ | |||
|   "devDependencies": { | ||||
|     "asar": "^0.11.0", | ||||
|     "electabul": "~0.0.4", | ||||
|     "electron-docs-linter": "^1.4.0", | ||||
|     "electron-docs-linter": "^1.6.2", | ||||
|     "request": "*", | ||||
|     "standard": "^7.1.2", | ||||
|     "standard-markdown": "^1.2.1" | ||||
|  | @ -34,7 +34,7 @@ | |||
|     "lint-cpp": "python ./script/cpplint.py", | ||||
|     "lint-py": "python ./script/pylint.py", | ||||
|     "lint-api-docs-js": "standard-markdown docs", | ||||
|     "lint-api-docs": "electron-docs-linter docs/api", | ||||
|     "lint-api-docs": "electron-docs-linter docs/api --version=$npm_package_version --outfile=out/electron-api.json", | ||||
|     "preinstall": "node -e 'process.exit(0)'", | ||||
|     "repl": "python ./script/start.py --interactive", | ||||
|     "start": "python ./script/start.py", | ||||
|  |  | |||
|  | @ -85,6 +85,7 @@ def main(): | |||
|   copy_chrome_binary('chromedriver') | ||||
|   copy_chrome_binary('mksnapshot') | ||||
|   copy_license() | ||||
|   copy_api_json() | ||||
| 
 | ||||
|   if PLATFORM == 'linux': | ||||
|     strip_binaries() | ||||
|  | @ -128,6 +129,8 @@ def copy_license(): | |||
|                DIST_DIR) | ||||
|   shutil.copy2(os.path.join(SOURCE_ROOT, 'LICENSE'), DIST_DIR) | ||||
| 
 | ||||
| def copy_api_json(): | ||||
|     shutil.copy2(os.path.join(OUT_DIR, 'electron-api.json'), DIST_DIR) | ||||
| 
 | ||||
| def strip_binaries(): | ||||
|   for binary in TARGET_BINARIES[PLATFORM]: | ||||
|  |  | |||
|  | @ -78,6 +78,7 @@ def main(): | |||
|   upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME)) | ||||
|   upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME)) | ||||
|   if PLATFORM == 'darwin': | ||||
|     upload_electron(github, release, os.path.join(DIST_DIR, 'electron-api.json')) | ||||
|     upload_electron(github, release, os.path.join(DIST_DIR, DSYM_NAME)) | ||||
|   elif PLATFORM == 'win32': | ||||
|     upload_electron(github, release, os.path.join(DIST_DIR, PDB_NAME)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zeke Sikelianos
				Zeke Sikelianos