summaryrefslogtreecommitdiffstats
path: root/scripts/nsis.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nsis.py')
-rw-r--r--scripts/nsis.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/nsis.py b/scripts/nsis.py
index 5135a05831..462d6cac3b 100644
--- a/scripts/nsis.py
+++ b/scripts/nsis.py
@@ -33,10 +33,12 @@ def main():
subprocess.run(["make", "install", "DESTDIR=" + destdir + os.path.sep])
with open(
os.path.join(destdir + args.prefix, "system-emulations.nsh"), "w"
- ) as nsh:
- for exe in glob.glob(
+ ) as nsh, open(
+ os.path.join(destdir + args.prefix, "system-mui-text.nsh"), "w"
+ ) as muinsh:
+ for exe in sorted(glob.glob(
os.path.join(destdir + args.prefix, "qemu-system-*.exe")
- ):
+ )):
exe = os.path.basename(exe)
arch = exe[12:-4]
nsh.write(
@@ -49,6 +51,15 @@ def main():
arch, exe
)
)
+ if arch.endswith('w'):
+ desc = arch[:-1] + " emulation (GUI)."
+ else:
+ desc = arch + " emulation."
+
+ muinsh.write(
+ """
+ !insertmacro MUI_DESCRIPTION_TEXT ${{Section_{0}}} "{1}"
+ """.format(arch, desc))
for exe in glob.glob(os.path.join(destdir + args.prefix, "*.exe")):
signcode(exe)