Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit f048a79

Browse files
committed
add ability to override manifest name for yule log package (bug 875261)
1 parent a1c718e commit f048a79

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,17 @@ package: compile
4646
# This is what the iframe src points to.
4747
DOMAIN?=marketplace.firefox.com
4848

49+
# This is what the app will be named on the device.
50+
NAME?=Marketplace
51+
4952
log: clean
5053
@mkdir -p TMP && cp -pR yulelog/* TMP/.
5154
@# We have to have a temp file to work around a bug in Mac's version of sed :(
5255
@sed -i'.bak' -e 's/marketplace\.firefox\.com/$(DOMAIN)/g' TMP/main.js
5356
@sed -i'.bak' -e 's/{version}/$(VERSION_INT)/g' TMP/manifest.webapp
57+
@sed -i'.bak' -e 's/"Marketplace"/"$(NAME)"/g' TMP/manifest.webapp
5458
@rm -f TMP/*.bak
55-
@cd TMP && zip -q -r ../yulelog_$(VERSION_INT).zip * && cd ../
59+
@cd TMP && zip -q -r ../yulelog_$(NAME)_$(VERSION_INT).zip * && cd ../
5660
@rm -rf TMP
5761
@echo "Created file: yulelog_$(VERSION).zip"
5862

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ If you plan on doing compilation (i.e.: you're Wil Clouser), you'll also need
5252
Comprehensive Flue documentation can be found in
5353
[Flue's README](https://github.com/mozilla/fireplace/blob/master/flue/README.rst).
5454

55+
## Yule Log
56+
57+
To create a new Yule Log package for production:
58+
59+
make log
60+
61+
For -dev:
62+
63+
NAME='Dev' DOMAIN='marketplace-dev.allizom.org' make log
64+
65+
For stage:
66+
67+
NAME='Stage' DOMAIN='marketplace.allizom.org' make log
5568

5669
### Getting node/npm
5770

0 commit comments

Comments
 (0)