Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh0000123 committed Nov 13, 2023
1 parent 7cdc073 commit b794622
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
12 changes: 12 additions & 0 deletions new_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# new_version.py

import json;
import time;

with open("package.json",'r',encoding='utf-8') as f:
jspack = json.load(f)

new_version = '1.1.'+str(int(time.time()))[1:11:1]
jspack['version']=new_version
with open("package.json",'w',encoding='utf-8') as f:
json.dump(jspack, f,ensure_ascii=False)
12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{
"name": "genshin-impact-good-words-and-sentences",
"version": "1.0.1",
"description": "",
"main": "script_npm.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "UNLICENSED"
}
{"name": "genshin-impact-good-words-and-sentences", "version": "1.1.699883035", "description": "", "main": "script_npm.js", "scripts": {"test": "echo \"Error: no test specified\" && exit 1"}, "author": "", "license": "UNLICENSED"}

0 comments on commit b794622

Please sign in to comment.