Skip to content

Instantly share code, notes, and snippets.

@malfario
Last active May 10, 2019 16:51
Show Gist options
  • Save malfario/c5f9b98ab5093c54deaa150fbf489361 to your computer and use it in GitHub Desktop.
Save malfario/c5f9b98ab5093c54deaa150fbf489361 to your computer and use it in GitHub Desktop.
Build psi-plus
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install dependencies
$ brew install libsignal-protocol-c openssl hunspell coreutils qca qt
  • Update environment (fish shell)
$ set -gx PATH /usr/local/opt/qt/bin $PATH
$ set -gx LDFLAGS "-L/usr/local/opt/qt/lib"
$ set -gx CPPFLAGS "-I/usr/local/opt/qt/include"
$ set -gx PKG_CONFIG_PATH "/usr/local/opt/qt/lib/pkgconfig"
  • Clone psi-plus repository
$ git clone https://github.com/psi-plus/psi-plus-snapshots.git
$ cd psi-plus-snapshots
  • Uncomment line 48 in mac/build-using-homebrew.sh
export HOMEBREW="/usr/local"
  • Run build script
mac/build-using-homebrew.sh
  • Find build products in builddir/
# eg. for version 1.4.675
builddir/_CPack_Packages/Darwin/DragNDrop/Psi+-1.4.675-macOS10.12-x86_64/Psi+.app
builddir/Psi+-1.4.675-macOS10.12-x86_64.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment