added some cool stuff
This commit is contained in:
4
src/.version.json
Normal file
4
src/.version.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"version": "0.1.0",
|
||||
"date": "2023-11-30"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
version: 3.0.0
|
||||
18
src/updater.py
Normal file
18
src/updater.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
|
||||
def read_version():
|
||||
with open(file=".version.json") as file:
|
||||
version = json.load(file)
|
||||
return version
|
||||
|
||||
|
||||
def check_for_update():
|
||||
request = "https://gitlab.com/DasMoorhuhn/autopicture-v3/-/raw/main/src/.version.yml"
|
||||
response = requests.get(request)
|
||||
if not response.ok: return
|
||||
print(response.text)
|
||||
|
||||
|
||||
check_for_update()
|
||||
Reference in New Issue
Block a user