Skip to content

Commit

Permalink
Better convert check when building desktop file. Fixes #238
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher31 committed Oct 16, 2020
1 parent e7a0c89 commit 0786878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def configure (conf):
conf.check_cxx_version()
silence_warnings (conf)
conf.find_program('convert', mandatory=False)

conf.check_common()
if cross.is_mingw(conf): conf.check_mingw()
elif juce.is_mac(): conf.check_mac()
Expand Down Expand Up @@ -130,7 +131,7 @@ def build_desktop (bld, slug='element'):
if not juce.is_linux():
return

if len (bld.env.CONVERT[0]) > 0:
if bool(bld.env.CONVERT):
for size in '16 32 64 128 256 512'.split():
geometry = '%sx%s' % (size, size)
bld (
Expand Down

0 comments on commit 0786878

Please sign in to comment.