66
77from ...mime_type import MimeType
88from ...projects import ProjectData
9- from ...formats import make_nsis_installer
109from ...templating import Template , Key
10+ from ...formats import make_nsis_installer
1111
1212__all__ = (
1313 "format_config_and_make_nsis_installer" ,
@@ -40,33 +40,33 @@ def format_config_and_make_nsis_installer(
4040
4141 semver = project_data .version
4242
43- binary_name_key = Key (name = "binary-name" , value = binary_name )
43+ binary_name_key = Key ("binary-name" , binary_name )
4444
4545 display_name_key = Key (
4646 name = "display-name" ,
4747 value = display_name if display_name is not None else project_data .name
4848 )
4949
50- icon_file_name_key = Key (name = "icon-file-name" , value = icon_path .name )
50+ icon_file_name_key = Key ("icon-file-name" , icon_path .name )
5151
5252 installer_script_string = installer_script_template .format (
5353 keys = (
5454 binary_name_key ,
55- Key (name = "binary-path" , value = str (binary_path .absolute ())),
56- Key (name = "binary-dist-path" , value = str (binary_dist_path .absolute ())),
55+ Key ("binary-path" , str (binary_path .absolute ())),
56+ Key ("binary-dist-path" , str (binary_dist_path .absolute ())),
5757
5858 display_name_key ,
5959
60- Key (name = "icon-path" , value = str (icon_path .absolute ())),
60+ Key ("icon-path" , str (icon_path .absolute ())),
6161 icon_file_name_key ,
6262
63- Key (name = "project-name" , value = project_data .name ),
63+ Key ("project-name" , project_data .name ),
6464 Key (
65- name = "project-version" ,
66- value = f"{ semver .major } .{ semver .minor } .{ semver .patch } " \
65+ "project-version" ,
66+ f"{ semver .major } .{ semver .minor } .{ semver .patch } " \
6767 f".{ semver .prerelease .split ('.' )[- 1 ] if semver .prerelease is not None else 0 } "
6868 ),
69- Key (name = "project-description" , value = project_data .description ),
69+ Key ("project-description" , project_data .description ),
7070
7171 Key (
7272 name = "app-capabilities-macro" ,
@@ -171,8 +171,4 @@ def generate_app_capabilities_macro(
171171 f" { line } " for line in app_capabilities_macro_string .splitlines (keepends = True )
172172 ])
173173
174- logger .debug (
175- f"Generated and formatted app capabilities macro: \n { formatted_macro_string } "
176- )
177-
178174 return formatted_macro_string
0 commit comments