Skip to content

Commit ebe7721

Browse files
committed
Fix --icon.
1 parent fad946a commit ebe7721

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

syrup/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def build(ctx, do_clean, version, name, company, description, license, icon, bui
7474
executables=executable,
7575
version=version,
7676
icon=icon, license=license,
77+
icon_path=os.path.join(build_dir, icon),
7778
name=name, company=company,
7879
description=description,
7980
help_url=help_url, update_url=update_url, website_url=website_url,

syrup/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def makeIco(icon, name, build_dir):
225225
"Generates .ico file from .png"
226226
print("Generating .ico file...")
227227
im = Image.open(icon)
228-
fn = "{name}.ico".format(name)
228+
fn = "{name}.ico".format(name=name)
229229
im.save(os.path.join(build_dir, fn), sizes=[(x,x) for x in ICON_SIZES])
230230
return fn
231231

syrup/templates/generic.nsi.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ LicenseData {{ license }}
4646
# This will be in the installer/uninstaller's title bar
4747
Name "${COMPANYNAME} - ${APPNAME}"
4848
{% if icon is defined and icon %}
49-
Icon "{{ icon }}"
49+
Icon "{{ icon_path }}"
5050
{% endif %}
5151
OutFile "{{ outfile }}"
5252

0 commit comments

Comments
 (0)