Created
July 28, 2015 07:29
-
-
Save cbrunnkvist/99523540eec26a122d92 to your computer and use it in GitHub Desktop.
Use make(1) to build a ZIP archive of current dir (originally used to prepare Chrome Web Store uploads)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name the uploadable archive | |
ARCHIVE=MyChromePackagedAppSubmission.zip | |
################### | |
DIR=$(shell basename `pwd`) | |
release: build/$(ARCHIVE) | |
@echo Archive created: $(PWD)/build/$(ARCHIVE) | |
build/$(ARCHIVE): build * | |
cd ../ ; zip -FS -r $(PWD)/build/$(ARCHIVE) $(DIR) -x$(DIR)/build/* -x$(DIR)/.git/* | |
build: | |
mkdir -p build | |
clean: | |
rm -r build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment