Browse Source

Merge branch 'changelog'

main
prasket 1 year ago
parent
commit
89e16fce60
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      update.py

+ 15
- 0
update.py View File

@ -49,6 +49,20 @@ def remove_download():
os.remove('elvui_update.zip')
print("ElvUI update file removed.")
def show_changelog():
url = "https://www.tukui.org/download.php?ui=elvui"
# build out the content request
content = urllib.request.urlopen(url).read()
# get your soup on
soup = BeautifulSoup(content, features="html.parser")
# capture version number and return as def response
response = soup.find_all('div', id='changelog')[0].get_text()
print(response)
# Define the usage of the app
def usage():
"""Prints usage information"""
@ -93,6 +107,7 @@ def main(argv):
get_update(update_version)
install_update(wowPath)
remove_download()
show_changelog()
print(f"ElvUI has been updated to {update_version}")


Loading…
Cancel
Save