Skip to content

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
milesmcc committed Jun 26, 2020
1 parent 7462a15 commit be573d5
Show file tree
Hide file tree
Showing 31 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode
.DS_Store
.DS_Store
dist/*
20 changes: 20 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

echo "Cleaning build environment..."
rm -rf dist
mkdir dist

echo "Building Firefox extension..."
cp -r src dist/firefox
cd dist/firefox
zip -rq ../Firefox.zip *
cd ../..

echo "Building Chrome extension..."
cp -r src dist/chrome
cat src/manifest.json | jq 'del(.applications)' > dist/chrome/manifest.json
cd dist/chrome
zip -rq ../Chrome.zip *
cd ../..

echo "Done!"
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit be573d5

Please sign in to comment.