Skip to content

Commit

Permalink
Merge pull request #220 from muffinista/electron-32
Browse files Browse the repository at this point in the history
Upgrade to electron 32
  • Loading branch information
muffinista authored Oct 12, 2024
2 parents d7db363 + 13e35e9 commit c90b424
Show file tree
Hide file tree
Showing 5 changed files with 1,874 additions and 17,339 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ The core of the app is built on [Electron](https://www.electronjs.org/), a syste
that allows you to build desktop applications that run on
[node.js](https://nodejs.org/) and are rendered via Chrome.

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

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

## Copyright/License

Unless otherwise stated, Copyright (c) 2022 [Colin
Unless otherwise stated, Copyright (c) 2024 [Colin
Mitchell](http://muffinlabs.com).

Before Dawn is is distributed under the MIT licence -- Please see LICENSE.txt
Expand Down
11 changes: 5 additions & 6 deletions bin/build-icon.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env node

/* eslint-disable no-console */
import "dotenv/config";
import * as path from "path";
import * as tmp from "tmp";
import * as fs from "fs";
import pngToIco from "png-to-ico";
import Jimp from "jimp";
import { Jimp } from "jimp";

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

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

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

outputs.push(name);

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

pauseOutputs.push(pausedName);
}
Expand Down
Loading

0 comments on commit c90b424

Please sign in to comment.