Files
omnivore/pkg/extension/Makefile
2023-03-30 10:11:41 +08:00

28 lines
721 B
Makefile

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;