#!/bin/sh
if (pgrep chrome); then
    echo "!! Google Chrome is currently running." >&2;
    echo "!! Cannot continue." >&2;
    exit 1;
fi

# CRX addon
mkdir -p src build
cp *.html *.js *.json src
${CHROME_BIN} --pack-extension=src --pack-extension-key=unofficial_key.pem
cp src.crx build/rndphrase.crx

# ZIP file
cd src
zip ../build/rndphrase.zip *
cd ..

#!/bin/sh

# CRX addon
mkdir -p src build
cp *.html *.js *.json src
${CHROME_BIN} --pack-extension=src --pack-extension-key=unofficial_key.pem
cp src.crx build/rndphrase.crx

# ZIP file
cd src
zip ../build/rndphrase.zip *
cd ..

Remove check for running Chrome (not needed on newer versions)
Remove check for running Chrome (not needed on newer versions)
