mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-30 09:59:02 -04:00
This commit is contained in:
parent
99fd05fa2a
commit
db75edf0a9
1 changed files with 11 additions and 4 deletions
15
BUILD.md
15
BUILD.md
|
@ -29,23 +29,30 @@ sudo yum install -y dist/onionshare-*.rpm
|
||||||
|
|
||||||
## Mac OS X
|
## Mac OS X
|
||||||
|
|
||||||
|
Install the [latest python 2.x](https://www.python.org/downloads/) from python.org. If you use the built-in version of python that comes with OS X, your .app might not run on other people's computers.
|
||||||
|
|
||||||
To install the right dependencies, you need homebrew and pip installed on your Mac. Follow instructions at http://brew.sh/ to install homebrew, and run `sudo easy_install pip` to install pip.
|
To install the right dependencies, you need homebrew and pip installed on your Mac. Follow instructions at http://brew.sh/ to install homebrew, and run `sudo easy_install pip` to install pip.
|
||||||
|
|
||||||
The first time you're setting up your dev environment:
|
The first time you're setting up your dev environment:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/micahflee/onionshare.git
|
|
||||||
cd onionshare
|
|
||||||
echo export PYTHONPATH=\$PYTHONPATH:/usr/local/lib/python2.7/site-packages/ >> ~/.profile
|
echo export PYTHONPATH=\$PYTHONPATH:/usr/local/lib/python2.7/site-packages/ >> ~/.profile
|
||||||
source ~/.profile
|
source ~/.profile
|
||||||
brew install qt4 pyqt
|
brew install qt4 pyqt
|
||||||
sudo pip install py2app flask stem
|
sudo pip install py2app flask stem
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Get the source code:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/micahflee/onionshare.git
|
||||||
|
cd onionshare
|
||||||
|
```
|
||||||
|
|
||||||
To build the .app:
|
To build the .app:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
python setup.py py2app
|
install/build_osx.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you should have `dist/OnionShare.app`.
|
Now you should have `dist/OnionShare.app`.
|
||||||
|
@ -53,7 +60,7 @@ Now you should have `dist/OnionShare.app`.
|
||||||
To codesign and build a .pkg for distribution:
|
To codesign and build a .pkg for distribution:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./install/build_osx.sh
|
install/build_osx.sh --sign
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you should have `dist/OnionShare.pkg`.
|
Now you should have `dist/OnionShare.pkg`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue