[meld/windows-font-fixes] Provide a console-friendly version of our Windows executable
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/windows-font-fixes] Provide a console-friendly version of our Windows executable
- Date: Sat, 23 May 2020 01:38:13 +0000 (UTC)
commit 523cccedd70655cee14e0ff8a2fbf5787e98d110
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat May 23 11:35:36 2020 +1000
Provide a console-friendly version of our Windows executable
It doesn't seem like there's a simple way to make Meld.exe, which runs
using pythonw.exe, output to the Window console if run from the command
line instead of from a launcher. The workaround here is to provide a
non-pythonw executable as an extra option.
setup_win32.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/setup_win32.py b/setup_win32.py
index 269c9b4a..84267a46 100755
--- a/setup_win32.py
+++ b/setup_win32.py
@@ -120,6 +120,7 @@ executable_options = {
"script": "bin/meld",
"icon": "data/icons/org.gnome.meld.ico",
}
+console_executable_options = dict(executable_options)
if 'mingw' in sysconfig.get_platform():
executable_options.update({
@@ -128,6 +129,9 @@ if 'mingw' in sysconfig.get_platform():
"shortcutName": "Meld",
"shortcutDir": "ProgramMenuFolder",
})
+ console_executable_options.update({
+ "targetName": "MeldConsole.exe",
+ })
# Copy conf.py in place if necessary
base_path = pathlib.Path(__file__).parent
@@ -173,6 +177,7 @@ setup(
},
executables=[
Executable(**executable_options),
+ Executable(**console_executable_options),
],
packages=[
'meld',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]