Forked electron-react-boilerplate:https://github.com/chentsulin/electron-react-boilerplate
Inspired by electron-python:https://github.com/friddle/electron-python-example.git
Fixed to use python backend.
Because Js is suck to write background code.
Issue[zeromq/pyzmq#1105]
Fix by code blow
found code location:/usr/local/lib/python2.7/site-packages/zmq/init.py
try:
from . import libzmq
except ImportError as e:
pass
Change to
try:
from . import libzmq
except ImportError as e:
#for compatiable pyinstaller runner
import os;os.chdir(os.path.join(os.path.dirname(__file__),"../"))
import shutil;
if os.path.exists("./zmq/libzmq.so"): shutil.copy('./zmq/libzmq.so','./');
import libzmq
remove package test/flow method
Python/JS pass by zerorpc
All python code is in pysrc
1.run development environment:
yarn run start-render-dev
yarn run start-main-dev
2.run package
yarn run package-mac or other platform
more usage:please fix the update