1.9 KiB
Development environment
After cloning this git repo, make sure to checkout the git submodules.
git submodule init
git submodule update
Debian/Ubuntu
You need podman (these instructions are useful for installing in Debian or Ubuntu).
Install dependencies:
sudo apt install -y python3 python3-pyqt5 python3-appdirs python3-click python3-xdg
Run from source tree:
./dev_script/dangerzone
Create a .deb:
./install/linux/build_deb.py
macOS
macOS
Install Xcode from the Mac App Store. Once it's installed, run it for the first time to set it up. Also, run this to make sure command line tools are installed: xcode-select --install
. And finally, open Xcode, go to Preferences > Locations, and make sure under Command Line Tools you select an installed version from the dropdown. (This is required for installing Qt5.)
Download and install Python 3.7.4 from https://www.python.org/downloads/release/python-374/. I downloaded python-3.7.4-macosx10.9.pkg
.
Install Qt 5.14.0 for macOS from https://www.qt.io/offline-installers. I downloaded qt-opensource-mac-x64-5.14.0.dmg
. In the installer, you can skip making an account, and all you need is Qt
> Qt 5.14.0
> macOS
.
If you don't have it already, install pipenv (pip3 install --user pipenv
). Then install dependencies:
pipenv install --dev --pre
Run from source tree:
pipenv run ./dev_scripts/dangerzone
Create an app bundle:
pipenv run ./install/macos/build_app.py
This will create dist/Dangerzone.app
.
Once you have an app bundle, create a .pkg
for distribution:
pipenv run install/macos/build_pkg.py # this requires codesigning certificates
pipenv run install/macos/build_pkg.py --without-codesign # this doesn't
This will create dist/Dangerzone-[version].pkg
.