1、打开PowerShell
win + x,选择Windows PowerShell(管理员)
2、命令行中输入:npm i -g nativefier
3、制作桌面软件
- 打开PowerShell
- 输入: nativefier “网址“。如:nativefier “https://www.arteryflow.com“
- 制作好的程序保存在:C:\Windows\system32\名称--win32-x64
4、 遇到的问题
使用命令行运行脚本时,出现系统上禁止运行脚本
解决:
- 将powershell切换为管理员模式下
Start-Process powershell -Verb runAs - 执行set-ExecutionPolicy RemoteSigned
- 选择Y