electorn 入门 构建开源播放器

1, 安装 npm http://nodejs.cn/download/ 下载安装对应版本的,这里是 
node-v16.16.0-win-x64.zip

2,全局安装cnpm
npm install cnpm -g --registry=http://registry.npm.taobao.org

3, 编译示例工程 git clone https://github.com/electron/electron-quick-start

cd electron-quick-start
npm config set ELECTRON_MIRROR http://npm.taobao.org/mirrors/electron/
npm install
npm start

会出现 hello world

 

4, ZY-Player-master
git clone https://github.com/Hunlongyu/ZY-Player.git
cd ZY-Player
npm install
npm run release

win-unpacked 是原始的未打包的,也能直接运行。

 

posted @ 2022-07-24 09:44  宁次  阅读(80)  评论(0编辑  收藏  举报