mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update Makefile for Edge extension
This commit is contained in:
parent
50347b8549
commit
04842e4320
1 changed files with 27 additions and 0 deletions
27
pkg/extension/Makefile
Normal file
27
pkg/extension/Makefile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
|
||||
|
||||
all: firefox chrome edge
|
||||
|
||||
build: *
|
||||
rm -rf dist
|
||||
yarn build-prod
|
||||
|
||||
firefox: build
|
||||
echo "building firefox package"
|
||||
FIREFOX_PKG_NAME="firefox-$(shell cat dist/manifest.json| jq -j .version).zip" ; \
|
||||
FIREFOX_SRC_NAME="firefox-$(shell cat dist/manifest.json| jq -j .version)-src.zip" ; \
|
||||
pushd dist; zip -r ../$$FIREFOX_PKG_NAME *; popd; \
|
||||
pushd src; zip -r ../$$FIREFOX_SRC_NAME *; popd; \
|
||||
echo "done"
|
||||
|
||||
chrome: build
|
||||
echo "building chrome package"
|
||||
zip -r chrome-$(shell cat dist/manifest.json| jq -j .version).zip ./dist/*
|
||||
|
||||
edge: build
|
||||
echo "building edge package"
|
||||
EDGE_PKG_NAME="omnivore-extension-edge-$(shell cat dist/manifest.json| jq -j .version).zip" ; \
|
||||
pushd dist; zip -r $${EDGE_PKG_NAME} ./*; popd;
|
||||
|
||||
|
||||
Loading…
Reference in a new issue