mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Bundle tray icons in repo (#5362)
This commit is contained in:
1 parent
d2abd582bc
commit
d99cc5a015
8 files changed
+9
-14
No files matched your search
@@ -28,23 +28,23 @@ console.log("Generating tray icon pngs");
|
||||
|
||||
ensureDirSync(outputFolder);
|
||||
|
||||
Promise.allSettled([
|
||||
sharp(Buffer.from(darkTemplate))
|
||||
Promise.all([
|
||||
sharp(Buffer.from(lightTemplate))
|
||||
.resize({ width: size, height: size })
|
||||
.png()
|
||||
.toFile(path.join(outputFolder, "trayIconDarkTemplate.png")),
|
||||
sharp(Buffer.from(darkTemplate))
|
||||
sharp(Buffer.from(lightTemplate))
|
||||
.resize({ width: size*2, height: size*2 })
|
||||
.png()
|
||||
.toFile(path.join(outputFolder, "trayIconDarkTemplate@2x.png")),
|
||||
sharp(Buffer.from(lightTemplate))
|
||||
sharp(Buffer.from(darkTemplate))
|
||||
.resize({ width: size, height: size })
|
||||
.png()
|
||||
.toFile(path.join(outputFolder, "trayIconTemplate.png")),
|
||||
sharp(Buffer.from(lightTemplate))
|
||||
sharp(Buffer.from(darkTemplate))
|
||||
.resize({ width: size*2, height: size*2 })
|
||||
.png()
|
||||
.toFile(path.join(outputFolder, "trayIconTemplate@2x.png")),
|
||||
])
|
||||
.then(console.log)
|
||||
.then((resolutions) => console.log(`Generated ${resolutions.length} images`))
|
||||
.catch(console.error);
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 392 B |
Binary file not shown.
|
After Width: | Height: | Size: 724 B |
Binary file not shown.
|
After Width: | Height: | Size: 397 B |
Binary file not shown.
|
After Width: | Height: | Size: 717 B |
Reference in new issue
Block a user