Make sure you have pyenv
installed
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.8
Based on the info found here
Install libraries:
$ brew cask install xquartz
$ brew install socat
In a separate terminal window, set up connection between docker display and host display:
$ socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &
Check if listener is working:
$ lsof -i TCP:6000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
socat 1520 simonprive 5u IPv4 0xff890ee3b20f652b 0t0 TCP *:6000 (LISTEN)
Run container and application
$ docker-compose -f docker-compose.dev.yml up
For deployment, Pyinstaller is used to package the application per platform.
- Make sure you have
PyInstaller
installed - From the project's root directory, run the following command:
$ pyinstaller --clean -y app.spec
The Linux version can also be built inside a Docker container.
For packaging a .app into a DMG, Create-DMG is used.
- Follow the instructions to install
create-dmg
. - Then, run the following command:
$ create-dmg dist/Mixcloud\ Bulk\ Downloader.app
TBD