Renomeia diretório webext/ para src/
parent
b036cddd86
commit
8b01dd2486
8
Makefile
8
Makefile
|
@ -8,19 +8,19 @@ clean:
|
||||||
rm -rf "$(DIST_DIR)"
|
rm -rf "$(DIST_DIR)"
|
||||||
lint:
|
lint:
|
||||||
find . -name '*.json' -exec python -c 'import json; json.load(open("{}"))' \;
|
find . -name '*.json' -exec python -c 'import json; json.load(open("{}"))' \;
|
||||||
npx eslint webext
|
npx eslint src
|
||||||
pre-build: clean
|
pre-build: clean
|
||||||
set -e ; \
|
set -e ; \
|
||||||
for i in $(BROWSERS) ; do \
|
for i in $(BROWSERS) ; do \
|
||||||
SRC_DIR="$(DIST_DIR)/$$i/src" ; \
|
SRC_DIR="$(DIST_DIR)/$$i/src" ; \
|
||||||
mkdir -p "$$SRC_DIR" ; \
|
mkdir -p "$$SRC_DIR" ; \
|
||||||
cp -r webext/* "$$SRC_DIR" ; \
|
cp -r src/* "$$SRC_DIR" ; \
|
||||||
if [ $$i != "firefox" ]; then \
|
if [ $$i != "firefox" ]; then \
|
||||||
perl -0pe 's/,\s+"applications": \{(.*?\}){2}//s' \
|
perl -0pe 's/,\s+"applications": \{(.*?\}){2}//s' \
|
||||||
webext/manifest.json > "$$SRC_DIR/manifest.json" ; \
|
src/manifest.json > "$$SRC_DIR/manifest.json" ; \
|
||||||
else \
|
else \
|
||||||
perl -0pe 's/,\s+"update_url": "https:\/\/burlesco.github.io\/burlesco-update\/chromium.xml"//s' \
|
perl -0pe 's/,\s+"update_url": "https:\/\/burlesco.github.io\/burlesco-update\/chromium.xml"//s' \
|
||||||
webext/manifest.json > "$$SRC_DIR/manifest.json" ; \
|
src/manifest.json > "$$SRC_DIR/manifest.json" ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
done
|
done
|
||||||
build: pre-build
|
build: pre-build
|
||||||
|
|
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 190 KiB |
Loading…
Reference in New Issue