Skip to content

Commit

Permalink
Ignore xpi files and move them to the expected place.
Browse files Browse the repository at this point in the history
  • Loading branch information
musically-ut committed Feb 2, 2016
1 parent e7a165a commit f6e34d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ dist
app/bower_components
test/bower_components
package
lovely-forks.xpi
*.xpi
lovely-forks*.zip
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
VERSION=$(shell git describe --dirty)
ARCHIVE_NAME=lovely-forks-${VERSION}.zip
PWD=$(shell pwd)
ADDON_DIR="${PWD}/.tmp/app"

all: firefox chrome

Expand All @@ -14,15 +15,14 @@ firefox: chrome
@rm -rf .tmp
@mkdir -p .tmp
@unzip -q ${ARCHIVE_NAME} -d .tmp
@jpm --addon-dir=${PWD}/.tmp/app xpi
@jpm --addon-dir=${ADDON_DIR} xpi
@cp ${ADDON_DIR}/*.xpi .

devel:
@echo "Doing a development build."
@zip ${ARCHIVE_NAME} $(shell git ls-tree HEAD --full-name --name-only -r)
@rm -rf .tmp
@mkdir -p .tmp
@unzip -q ${ARCHIVE_NAME} -d .tmp
@jpm --addon-dir=${PWD}/.tmp/app xpi -v



@jpm --addon-dir=${ADDON_DIR} xpi -v
@cp ${ADDON_DIR}/*.xpi .

0 comments on commit f6e34d9

Please sign in to comment.