This repository was archived by the owner on Jul 25, 2022. It is now read-only.
File tree 3 files changed +8
-20
lines changed
3 files changed +8
-20
lines changed Original file line number Diff line number Diff line change 51
51
"@types/ssh2" : " ^0.5.46" ,
52
52
"@typescript-eslint/eslint-plugin" : " ^4.11.0" ,
53
53
"@typescript-eslint/parser" : " ^4.11.0" ,
54
+ "copy-dir" : " ^1.3.0" ,
54
55
"electron" : " ^11.2.3" ,
55
56
"electron-builder" : " ^22.4.1" ,
56
57
"electron-rebuild" : " ^2.3.5" ,
60
61
"eslint-plugin-react" : " ^7.21.5" ,
61
62
"eslint-plugin-tsdoc" : " ^0.2.10" ,
62
63
"eslint-plugin-unused-imports" : " ^1.0.1" ,
63
- "fs-extra" : " ^9.1.0" ,
64
64
"husky" : " ^5.0.6" ,
65
65
"node-sass" : " ^5.0.0" ,
66
66
"sass-loader" : " ^10.1.0" ,
Original file line number Diff line number Diff line change @@ -4,15 +4,13 @@ console.log('Fetching app version...');
4
4
5
5
const package = require ( '../package.json' ) ;
6
6
const path = require ( 'path' ) ;
7
- const shell = require ( 'child_process' ) . execSync ;
7
+ const copydir = require ( 'copy-dir' ) ;
8
8
9
9
const isCanary = package . version . includes ( 'canary' ) ;
10
10
11
11
const iconDir = 'build' ;
12
12
const targetDir = path . join ( iconDir , isCanary ? 'canary' : 'default' ) ;
13
13
14
14
console . log ( `Copying ${ targetDir } to ${ iconDir } ...` ) ;
15
-
16
- shell ( `cp ${ targetDir } /* ${ iconDir } ` ) ;
17
-
15
+ copydir . sync ( targetDir , iconDir ) ;
18
16
console . log ( 'Done!' ) ;
Original file line number Diff line number Diff line change @@ -2647,6 +2647,11 @@ copy-descriptor@^0.1.0:
2647
2647
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
2648
2648
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=
2649
2649
2650
+ copy-dir@^1.3.0 :
2651
+ version "1.3.0"
2652
+ resolved "https://registry.yarnpkg.com/copy-dir/-/copy-dir-1.3.0.tgz#8c65130e11d8313a6ac2c0578e4c6c6f70b456ba"
2653
+ integrity sha512-Q4+qBFnN4bwGwvtXXzbp4P/4iNk0MaiGAzvQ8OiMtlLjkIKjmNN689uVzShSM0908q7GoFHXIPx4zi75ocoaHw==
2654
+
2650
2655
core-js-compat@^3.6.2 :
2651
2656
version "3.6.4"
2652
2657
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.4.tgz#938476569ebb6cda80d339bcf199fae4f16fff17"
@@ -4171,16 +4176,6 @@ fs-extra@^9.0.1:
4171
4176
jsonfile "^6.0.1"
4172
4177
universalify "^1.0.0"
4173
4178
4174
- fs-extra@^9.1.0 :
4175
- version "9.1.0"
4176
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
4177
- integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
4178
- dependencies :
4179
- at-least-node "^1.0.0"
4180
- graceful-fs "^4.2.0"
4181
- jsonfile "^6.0.1"
4182
- universalify "^2.0.0"
4183
-
4184
4179
fs-minipass@^1.2.5 :
4185
4180
version "1.2.7"
4186
4181
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7"
@@ -8869,11 +8864,6 @@ universalify@^1.0.0:
8869
8864
resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d"
8870
8865
integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==
8871
8866
8872
- universalify@^2.0.0 :
8873
- version "2.0.0"
8874
- resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
8875
- integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
8876
-
8877
8867
8878
8868
version "1.0.0"
8879
8869
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
You can’t perform that action at this time.
0 commit comments