Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 1.56 KB

build-ginware-mac.md

File metadata and controls

72 lines (48 loc) · 1.56 KB

Building the GINware executable on macOS

You can build GINware for macOS by opening the Terminal app and running the following commands:

  • Install Homebrew:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    Installation takes about 5 minutes to complete.

  • Install Python 3:

    brew install python3
    
  • After the installation process completes, make sure that the Python version installed is 3.6 or newer. GINware won't compile on older versions of Python, or even older versions of Python 3:

    python3 --version
    

    You should see a response similar to the following:

    Python 3.6.4

  • Install virtualenv:

    pip3 install virtualenv
    
  • Create a Python virtual environment for GINware:

    cd ~
    mkdir projects
    mkdir projects/virtualenvs
    cd projects/virtualenvs
    virtualenv -p python3 gw-env
    
  • Activate the new virtual environment:

    source gw-env/bin/activate
    
  • Download the GINware source from GitHub:

    cd ~/projects
    git clone https://github.com/GIN-coin/ginware
    
  • Install the GINware Python requirements:

    cd ginware
    pip install -r requirements.txt
    
  • Build the GINware executable:

    pyinstaller --distpath=../dist/mac --workpath=../build/mac ginware.spec
    

Once the build has completed successfully, a compressed macOS executable file will be created in the ~/projects/dist/all directory. An uncompressed app package (GINware.app) can be found in the ~/projects/dist/mac directory.