mirror of https://github.com/TriliumNext/Notes
release scripts + check of version compatibility
parent
94222e80cf
commit
8cf44780ce
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERSION=$(jq -r ".version" manifest.json)
|
||||
CHROME_EXTENSION_ID=dfhgmnfclbebfobmblelddiejjcijbjm
|
||||
|
||||
BUILD_DIR=trilium-web-clipper-chrome
|
||||
|
||||
rm -rf dist
|
||||
mkdir -p "dist/$BUILD_DIR"
|
||||
|
||||
cp -r icons lib options popup *.js manifest.json "dist/$BUILD_DIR"
|
||||
|
||||
cd dist/"${BUILD_DIR}" || exit
|
||||
|
||||
jq '.name = "Trilium Web Clipper"' manifest.json | sponge manifest.json
|
||||
jq 'del(.browser_specific_settings)' manifest.json | sponge manifest.json
|
||||
|
||||
EXT_FILE_NAME=trilium_web_clipper-${VERSION}-chrome.crx
|
||||
|
||||
zip -r ../${EXT_FILE_NAME} *
|
||||
|
||||
cd ..
|
||||
rm -r "${BUILD_DIR}"
|
||||
|
||||
webstore upload --source ${EXT_FILE_NAME} --auto-publish --extension-id "${CHROME_EXTENSION_ID}" --client-id "${CHROME_CLIENT_ID}" --client-secret "${CHROME_CLIENT_SECRET}" --refresh-token "${CHROME_REFRESH_TOKEN}"
|
||||
Loading…
Reference in New Issue