Skip to content

Commit

Permalink
Fix build script on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Sep 1, 2016
1 parent a638e71 commit c76ff9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tools/build_for_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
APP_NAME = 'MacDown.app'
ZIP_NAME = 'MacDown.app.zip'

TERM_ENCODING = 'utf-8'


class CommandError(Exception):
pass
Expand Down Expand Up @@ -97,7 +99,11 @@ def main(argv):
XCODEBUILD, 'archive', '-workspace', '../MacDown.xcworkspace',
'-scheme', 'MacDown',
)
match = re.search(r'^\s*ARCHIVE_PATH: (.+)$', output, re.MULTILINE)
match = re.search(
r'^\s*ARCHIVE_PATH: (.+)$',
output.decode(TERM_ENCODING),
re.MULTILINE,
)
archive_path = match.group(1)
print('Exporting application bundle...')
execute(
Expand Down

0 comments on commit c76ff9c

Please sign in to comment.