根目录下
cd server
sh __shell/init.sh
sh __shell/install.sh
根目录下
cd app
npm install
npm run start:dev
构建结果存储在根目录下 __dist目录
cd server
sh __shell/build.sh
构建结果如下(__dist目录下)
.
└── server
└── app
├── _internal
│ ├── Python -> Python.framework/Versions/3.10/Python
│ ├── Python.framework
│ ├── __static
│ ├── base_library.zip
│ ├── flask-3.0.0.dist-info
│ ├── lib-dynload
│ ├── libcrypto.1.1.dylib
│ ├── liblzma.5.dylib
│ ├── libmpdec.3.dylib
│ ├── libreadline.8.dylib
│ ├── libssl.1.1.dylib
│ ├── markupsafe
│ └── werkzeug-3.0.0.dist-info
└── app
根目录下
cd app
npm run dist
构建结果如下(__dist目录下)
.
├── server
│ └── app
│ ├── _internal
│ └── app
└── target
├── builder-effective-config.yaml
├── electron-python-app-1.0.0-universal.dmg
├── electron-python-app-1.0.0-universal.dmg.blockmap
└── mac-universal
└── electron-python-app.app