Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
build: Fix icon setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiiBz committed Mar 13, 2021
1 parent 9509487 commit 2cf889c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@types/ssh2": "^0.5.46",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"copy-dir": "^1.3.0",
"electron": "^11.2.3",
"electron-builder": "^22.4.1",
"electron-rebuild": "^2.3.5",
Expand All @@ -60,7 +61,6 @@
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-tsdoc": "^0.2.10",
"eslint-plugin-unused-imports": "^1.0.1",
"fs-extra": "^9.1.0",
"husky": "^5.0.6",
"node-sass": "^5.0.0",
"sass-loader": "^10.1.0",
Expand Down
6 changes: 2 additions & 4 deletions scripts/setupIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ console.log('Fetching app version...');

const package = require('../package.json');
const path = require('path');
const shell = require('child_process').execSync;
const copydir = require('copy-dir');

const isCanary = package.version.includes('canary');

const iconDir = 'build';
const targetDir = path.join(iconDir, isCanary ? 'canary' : 'default');

console.log(`Copying ${targetDir} to ${iconDir}...`);

shell(`cp ${targetDir}/* ${iconDir}`);

copydir.sync(targetDir, iconDir);
console.log('Done!');
20 changes: 5 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2647,6 +2647,11 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=

copy-dir@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/copy-dir/-/copy-dir-1.3.0.tgz#8c65130e11d8313a6ac2c0578e4c6c6f70b456ba"
integrity sha512-Q4+qBFnN4bwGwvtXXzbp4P/4iNk0MaiGAzvQ8OiMtlLjkIKjmNN689uVzShSM0908q7GoFHXIPx4zi75ocoaHw==

core-js-compat@^3.6.2:
version "3.6.4"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.4.tgz#938476569ebb6cda80d339bcf199fae4f16fff17"
Expand Down Expand Up @@ -4171,16 +4176,6 @@ fs-extra@^9.0.1:
jsonfile "^6.0.1"
universalify "^1.0.0"

fs-extra@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
dependencies:
at-least-node "^1.0.0"
graceful-fs "^4.2.0"
jsonfile "^6.0.1"
universalify "^2.0.0"

fs-minipass@^1.2.5:
version "1.2.7"
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7"
Expand Down Expand Up @@ -8869,11 +8864,6 @@ universalify@^1.0.0:
resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d"
integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==

universalify@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==

[email protected], unpipe@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
Expand Down

0 comments on commit 2cf889c

Please sign in to comment.