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 |
9
setup.py
9
setup.py
|
@ -13,8 +13,8 @@ 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"):
|
||||||
|
@ -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")
|
||||||
|
@ -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