Skip to content

Commit

Permalink
Merge pull request #11 from Rel1cStyle/dev
Browse files Browse the repository at this point in the history
Version 0.2.2 (from dev)
  • Loading branch information
Milkeyyy authored Aug 7, 2024
2 parents 74264e8 + 1940d74 commit e642b36
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 180 deletions.
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[FORMAT]
indent-string=\t
34 changes: 22 additions & 12 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
from os import path
from os import environ, path

class App():
name = "Rel1cStyle RIG"
NAME = "Rel1cStyle RIG"

version = "0.2"
VERSION = "0.2.2"

api_url = "https://rig-api-thunder.rel1c.work"
#API_URL = "https://api.rig.rel1c.work"
API_URL = "https://rig-api-thunder.rel1c.work"
#preview_image_url = "https://rig-r2-images.huerisalter.com"

COMMIT_SHA = ""
BRANCH = ""
ENV = ""

if path.isfile("_commit_sha.txt"):
with open("_commit_sha.txt", mode="r") as f:
commit_sha = f.read()[0:7]
commit_sha = commit_sha.replace("\n", "")
with open("_commit_sha.txt", mode="r", encoding="utf-8") as f:
COMMIT_SHA = f.read()[0:7].replace("\n", "")
else:
commit_sha = "0"
COMMIT_SHA = "0"

if path.isfile("_branch_name.txt"):
with open("_branch_name.txt", mode="r") as f:
branch = f.read()
branch = branch.replace("\n", "")
with open("_branch_name.txt", mode="r", encoding="utf-8") as f:
BRANCH = f.read().replace("\n", "")
else:
BRANCH = "dev"

if path.isfile("_env_name.txt"):
with open("_env_name.txt", mode="r", encoding="utf-8") as f:
ENV = f.read().replace("\n", "")
else:
branch = "dev"
ENV = "UNKNOWN"
Loading

0 comments on commit e642b36

Please sign in to comment.