-
Notifications
You must be signed in to change notification settings - Fork 0
/
build
executable file
·29 lines (26 loc) · 993 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
PARENT_DIR="$(dirname $(pwd))"
if [ -d "$PARENT_DIR/brower-extension" ];
then
echo "WARNING: Please build the latest brower-extension first"
mkdir -p extension
rm -r ./extension/*
mkdir -p dist
rm -r ./dist/*
cp -r ../brower-extension/build ./extension/;
echo "Coppied /build/*";
cp -r ../brower-extension/assert ./extension/;
echo "Coppied /assert/*";
cp -r ../brower-extension/manifest.json ./extension/;
echo "Coppied /manifest.json";
npm install;
node ./_scripts/update_manifest.js;
echo "Updated manifest.json";
cd extension;
find . \( -name '.DS_Store' -or -name '._*' \) -delete
zip -r ../dist/voz-living.xpi *;
echo "Compiled dist/voz-living.xpi";
echo "Done! Please see https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Packaging_and_installation for more information how to load the extension to firefox";
else
echo "brower-extension need to be same level as firefox-extenions";
fi