方案一:nativefier
1.线上网址转成 exe 文件
安装nodejs 和 安装nativefier npm install nativefier -g
打包网站:nativefier --name "名字" "http://xxx.xx.xx.x"
2.直接发文件夹中exe使用或者发setup.exe程序给用户:
安装Inno setup :安装包exe 转成 setup.exe 程序
方案一:electron
1.线上网址转成 exe 文件
安装nodejs 和 安装electron // 强烈建议先运行成功官网的快速启动再在项目中修改
electron的3种方案:<iframe>标签, <webview>标签, BrowserViews(采用) 区别:http://www.electronjs.org/docs/tutorial/web-embeds#iframe
编写main.js和配置package.json
打包:使用electron-builder(采用)
或者 electron-packager
2.直接发文件夹中exe使用或者发setup.exe程序给用户:
安装包exe 转成 setup.exe 程序: 同上安装Inno setup
其他:建议配置国内淘宝源
强烈建议使用 BrowserViews(采用)
方案二:用node-webkit(NW.js)创建桌面程序
暂无
备注: windows,mac,linux的图标配置默认使用build/icons/下的png图,png图命名需要使用尺寸.png方式,如果没有该路径或png,会使用electron的图标
mac:512*512 转icns
win:256*256 转 icon
linux: 256*256 icns