Skip to content

Instantly share code, notes, and snippets.

@cbrunnkvist
Created July 28, 2015 07:29
Show Gist options
  • Save cbrunnkvist/99523540eec26a122d92 to your computer and use it in GitHub Desktop.
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)
# 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