Giter Club home page Giter Club logo

electron-python-app's Introduction

预期结果

1696658500933.jpg

step 01 server 环境准备

根目录下

cd server

1.1 初始化

sh __shell/init.sh

1.2 安装依赖

sh __shell/install.sh

step 02 启动开发环境

根目录下

cd app

2.1 安装依赖

npm install

2.2 启动开发环境

npm run start:dev 

1696659201617.jpg

step 03 构建打包

构建结果存储在根目录下 __dist目录

3.1 构建 python app

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

3.1 构建 electron

根目录下

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

electron-python-app's People

Contributors

jacobdong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.