-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.py
51 lines (40 loc) · 1.35 KB
/
globals.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import platform
import os
import sys
INSTALL_DIRECTORY = ""
# CLIENT_VERSION_FILE contains the version of the latest mod files.
# This value can be changed to whatever you wish.
# This is checked against CLIENT_VERSION
CLIENT_VERSION_FILE = "clientversion.txt"
# CONSOLE_VERSION_FILE contains the version of the latest client executable.
# This value can be changed to whatever you wish.
# This console executable is created using pyinstaller.
CONSOLE_VERSION_FILE = "client_console_ver.txt"
# These are the URLs to your download locations.
CLIENT_DOWNLOAD_URL = "ENTER URL TO ALL OF YOUR MOD FILE DOWNLOADS"
CONSOLE_DOWNLOAD_URL = "ENTER URL TO ALL OF YOUR CONSOLE FILE DOWNLOADS"
CONSOLE_VERSION = "2.0.0"
CLIENT_VERSION = "0.0.0"
ONLINE_CLIENT_VERSION = "0.0.0"
OPERATING_SYSTEM = platform.system()
# determine location of executable depending on if it's a script or frozen exe
if getattr(sys, "frozen", False):
APPLICATION_PATH = os.path.dirname(sys.executable) + "/"
else:
APPLICATION_PATH = os.path.dirname(__file__) + "/"
# Dictionary containing the names of your mod's folder structure.
FOLDER_NAME = {
0: "bin",
1: "config",
2: "mods"
}
MAIN_EXECUTABLE = {
"Windows": "main.exe",
"Linux": "main",
"Darwin": "main"
}
BACKUP_EXECUTABLE = {
"Windows": "main-backup.exe",
"Linux": "main-backup",
"Darwin": "main-backup"
}