This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
Kashiko Koibumi 416463f8b7
Revert "change command from python2.7 to python3"
This reverts commit 3b37faf8575d2946513f4f10c4e5827032e3a2cb.
2024-05-17 11:50:49 +09:00

27 lines
690 B
Bash
Executable File

#!/bin/bash
# OS X Build script wrapper around the py2app script.
# This build can only be generated on OS X.
# Requires all build dependencies for Bitmessage
# Especially important is OpenSSL installed through brew
export ARCHFLAGS="-arch i386 -arch x86_64"
if [[ -z "$1" ]]; then
echo "Please supply a version number for this release as the first argument."
exit
fi
echo "Creating OS X packages for Bitmessage."
export PYBITMESSAGEVERSION=$1
cd src && python2.7 build_osx.py py2app
if [[ $? = "0" ]]; then
hdiutil create -fs HFS+ -volname "Bitmessage" -srcfolder dist/Bitmessage.app dist/bitmessage-v$1.dmg
else
echo "Problem creating Bitmessage.app, stopping."
exit
fi