Fix screen color picker not changing color

Fix portable version artifact name
This commit is contained in:
JannisX11 2021-06-24 13:44:26 +02:00
parent 4ef3cdb22e
commit 1960ccbe6a
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ ipcMain.on('request-color-picker', async (event, arg) => {
})
if (color) {
all_wins.forEach(win => {
if (win.isDestroyed() || (!arg.sync && win.webContents != event.sender.webContents)) return;
if (win.isDestroyed() || (!arg.sync && win.webContents.getProcessId() != event.sender.getProcessId())) return;
win.webContents.send('set-main-color', color)
})
}

View File

@ -4,7 +4,7 @@ const package_path = './package.json';
let package_file = fs.readFileSync(package_path, {encoding: 'utf-8'});
let package = JSON.parse(package_file);
package.build.artifactName = "${productName}_${arch}_${version}_portable.${ext}";
package.build.artifactName = "${productName}_${version}_portable.${ext}";
package_file = JSON.stringify(package, null, '\t');
fs.writeFileSync(package_path, package_file, {encoding: 'utf-8'});