GithubHelp home page GithubHelp logo

apibull's Introduction

在开始菜单中搜索cmd,右键,管理员模式运行。
然后 cd /d "项目路径",再执行以下操作,否则electron-builder会报错。

开发时electron的入口文件为public/electron.js,内容为locaohost:3000/
打包后electron的入口文件为build/electron.js,内容为file://build/*

需要Python,且在环境变量Path中有python. (打安装包用)
需要Windows Build Tools。 link
需要全局代理。electron build会从github下载东西。

npx nrm use taobao

npm install --global windows-build-tools

set ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"

npm i --sass-binary-site=https://npm.taobao.org/mirrors/node-sass --registry=https://registry.npm.taobao.org

https://electron-react-boilerplate.js.org/docs/installation-debugging-solutions/
https://www.electronjs.org/docs/tutorial/installation#proxies

第三方依赖

Ant Design React (create-react-app) https://ant.design/docs/react/use-with-create-react-app-cn

antd moment

apibull's People

Contributors

lgh06 avatar

Stargazers

 avatar

Watchers

 avatar  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.