mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-03-25 17:11:15 +08:00
Fix screen color picker not changing color
Fix portable version artifact name
This commit is contained in:
parent
4ef3cdb22e
commit
1960ccbe6a
2
main.js
2
main.js
@ -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)
|
||||
})
|
||||
}
|
||||
|
@ -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'});
|
||||
|
Loading…
x
Reference in New Issue
Block a user