electron在windows任务栏添加进度条,需要用到setProgressBar()方法
const remote = require('electron').remote;
const win = remote.getCurrentWindow();//获取到当前窗口
win.setProgressBar(0.3);//0.3就是30%
const win = remote.getCurrentWindow();//获取到当前窗口
win.setProgressBar(0.3);//0.3就是30%