Skip to content

Commit c90b424

Browse files
authored
Merge pull request #220 from muffinista/electron-32
Upgrade to electron 32
2 parents d7db363 + 13e35e9 commit c90b424

File tree

5 files changed

+1874
-17339
lines changed

5 files changed

+1874
-17339
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ The core of the app is built on [Electron](https://www.electronjs.org/), a syste
1818
that allows you to build desktop applications that run on
1919
[node.js](https://nodejs.org/) and are rendered via Chrome.
2020

21-
There's about a dozen screensavers right now, with more on the way. Here's the
22-
Flying Emoji screensaver:
21+
There's a bunch of screensavers to choose from. Here's the Flying Emoji screensaver:
2322

2423
![flying
2524
emoji](https://github.com/muffinista/before-dawn/raw/main/assets/emoji-on-monitor-opt.gif
@@ -124,7 +123,7 @@ suggestion, please feel free to open an issue here.
124123

125124
## Copyright/License
126125

127-
Unless otherwise stated, Copyright (c) 2022 [Colin
126+
Unless otherwise stated, Copyright (c) 2024 [Colin
128127
Mitchell](http://muffinlabs.com).
129128

130129
Before Dawn is is distributed under the MIT licence -- Please see LICENSE.txt

bin/build-icon.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env node
22

3-
/* eslint-disable no-console */
43
import "dotenv/config";
54
import * as path from "path";
65
import * as tmp from "tmp";
76
import * as fs from "fs";
87
import pngToIco from "png-to-ico";
9-
import Jimp from "jimp";
8+
import { Jimp } from "jimp";
109

1110
const sizes = [256, 128, 48, 32, 16];
1211

@@ -25,14 +24,14 @@ async function main() {
2524

2625
// const images = sizes.map(async (s) => {
2726
const name = path.join(tmpDir, `icon-${size}.png`);
28-
await image.resize(size, Jimp.AUTO);
29-
await image.writeAsync(name);
27+
await image.resize({w: size, h: size});
28+
await image.write(name);
3029

3130
outputs.push(name);
3231

3332
const pausedName = path.join(tmpDir, `icon-paused-${size}.png`);
34-
await pauseImage.resize(size, Jimp.AUTO);
35-
await pauseImage.writeAsync(pausedName);
33+
await pauseImage.resize({w: size, h: size});
34+
await pauseImage.write(pausedName);
3635

3736
pauseOutputs.push(pausedName);
3837
}

0 commit comments

Comments
 (0)