下载对应版本压缩包,并解压,比如:electron-v31.3.0-win32-x64.zip 解压到 c:/electron 目录 设置环境变量 ELECTRON_OVERRIDE_DIST_PATH 为解压后目录 安装electron包:npm i electron --save-dev --ignore-scripts 安装完成后,手动把c:/electron下文件拷到node_modules/electron/dist目录 在node_modules/electron...
有的项目就是为桌面端开发的,也就是在开发的时候启动两个进程(一个vue项目进程,一个electron进程,electron加载本地的一个端口数据),这时候就需要我们先将vue打包,在打包electron。有nodejs基础的,可以根据自己项目的情况,开发一键打包命令,没有基础的就只能绕个弯分次打包(期望以后有兼容性好的打包插件出现吧) 所...
#创建可分发的应用程序npm run make#在这报错了Makingforthe following targets: squirrel ✖ Makingfortarget: squirrel - On platform: win32 - Forarch: x64 借鉴了博客:https://blog.csdn.net/My__God/article/details/111139222 解决方法:在package.json文件中,配置description与author,让该字段配置信息不为...
首先package.json,scripts里面要新增 --arch x64代表64位, --platform win32 代表windows包 "package2": "electron-forge package --arch x64 --platform win32", "make2": "electron-forge make --arch x64 --platform win32", "scripts": { "start": "electron-forge start", "package": "electron...
"win": { "target": "squirrel", "icon": "src/favicon.ico" // 自定义exe文件图标 } }, "config": { "forge": { "make_targets": { "win32": [ "squirrel" ], "darwin": [ "zip" ], "linux": [ "deb", "rpm" ] },
在WSL (Windows Subsystem for Linux) 中使用 Electron Forge 为 Electron 项目打包 .deb 文件时,如果你遇到了与 Squirrel 相关的错误或输出,这可能是因为 Electron Forge 试图为 Windows 平台打包应用程序,而不是 Debian 或其他 Linux 发行版。 Electron Forge 支持为多种平台打包应用程序,但你需要确保你正确配置了...
"makeWinOnArm64": "export PATH=$HOME/wine_proxy:$PATH && electron-forge make --arch=x64 --platform=win32", Just a reminder that you cannot have native dependencies. And even if this all works, I'm already facing the next issues in Windows running the exe - it shows me a log from...
1.如果某个模块被列为外部模块,则在打包过程中将删除该模块。所以在你的forge配置中,你需要在构建过程...
本篇将基于vivo技术团队的技术实践,详细阐述了vivo在使用Electron进行跨端桌面开发时的技术栈选型考量,同时分享了在打包构建、版本更新、性能优化、质量保障、安全性等方面的实践方案和踩坑总结。学习交流: - 移动端IM开发入门文章:《新手入门一篇就够:从零开发移动端IM》 - 开源IM框架源码:https://github.com/...
1.如果某个模块被列为外部模块,则在打包过程中将删除该模块。所以在你的forge配置中,你需要在构建过程...