Skip to content

Commit

Permalink
Fix packaging script, remove macOS specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
fhemberger committed Feb 25, 2023
1 parent 60675e1 commit 203393b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package/package.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash
# shellcheck disable=SC2155
set -uo pipefail

readonly DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

function package_zip () {
cd "$1" && zip -r "$2" html icons js LICENSE.txt manifest.json -x icons/.DS_Store js/.DS_Store .DS_Store
(
cd "$1" || exit
zip -rX "$2" html icons js LICENSE.txt manifest.json -x '**/.*' -x '**/__MACOSX'
)
}

# Update manifest version number from package.json
Expand All @@ -14,7 +18,7 @@ function package_zip () {
package_zip "$DIR/../extension" "$DIR/../chrome-webstore-release.zip"

# Package Firefox webstore release
cp -r "$DIR/../extension" "$DIR/../extension-firefox"
cp -Tr "$DIR/../extension" "$DIR/../extension-firefox"
"$DIR/update-manifest-firefox.js"
package_zip "$DIR/../extension-firefox" "$DIR/../firefox-webstore-release.zip"
#rm -r "$DIR/../extension-firefox"

0 comments on commit 203393b

Please sign in to comment.