Skip to content

kiri-to/electron-transcom

Repository files navigation

electron-transcom

使用方式

  • 安装项目依赖
 npm run install   
  • webpack打包
 npm run build   
  • 运行
 npm run start 
  • 打包成本机程序
 npm run distdir    //打包成exe
 npm run dist       //打包成安装包

踩坑记录

  • 安装模块时会执行模块的install,postinstall等script命令,安装electron时可能执行postinstall时出错,可以去module目录动执行'npm run postinstall'来编译出dist与path.txt
  • 若安装依赖时网络有问题请换成国内源: npm config set registry https://registry.npmmirror.com
  • 使用dist命令打包时,若出现获取github包报错信息可参考:electron-builder打包采坑问题汇总
  • 安装ffi-napi时,python版本必须小于3.12
  • 巨坑! 使用ffi-napi时,electron<=20.3.8,详情见:stackoverflow
  • cl编译cpp时,记得配INCLUDE,LIB这两个环境变量,别配到PATH了

About

Electron app to painting with scichart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published