You've already forked bilibili-subtitle
chore: release 1.7.3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "哔哩哔哩字幕列表",
|
||||
"description": "显示B站视频的字幕列表,可点击跳转与下载字幕,并支持翻译和总结字幕!",
|
||||
"version": "1.7.2",
|
||||
"version": "1.7.3",
|
||||
"manifest_version": 3,
|
||||
"permissions": [
|
||||
"storage"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "bilibili-subtitle",
|
||||
"version": "1.7.2",
|
||||
"version": "1.7.3",
|
||||
"type": "module",
|
||||
"description": "哔哩哔哩字幕列表",
|
||||
"main": "index.js",
|
||||
|
40
push.sh
Executable file
40
push.sh
Executable 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
|
||||
|
Reference in New Issue
Block a user