/deltachat-desktop-dev-env

a wip/protoype of an deltachat desktop development enviroment

Primary LanguageShell

How to use this:

  1. Make sure you have rustup, nodejs, python and virtualenv installed

  2. Run init.sh (I didn't make a batch file for windows yet)

  3. If you want to use lldb in VSCode install that otherwise you should be up to go now.

  4. open workspace.code-workspace and install the recomended extentions for the workspace

  5. rebuild the core with ./rebuild-core.sh or running the task from the command pallete Ctrl+shift+P(on linux) > Tasks: Run Task > rebuild-all-dc-node

  6. start electron with

cd deltachat-desktop
npx electron .
  1. when electron is running press F5 and attach the debugger to the first electron process (should be the one with the lowest process id)

Info: the rust extention has some minor problems with this setup, because the support for multi folder workspaces isn't merged there yet rust-lang/vscode-rust#638

Use without vscode

rebuild core and bindings: run ./rebuild-core.sh or

cd deltachat-node
npm run rebuild-all
cd ..

start electron:

cd deltachat-desktop
npx electron .

other things

rebuild desktop after changing renderer javascript or scss: run ./build-js.sh or

cd deltachat-node
npm run build
cd ..

Python tests

To setup also run ./init_python_test_env.sh. (this script removes the virtual python enviroment then recreates it and installs all dependencies)

To run the tests run ./run-pytest.sh.

To debug the tests run ./scripts/install-py-bindings.sh and then start debugging with the Debug Tests (pytest) profile selected.

When you want to test the online tests you need to set the DCC_NEW_TMP_EMAIL enviroment variable, read more about it in deltachat-core-rust/python/README.rst.