de
This commit is contained in:
1 parent
f2a5f67cd1
commit
5c6c1c242a
3 files changed
+14
-6
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
from kivy_deps import sdl2, glew
|
||||
from kivymd import hooks_path as kivymd_hooks_path
|
||||
import subprocess
|
||||
|
||||
block_cipher = None
|
||||
|
||||
@@ -45,6 +46,8 @@ print("DATA FILTERED", len(a.datas))
|
||||
|
||||
console_names = {True:"DebugKaTrain",False:"KaTrain"}
|
||||
|
||||
powershell = subprocess.Popen(["powershell"], stdout=subprocess.PIPE, stdin=subprocess.PIPE)
|
||||
|
||||
for console, name in console_names.items():
|
||||
|
||||
|
||||
@@ -89,4 +92,9 @@ for console, name in console_names.items():
|
||||
console=console,
|
||||
icon="C:\\icon.ico",
|
||||
)
|
||||
powershell.stdin.write(f"Set-AuthenticodeSignature dist/{name}.exe -Certificate (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert)\n".encode('ascii'))
|
||||
powershell.stdin.write(f"Set-AuthenticodeSignature dist/{name}/{name}.exe -Certificate (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert)\n".encode('ascii'))
|
||||
powershell.stdin.flush()
|
||||
|
||||
while True:
|
||||
print(powershell.stdout.readline())
|
||||
Reference in new issue
Block a user