From 11135ea128e866958aa884f746570ac7de8876b1 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 21 Jan 2025 16:29:51 -0600 Subject: [PATCH] Setup local version caching --- .gitignore | 3 ++- main.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 227eed1..7a62811 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -github-material-icons-chrome-extensio* \ No newline at end of file +github-material-icons-chrome-extensio* +localVersionCache.py \ No newline at end of file diff --git a/main.py b/main.py index 8a322fa..4f92102 100644 --- a/main.py +++ b/main.py @@ -110,6 +110,9 @@ with open("github-material-icons-chrome-extension.xml", "w") as f: ] ) +with open("localVersionCache.py", "w") as f: + f.write(f'oldVer = "{version}"') + endTime = dt.now(tz.utc) print( f"""[INFO] Script finished at {endTime.strftime('%Y-%m-%d %H:%M:%S.%f')}