Skip to content

Commit

Permalink
update auto publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
jadehh committed May 6, 2024
1 parent 8f90d8c commit 102160c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def edit_gradle_file(version):
if "v" in version:
version = version.replace("v","")
current_dir = os.getcwd() # 获取当前目录
parent_dir = os.path.abspath(os.path.join(current_dir, os.pardir)) # 获取上级目录
parent_dir = os.path.abspath(os.path.join(current_dir, os.pardir,"tv")) # 获取上级目录
with open(os.path.join(parent_dir,"app","build.gradle"),"rb") as f:
content = str(f.read(),encoding='utf-8')
matches = re.findall('versionName "([^"]*)"', content)
Expand Down

0 comments on commit 102160c

Please sign in to comment.