Skip to content

Commit

Permalink
Put a stop to random icon glitches
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Jul 14, 2018
1 parent c34f003 commit de1574b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 70 deletions.
Binary file modified src/assets/icons/main.icns
Binary file not shown.
Binary file added src/assets/icons/main.ico
Binary file not shown.
63 changes: 1 addition & 62 deletions src/assets/icons/svg/vector_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 1 addition & 8 deletions vendor/svg_raster.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const Jimp = require('jimp');
const mkdirp = require('mkdirp');
const path = require('path');
const svg2png = require('svg2png');
const toIco = require('png-to-ico');

const basePath = path.resolve(__dirname, '..', 'src/assets/icons/svg');
const targetPath = path.resolve(__dirname, '..', 'build/assets/img');
Expand Down Expand Up @@ -37,13 +36,7 @@ module.exports = (cb) => {
};

// Generate ico and icns files
if (!fs.existsSync(path.resolve(targetPath, 'main.ico'))) {
toIco(path.resolve(targetPath, 'main.png')).then(buf => fs.writeFileSync(path.resolve(targetPath, 'main.ico'), buf))
.then(() => done())
.catch(err => console.error(err));
} else {
done();
}
done();

types.forEach((type) => {
const typeTargetPath = type ? path.resolve(targetPath, type) : targetPath;
Expand Down

0 comments on commit de1574b

Please sign in to comment.