Merge branch '1-wrong-shebang-in-build-ff-sh' into 'master'
Resolve "Wrong shebang in build-ff.sh" Closes #1 See merge request and94x/stammtv-extension!2master
commit
8d13d973a0
@ -1,15 +1,21 @@
|
|||||||
#!/usr/bin/bash
|
#!/bin/bash
|
||||||
PWD=$(pwd)
|
PWD=$(pwd)
|
||||||
BASE_DIR=${PWD}/base
|
BASE_DIR=${PWD}/base
|
||||||
MANIFEST_DIR=${PWD}/firefox
|
MANIFEST_DIR=${PWD}/firefox
|
||||||
OUT="../out/artifacts/firefox/extension.zip"
|
OUTPUT_DIR=${PWD}/out/artifacts/firefox
|
||||||
|
OUTPUT_FILE=${OUTPUT_DIR}/extension.zip
|
||||||
|
|
||||||
echo $BASE_DIR
|
echo $BASE_DIR
|
||||||
echo $MANIFEST_DIR
|
echo $MANIFEST_DIR
|
||||||
echo $OUT
|
|
||||||
|
|
||||||
rm -f ${OUT}
|
mkdir -p ${OUTPUT_DIR}
|
||||||
cd "$BASE_DIR" || return
|
|
||||||
zip -r ${OUT} *
|
# check if file exists before removing
|
||||||
cd "${MANIFEST_DIR}" || return
|
[ -f ${OUTPUT_FILE} ] && rm -f ${OUTPUT_FILE}
|
||||||
zip -r ${OUT} manifest.json
|
|
||||||
|
pushd ${BASE_DIR}
|
||||||
|
zip -r ${OUTPUT_FILE} *
|
||||||
|
popd
|
||||||
|
pushd ${MANIFEST_DIR}
|
||||||
|
zip ${OUTPUT_FILE} manifest.json
|
||||||
|
popd
|
||||||
|
Loading…
Reference in New Issue