update icon
This commit is contained in:
parent
a5d00e17c9
commit
93239cf763
BIN
icon.ico
BIN
icon.ico
Binary file not shown.
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 214 KiB |
21
setup.py
21
setup.py
|
@ -13,9 +13,9 @@ buildfolder = Path("build", folder)
|
||||||
sbuildfolder = str(buildfolder)
|
sbuildfolder = str(buildfolder)
|
||||||
libfolder = Path(buildfolder, "lib")
|
libfolder = Path(buildfolder, "lib")
|
||||||
library = Path(libfolder, "library.zip")
|
library = Path(libfolder, "library.zip")
|
||||||
print("Outputting to: " + str(buildfolder))
|
print("Outputting to: " + sbuildfolder)
|
||||||
compress = False
|
|
||||||
icon="icon.ico"
|
icon = "icon.ico"
|
||||||
|
|
||||||
if os.path.exists("X:/pw.txt"):
|
if os.path.exists("X:/pw.txt"):
|
||||||
print("Using signtool")
|
print("Using signtool")
|
||||||
|
@ -28,13 +28,16 @@ else:
|
||||||
from hashlib import sha3_512
|
from hashlib import sha3_512
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
|
|
||||||
def _threaded_hash(filepath):
|
def _threaded_hash(filepath):
|
||||||
hasher = sha3_512()
|
hasher = sha3_512()
|
||||||
hasher.update(open(filepath, "rb").read())
|
hasher.update(open(filepath, "rb").read())
|
||||||
return base64.b85encode(hasher.digest()).decode()
|
return base64.b85encode(hasher.digest()).decode()
|
||||||
|
|
||||||
|
|
||||||
os.makedirs(buildfolder, exist_ok=True)
|
os.makedirs(buildfolder, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
def manifest_creation():
|
def manifest_creation():
|
||||||
hashes = {}
|
hashes = {}
|
||||||
manifestpath = os.path.join(buildfolder, "manifest.json")
|
manifestpath = os.path.join(buildfolder, "manifest.json")
|
||||||
|
@ -51,11 +54,11 @@ def manifest_creation():
|
||||||
print("Created Manifest")
|
print("Created Manifest")
|
||||||
|
|
||||||
|
|
||||||
scripts = {"MultiClient.py" : "BerserkerMultiClient",
|
scripts = {"MultiClient.py": "BerserkerMultiClient",
|
||||||
"MultiMystery.py" : "BerserkerMultiMystery",
|
"MultiMystery.py": "BerserkerMultiMystery",
|
||||||
"MultiServer.py" : "BerserkerMultiServer",
|
"MultiServer.py": "BerserkerMultiServer",
|
||||||
"gui.py" : "BerserkerMultiCreator",
|
"gui.py": "BerserkerMultiCreator",
|
||||||
"Mystery.py" : "BerserkerMystery"}
|
"Mystery.py": "BerserkerMystery"}
|
||||||
|
|
||||||
exes = []
|
exes = []
|
||||||
|
|
||||||
|
@ -66,7 +69,6 @@ for script, scriptname in scripts.items():
|
||||||
icon=icon,
|
icon=icon,
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
buildtime = datetime.datetime.utcnow()
|
buildtime = datetime.datetime.utcnow()
|
||||||
|
@ -137,5 +139,4 @@ if signtool:
|
||||||
print(f"Signing {exe.targetName}")
|
print(f"Signing {exe.targetName}")
|
||||||
os.system(signtool + exe.targetName)
|
os.system(signtool + exe.targetName)
|
||||||
|
|
||||||
|
|
||||||
manifest_creation()
|
manifest_creation()
|
||||||
|
|
Loading…
Reference in New Issue