From a23ede131a15e3dd23b577c25c555c4332bc710f Mon Sep 17 00:00:00 2001 From: terwer Date: Thu, 2 Feb 2023 01:13:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC-=E8=A7=A3=E5=86=B3=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=84=9A=E6=9C=AC=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/manifest.dev.json | 2 +- public/manifest.prod.json | 2 +- public/mv2/manifest-v2-for-firefox.json | 2 +- scripts/version.py | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/public/manifest.dev.json b/public/manifest.dev.json index 47402703..e314eefd 100644 --- a/public/manifest.dev.json +++ b/public/manifest.dev.json @@ -1,6 +1,6 @@ { "name": "开发版 - 思源笔记发布辅助工具", - "version": "0.6.8", + "version": "0.7.0", "manifest_version": 3, "author": "terwer", "description": "思源笔记发布辅助工具,支持博客式只读浏览,多平台文章发布。", diff --git a/public/manifest.prod.json b/public/manifest.prod.json index deb6ba3c..917f816e 100644 --- a/public/manifest.prod.json +++ b/public/manifest.prod.json @@ -1,6 +1,6 @@ { "name": "思源笔记发布辅助工具", - "version": "0.6.8", + "version": "0.7.0", "manifest_version": 3, "author": "terwer", "icons": { diff --git a/public/mv2/manifest-v2-for-firefox.json b/public/mv2/manifest-v2-for-firefox.json index 601451d9..2bdc7c9b 100644 --- a/public/mv2/manifest-v2-for-firefox.json +++ b/public/mv2/manifest-v2-for-firefox.json @@ -1,6 +1,6 @@ { "name": "开发版 - 思源笔记发布辅助工具", - "version": "0.6.8", + "version": "0.7.0", "manifest_version": 2, "author": "terwer", "icons": { diff --git a/scripts/version.py b/scripts/version.py index ceb7b6f7..5de8da75 100644 --- a/scripts/version.py +++ b/scripts/version.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 import json import os import sys @@ -15,7 +14,7 @@ def parse_json(filename, version_field, new_version): # 读取 JSON 文件 print("读取文件:" + filename) - with open(filename, 'r', encoding='UTF-8') as f: + with open(filename, "r", encoding="utf-8") as f: data = json.load(f) # print(data) @@ -23,7 +22,7 @@ def parse_json(filename, version_field, new_version): data[version_field] = new_version # 将修改后的 JSON 写回到文件中 - with open(filename, 'w') as f: + with open(filename, "w", encoding="utf-8") as f: json.dump(data, f, indent=2, ensure_ascii=False)