Skip to content

Commit c76ff9c

Browse files
committed
Fix build script on Python 3
1 parent a638e71 commit c76ff9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Tools/build_for_release.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
APP_NAME = 'MacDown.app'
2626
ZIP_NAME = 'MacDown.app.zip'
2727

28+
TERM_ENCODING = 'utf-8'
29+
2830

2931
class CommandError(Exception):
3032
pass
@@ -97,7 +99,11 @@ def main(argv):
9799
XCODEBUILD, 'archive', '-workspace', '../MacDown.xcworkspace',
98100
'-scheme', 'MacDown',
99101
)
100-
match = re.search(r'^\s*ARCHIVE_PATH: (.+)$', output, re.MULTILINE)
102+
match = re.search(
103+
r'^\s*ARCHIVE_PATH: (.+)$',
104+
output.decode(TERM_ENCODING),
105+
re.MULTILINE,
106+
)
101107
archive_path = match.group(1)
102108
print('Exporting application bundle...')
103109
execute(

0 commit comments

Comments
 (0)