You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
405 B
Bash

2 years ago
#!/bin/bash
PWD=$(pwd)
BASE_DIR=${PWD}/base
MANIFEST_DIR=${PWD}/firefox
2 years ago
OUTPUT_DIR=${PWD}/out/artifacts/firefox
OUTPUT_FILE=${OUTPUT_DIR}/extension.zip
echo $BASE_DIR
echo $MANIFEST_DIR
2 years ago
mkdir -p ${OUTPUT_DIR}
# check if file exists before removing
[ -f ${OUTPUT_FILE} ] && rm -f ${OUTPUT_FILE}
pushd ${BASE_DIR}
zip -r ${OUTPUT_FILE} *
popd
pushd ${MANIFEST_DIR}
zip ${OUTPUT_FILE} manifest.json
2 years ago
popd