Skip to content

Latest commit

 

History

History
123 lines (82 loc) · 1.94 KB

build.md

File metadata and controls

123 lines (82 loc) · 1.94 KB

App Building

For macos

You must have git, node 10.x, xcode and npm or yarn

Building process

  1. Clone https://github.com/PeterDing/chord
git clone https://github.com/PeterDing/chord chord
  1. Install dependences, I use yarn here
cd chord
yarn install
  1. Compile typescript files
yarn run compile
  1. Build dmg
yarn run dist:mac

Build on Windows

You must have git, node 10.x and npm or yarn, python2.7.x

The v140 Platform Toolset is needed.

Building process

  1. Clone https://github.com/PeterDing/chord
git clone https://github.com/PeterDing/chord chord
  1. Install dependences, I use yarn here
cd chord
yarn install
  1. Compile typescript files
yarn run compile
  1. Clean breaking linking
cd build
python clean-windows-fail-links.py
cd ..
  1. Build exe
yarn run dist:win

Build on linux (ubuntu)

You must have git, node 10.x and npm or yarn

build-essential is also needed

  1. Install tools
sudo apt update
sudo apt install -y build-essential gcc g++ make bsdtar

# Install nodejs
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get update && sudo apt-get install -y nodejs

# Install yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install -y yarn

sudo apt install -y python-dev
  1. Clone https://github.com/PeterDing/chord
git clone https://github.com/PeterDing/chord chord
  1. Install dependences, I use yarn here
cd chord
yarn install
  1. Compile typescript files
yarn run compile
  1. Build package
yarn run dist:linux