1 #!/bin/sh 2 set -e 3 TARGET=$1 4 DIST=dist 5 mkdir -p "$DIST" 6 7 if [ "$TARGET" = "firefox" ]; then 8 (cd web/ext && zip -r "../../$DIST/smesh-signer-firefox.xpi" \ 9 manifest.json background.html content-script.js \ 10 injected.js prompt.js argon2.umd.min.js bg/ icons/) 11 12 else 13 echo "Usage: $0 firefox" >&2 14 exit 1 15 fi 16