mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-01 20:32:19 +08:00
sign firefox extension
This commit is contained in:
parent
4e21fc0c06
commit
cf97c12516
@ -1,8 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
WEB_EXT_ID="{1410742d-b377-40e7-a9db-63dc9c6ec99c}"
|
||||
|
||||
VERSION=$(jq -r ".version" manifest.json)
|
||||
|
||||
ARTIFACT_NAME=trilium-web-clipper-${VERSION}
|
||||
ARTIFACT_NAME=trilium-web-clipper-firefox
|
||||
BUILD_DIR=dist/$ARTIFACT_NAME
|
||||
|
||||
rm -rf dist
|
||||
@ -14,7 +16,7 @@ cd dist/"${ARTIFACT_NAME}" || exit
|
||||
|
||||
jq '.name = "Trilium Web Clipper"' manifest.json | sponge manifest.json
|
||||
|
||||
zip -r ../"${ARTIFACT_NAME}".zip *
|
||||
web-ext sign --id ${WEB_EXT_ID} --artifacts-dir ../
|
||||
|
||||
cd ..
|
||||
rm -r "${ARTIFACT_NAME}"
|
@ -42,9 +42,9 @@ echo "Tagging commit with $TAG"
|
||||
git tag "$TAG"
|
||||
git push origin "$TAG"
|
||||
|
||||
bin/build.sh
|
||||
bin/build-firefox.sh
|
||||
|
||||
BUILD=trilium-web-clipper-$VERSION.zip
|
||||
FIREFOX_BUILD=trilium_web_clipper-$VERSION-an+fx.xpi
|
||||
|
||||
echo "Creating release in GitHub"
|
||||
|
||||
@ -56,7 +56,7 @@ echo "Uploading build package"
|
||||
|
||||
github-release upload \
|
||||
--tag "$TAG" \
|
||||
--name "$BUILD" \
|
||||
--file "dist/$BUILD"
|
||||
--name "$FIREFOX_BUILD" \
|
||||
--file "dist/$FIREFOX_BUILD"
|
||||
|
||||
echo "Release finished!"
|
Loading…
x
Reference in New Issue
Block a user