Skip to content

Commit

Permalink
Version 0.9.6: Fix macOS build and scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Apr 7, 2020
1 parent 4e1c89d commit 94be158
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
12 changes: 7 additions & 5 deletions Wallet/build/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def finish(code, error = ''):
os.chdir(executePath)
sys.exit(code)

os.chdir(scriptPath + '/..')

if 'AC_USERNAME' not in os.environ:
finish(1, 'AC_USERNAME not found!')
username = os.environ['AC_USERNAME']
Expand All @@ -51,20 +49,22 @@ def finish(code, error = ''):
archive = filePrefix + '_macOS_' + today + '.zip'

if building:
os.chdir(scriptPath + '/..')
print('Building debug version for OS X 10.12+..')

if os.path.exists('../out/Debug/' + outputFolder):
finish(1, 'Todays updates version exists.')

result = subprocess.call('gyp/refresh.sh', shell=True)
result = subprocess.call('./configure.sh', shell=True)
if result != 0:
finish(1, 'While calling GYP.')
finish(1, 'While calling CMake.')

os.chdir('../out')
result = subprocess.call('xcodebuild -project ' + projectName + '.xcodeproj -alltargets -configuration Debug build', shell=True)
if result != 0:
finish(1, 'While building ' + projectName + '.')

os.chdir('../out/Debug')
os.chdir('Debug')
if not os.path.exists(projectName + '.app'):
finish(1, projectName + '.app not found.')

Expand Down Expand Up @@ -227,6 +227,8 @@ def finish(code, error = ''):
print('\n\nEdit:\n')
print('vi ' + commandPath)
finish(0)
else:
os.chdir(scriptPath + '/..')

if not os.path.exists(commandPath):
finish(1, 'Command file not found.')
Expand Down
4 changes: 0 additions & 4 deletions Wallet/build/updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ pushd `dirname $0` > /dev/null
FullScriptPath=`pwd`
popd > /dev/null

pushd `dirname $0` > /dev/null
FullScriptPath=`pwd`
popd > /dev/null

python $FullScriptPath/updates.py $1 $2 $3 $4 $5 $6

exit
2 changes: 1 addition & 1 deletion Wallet/lib_wallet

0 comments on commit 94be158

Please sign in to comment.