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)
|
||||
libfolder = Path(buildfolder, "lib")
|
||||
library = Path(libfolder, "library.zip")
|
||||
print("Outputting to: " + str(buildfolder))
|
||||
compress = False
|
||||
print("Outputting to: " + sbuildfolder)
|
||||
|
||||
icon = "icon.ico"
|
||||
|
||||
if os.path.exists("X:/pw.txt"):
|
||||
|
@ -28,13 +28,16 @@ else:
|
|||
from hashlib import sha3_512
|
||||
import base64
|
||||
|
||||
|
||||
def _threaded_hash(filepath):
|
||||
hasher = sha3_512()
|
||||
hasher.update(open(filepath, "rb").read())
|
||||
return base64.b85encode(hasher.digest()).decode()
|
||||
|
||||
|
||||
os.makedirs(buildfolder, exist_ok=True)
|
||||
|
||||
|
||||
def manifest_creation():
|
||||
hashes = {}
|
||||
manifestpath = os.path.join(buildfolder, "manifest.json")
|
||||
|
@ -66,7 +69,6 @@ for script, scriptname in scripts.items():
|
|||
icon=icon,
|
||||
))
|
||||
|
||||
|
||||
import datetime
|
||||
|
||||
buildtime = datetime.datetime.utcnow()
|
||||
|
@ -137,5 +139,4 @@ if signtool:
|
|||
print(f"Signing {exe.targetName}")
|
||||
os.system(signtool + exe.targetName)
|
||||
|
||||
|
||||
manifest_creation()
|
||||
|
|
Loading…
Reference in New Issue