Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2022-06-15 00:31:16 +0300
committerlovetox <philipp@hoerist.com>2022-06-15 00:46:35 +0300
commit8f304acb946d36040e7012beeb52c3ab67c9a7d3 (patch)
tree5f4fd5f9032d92bc0394336aba5d06788672aa42 /mac
parent50aec5745171d286ed215c8349cfccbe57318899 (diff)
chore: Fix codestyle errors
Diffstat (limited to 'mac')
-rwxr-xr-xmac/makebundle.py22
1 files changed, 18 insertions, 4 deletions
diff --git a/mac/makebundle.py b/mac/makebundle.py
index 9df1406a1..87726dfaf 100755
--- a/mac/makebundle.py
+++ b/mac/makebundle.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+
import os
import sys
from argparse import ArgumentParser
@@ -18,12 +19,25 @@ if __name__ == '__main__':
version = args.version
else:
try:
- version = check_output(['git', 'describe', '--tags']).decode().strip()
+ version = check_output(['git', 'describe', '--tags'])
+ version = version.decode().strip()
except CalledProcessError:
version = 'unknown'
dmg_name = 'gajim-{}.dmg'.format(version)
- run(['cp', 'mac/gajim.spec', 'gajim.spec'], check=True) # the .spec has to be in the project root
+ # the .spec has to be in the project root
+ run(['cp', 'mac/gajim.spec', 'gajim.spec'], check=True)
run(['pyinstaller', 'gajim.spec'], check=True)
- run(['rm', '-rf', 'dist/launch']) # we only want Gajim.app in the dmg
- run(['hdiutil', 'create', '-volname', 'Gajim', '-srcfolder', 'dist', '-ov', '-format', 'UDZO', dmg_name], check=True)
+ # we only want Gajim.app in the dmg
+ run(['rm', '-rf', 'dist/launch'])
+ run(['hdiutil',
+ 'create',
+ '-volname',
+ 'Gajim',
+ '-srcfolder',
+ 'dist',
+ '-ov',
+ '-format',
+ 'UDZO',
+ dmg_name],
+ check=True)