Skip to content

Commit

Permalink
Build CLI tool for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
gz-c committed Oct 13, 2018
1 parent 8179044 commit c111164
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ electron/.gox_output
electron/.electron_output
electron/.standalone_output
electron/.daemon_output
electron/.cli_output
# Do not ignore the icons folder
!electron/build
!electron/build/icons
Expand Down
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,17 @@ release-daemon: ## Build daemon apps. Use osarch=${osarch} to specify the platfo
cd $(ELECTRON_DIR) && ./build-daemon-release.sh ${osarch}
@echo release files are in the folder of electron/release

clean-release: ## Clean dist files and delete all builds in electron/release
rm -r $(ELECTRON_DIR)/release
release-cli: ## Build CLI apps. Use osarch=${osarch} to specify the platform. Example: 'make release-cli osarch=darwin/amd64' Supported architectures are the same as 'release' command.
cd $(ELECTRON_DIR) && ./build-cli-release.sh ${osarch}
@echo release files are in the folder of electron/release

clean-release: ## Remove all electron build artifacts
rm -rf $(ELECTRON_DIR)/release
rm -rf $(ELECTRON_DIR)/.gox_output
rm -rf $(ELECTRON_DIR)/.daemon_output
rm -rf $(ELECTRON_DIR)/.cli_output
rm -rf $(ELECTRON_DIR)/.standalone_output
rm -rf $(ELECTRON_DIR)/.electron_output

clean-coverage: ## Remove coverage output files
rm -rf ./coverage/
Expand Down

0 comments on commit c111164

Please sign in to comment.