diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-08-29 16:25:37 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-08-29 16:25:37 +0300 |
commit | 8168bf67880be0fcbbe160ce96ff851f78acac09 (patch) | |
tree | 25f637350a09444ed72860d793435d2d1875c675 /mac | |
parent | 737af3bbf77bdb5a8340e67cb0cd18f4e70148b1 (diff) |
refactor: Always set explicitly run check parameter
The default is False, to prevent accidently not checking the return
code, always set it explicitly
Diffstat (limited to 'mac')
-rwxr-xr-x | mac/makebundle.py | 2 | ||||
-rwxr-xr-x | mac/makeicns.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/mac/makebundle.py b/mac/makebundle.py index 299e5b2f5..5505da290 100755 --- a/mac/makebundle.py +++ b/mac/makebundle.py @@ -31,7 +31,7 @@ if __name__ == '__main__': run(['cp', 'mac/gajim.spec', 'gajim.spec'], check=True) run(['pyinstaller', 'gajim.spec'], check=True) # we only want Gajim.app in the dmg - run(['rm', '-rf', 'dist/launch']) + run(['rm', '-rf', 'dist/launch'], check=True) run(['hdiutil', 'create', '-volname', diff --git a/mac/makeicns.py b/mac/makeicns.py index 20cafe1a6..562b6bd34 100755 --- a/mac/makeicns.py +++ b/mac/makeicns.py @@ -21,8 +21,9 @@ def create_icns(icon_path: str) -> None: png_path = os.path.join(tmpdir, png_fn) run(['inkscape', '-z', '-e', png_path, '-w', str(size_px), '-h', str(size_px), '-y', '0', - ICON_SVG]) - run(['iconutil', '-c', 'icns', '-o', icon_path, tmpdir]) + ICON_SVG], + check=True) + run(['iconutil', '-c', 'icns', '-o', icon_path, tmpdir], check=True) shutil.rmtree(tmpdir) |