added some cool stuff

This commit is contained in:
2023-11-30 21:21:06 +01:00
parent cb782b8b91
commit caef435209
5 changed files with 27 additions and 1 deletions

4
CHANGELOG.md Normal file
View File

@@ -0,0 +1,4 @@
## v0.1.0 [2023-11-30]
- Added updater
- Added Changelog file
- Changed version file from yaml to json

View File

@@ -2,3 +2,4 @@ pillow
python-magic
progressbar
virtualenv
requests

4
src/.version.json Normal file
View File

@@ -0,0 +1,4 @@
{
"version": "0.1.0",
"date": "2023-11-30"
}

View File

@@ -1 +0,0 @@
version: 3.0.0

18
src/updater.py Normal file
View 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()