-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Rel1cStyle/dev
Version 0.2.2 (from dev)
- Loading branch information
Showing
4 changed files
with
236 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[FORMAT] | ||
indent-string=\t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.