Update make script

This commit is contained in:
rugk 2018-12-15 16:32:44 +01:00
parent fc5014a7bf
commit 3484286623
No known key found for this signature in database
GPG key ID: 05D40A636AFAB34D
2 changed files with 4 additions and 13 deletions

12
.vscode/launch.json vendored
View file

@ -1,12 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch addon",
"type": "firefox",
"request": "attach",
"addonType": "webExtension",
"addonPath": "${workspaceFolder}/src"
},
],
}

View file

@ -13,7 +13,10 @@ cp "./scripts/manifests/firefox.json" "./src/manifest.json" || exit
# create zip
cd src || exit
zip -r -FS "../build/$EXTENSION_NAME.xpi" ./* --exclude "tests/*"
zip -r -FS "../build/$EXTENSION_NAME.xpi" ./* -x "tests/*" -x "**/tests/*" \
-x "**/README.md" -x "**/CONTRIBUTING.md" -x "**/manifest.json" \
-x "**/.git" -x "**/.gitignore" -x "**/.gitmodules" -x "**/.eslintrc" \
-x "**/.editorconfig"
# revert changes
mv LICENSE.md ../LICENSE.md