This repository has been archived on 2023-12-17. You can view files and clone it, but cannot push or open issues or pull requests.
extension/prepare.sh

16 lines
524 B
Bash
Raw Permalink Normal View History

2023-08-07 00:03:08 +00:00
#!/usr/bin/env bash
export VERSION="$1"
export PKG="web-ext-artifacts/lume_web-${VERSION}.zip"
export PKG_SRC="web-ext-artifacts/lume_web-${VERSION}-src.zip"
yq -i '.version = strenv(VERSION)' assets/manifest.json
cp assets/manifest.json dist/
web-ext build -s dist
mkdir -p dist-src
cp -r assets shared src ui *.json .js dist-src/
zip -r "web-ext-artifacts/lume_web-${VERSION}-src.zip" dist-src/
echo "EXTENSION_VERSION=${VERSION}" >> $GITHUB_ENV
echo "PKG=${PKG}" >> $GITHUB_ENV
echo "PKG_SRC=${PKG_SRC}" >> $GITHUB_ENV