diff --git a/.gitignore b/.gitignore index b1d18a64..9b248455 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ lite-xl* LiteXL* !resources/windows/*.diff +!resources/windows/*.exe.manifest.in diff --git a/meson.build b/meson.build index 7bbecc68..cfef8ec8 100644 --- a/meson.build +++ b/meson.build @@ -36,6 +36,7 @@ conf_data = configuration_data() conf_data.set('PROJECT_BUILD_DIR', meson.current_build_dir()) conf_data.set('PROJECT_SOURCE_DIR', meson.current_source_dir()) conf_data.set('PROJECT_VERSION', version) +conf_data.set('PROJECT_ASSEMBLY_VERSION', meson.project_version() + '.0') #=============================================================================== # Compiler Settings @@ -165,6 +166,11 @@ if get_option('portable') or host_machine.system() == 'windows' lite_bindir = '/' lite_docdir = '/doc' lite_datadir = '/data' + configure_file( + input: 'resources/windows/lite-xl.exe.manifest.in', + output: 'lite-xl.exe.manifest', + configuration: conf_data + ) elif get_option('bundle') and host_machine.system() == 'darwin' lite_cargs += '-DMACOS_USE_BUNDLE' lite_bindir = 'Contents/MacOS' diff --git a/resources/windows/lite-xl.exe.manifest.in b/resources/windows/lite-xl.exe.manifest.in new file mode 100644 index 00000000..9e787587 --- /dev/null +++ b/resources/windows/lite-xl.exe.manifest.in @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/windows/manifest.rc b/resources/windows/manifest.rc new file mode 100644 index 00000000..95b17e2d --- /dev/null +++ b/resources/windows/manifest.rc @@ -0,0 +1,4 @@ +#define IDR_RT_MANIFEST1 1 +#define RT_MANIFEST 24 + +IDR_RT_MANIFEST1 RT_MANIFEST "lite-xl.exe.manifest" diff --git a/src/meson.build b/src/meson.build index fee36d1d..a156ae3f 100644 --- a/src/meson.build +++ b/src/meson.build @@ -50,6 +50,7 @@ lite_rc = [] if host_machine.system() == 'windows' windows = import('windows') lite_rc += windows.compile_resources('../resources/icons/icon.rc') + lite_rc += windows.compile_resources('../resources/windows/manifest.rc') elif host_machine.system() == 'darwin' lite_sources += 'bundle_open.m' endif