chore: release 1.7.3

This commit is contained in:
IndieKKY
2023-07-12 21:01:43 +08:00
parent eaf465a6a9
commit 255b06e3b5
4 changed files with 42 additions and 2 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@@ -1,7 +1,7 @@
{ {
"name": "哔哩哔哩字幕列表", "name": "哔哩哔哩字幕列表",
"description": "显示B站视频的字幕列表,可点击跳转与下载字幕,并支持翻译和总结字幕!", "description": "显示B站视频的字幕列表,可点击跳转与下载字幕,并支持翻译和总结字幕!",
"version": "1.7.2", "version": "1.7.3",
"manifest_version": 3, "manifest_version": 3,
"permissions": [ "permissions": [
"storage" "storage"

View File

@@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"name": "bilibili-subtitle", "name": "bilibili-subtitle",
"version": "1.7.2", "version": "1.7.3",
"type": "module", "type": "module",
"description": "哔哩哔哩字幕列表", "description": "哔哩哔哩字幕列表",
"main": "index.js", "main": "index.js",

40
push.sh Executable file
View File

@@ -0,0 +1,40 @@
#!/bin/bash
# Read the current version from package.json
current_version=$(cat package.json | grep '"version"' | cut -d'"' -f4)
echo "Current version: $current_version"
# Prompt the user to select which part of the version to upgrade
echo "Which part of the version do you want to upgrade?"
select part in "MAJOR" "MINOR" "PATCH"; do
case $part in
MAJOR) new_version=$(echo $current_version | awk 'BEGIN{FS=OFS="."} {$1+=1; $2=0; $3=0; print}'); break;;
MINOR) new_version=$(echo $current_version | awk 'BEGIN{FS=OFS="."} {$2+=1; $3=0; print}'); break;;
PATCH) new_version=$(echo $current_version | awk 'BEGIN{FS=OFS="."} {$3+=1; print}'); break;;
*) echo "Invalid option";;
esac
done
# Update the version in package.json
sed -i '' "s/\"version\": \"$current_version\"/\"version\": \"$new_version\"/g" package.json
# Update the version in manifest.json
sed -i '' "s/\"version\": \"$current_version\"/\"version\": \"$new_version\"/g" manifest.json
echo "Version updated to: $new_version"
# build
pnpm run build_chrome
# zip dist
cd dist
zip -r ../dist.zip ./*
cd ../
# git
git add .
git commit -m "chore: release $new_version"
git push
# tag
git tag $new_version
git push origin $new_version