Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit fe80e6a

Browse files
fix(install): Update install command to use new release URL format (#53)
1 parent 12a4d8b commit fe80e6a

File tree

11 files changed

+275
-2
lines changed

11 files changed

+275
-2
lines changed

bin/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ require('yargs')
179179
await rimrafAsync(tmpDirPath);
180180
await mkdirpAsync(tmpDirPath);
181181

182-
const releaseUrl = `http://github.com/brainly/html-sketchapp/releases/download/v${version}/asketch2sketch.sketchplugin.zip`;
182+
const [ major, minor, patch ] = version.split('.');
183+
const releaseUrl = `http://github.com/brainly/html-sketchapp/releases/download/v${version}/asketch2sketch-${major}-${minor}-${patch}.sketchplugin.zip`;
183184
console.log(`Downloading from ${releaseUrl}`);
184185
const axios = require('axios');
185186
const { data } = await axios(releaseUrl, { responseType: 'arraybuffer' });

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"homepage": "https://github.com/seek-oss/html-sketchapp-cli#readme",
3838
"dependencies": {
39-
"@brainly/html-sketchapp": "^3.0.0",
39+
"@brainly/html-sketchapp": "^3.2.0",
4040
"axios": "^0.18.0",
4141
"decompress": "^4.2.0",
4242
"es6-promisify": "^6.0.0",

test/config-file-path/__snapshots__/file.test.js.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Object {
9494
},
9595
"document.page.json": Object {
9696
"_class": "page",
97+
"clippingMaskMode": 0,
9798
"do_objectID": "__GUID__",
9899
"exportOptions": Object {
99100
"_class": "exportOptions",
@@ -111,6 +112,7 @@ Object {
111112
"y": 0,
112113
},
113114
"hasClickThrough": true,
115+
"hasClippingMask": false,
114116
"horizontalRulerData": Object {
115117
"_class": "rulerData",
116118
"base": 0,
@@ -133,6 +135,7 @@ Object {
133135
"red": 1,
134136
},
135137
"changeIdentifier": 0,
138+
"clippingMaskMode": 0,
136139
"do_objectID": "__GUID__",
137140
"exportOptions": Object {
138141
"_class": "exportOptions",
@@ -151,6 +154,7 @@ Object {
151154
},
152155
"hasBackgroundColor": false,
153156
"hasClickThrough": true,
157+
"hasClippingMask": false,
154158
"horizontalRulerData": Object {
155159
"_class": "rulerData",
156160
"base": 0,
@@ -195,6 +199,7 @@ Object {
195199
Object {
196200
"_class": "rectangle",
197201
"booleanOperation": -1,
202+
"clippingMaskMode": 0,
198203
"do_objectID": "__GUID__",
199204
"edited": false,
200205
"exportOptions": Object {
@@ -213,6 +218,7 @@ Object {
213218
"x": 0,
214219
"y": 0,
215220
},
221+
"hasClippingMask": false,
216222
"hasConvertedToNewRoundCorners": true,
217223
"isFlippedHorizontal": false,
218224
"isFlippedVertical": false,
@@ -333,6 +339,7 @@ Object {
333339
Object {
334340
"_class": "text",
335341
"automaticallyDrawOnUnderlyingPath": false,
342+
"clippingMaskMode": 0,
336343
"do_objectID": "__GUID__",
337344
"dontSynchroniseWithSymbol": false,
338345
"exportOptions": Object {
@@ -350,6 +357,7 @@ Object {
350357
"x": 20,
351358
"y": 10,
352359
},
360+
"hasClippingMask": false,
353361
"isFlippedHorizontal": false,
354362
"isFlippedVertical": false,
355363
"isLocked": false,
@@ -405,6 +413,7 @@ Object {
405413
"red": 1,
406414
},
407415
"changeIdentifier": 0,
416+
"clippingMaskMode": 0,
408417
"do_objectID": "__GUID__",
409418
"exportOptions": Object {
410419
"_class": "exportOptions",
@@ -423,6 +432,7 @@ Object {
423432
},
424433
"hasBackgroundColor": false,
425434
"hasClickThrough": true,
435+
"hasClippingMask": false,
426436
"horizontalRulerData": Object {
427437
"_class": "rulerData",
428438
"base": 0,
@@ -467,6 +477,7 @@ Object {
467477
Object {
468478
"_class": "rectangle",
469479
"booleanOperation": -1,
480+
"clippingMaskMode": 0,
470481
"do_objectID": "__GUID__",
471482
"edited": false,
472483
"exportOptions": Object {
@@ -485,6 +496,7 @@ Object {
485496
"x": 0,
486497
"y": 0,
487498
},
499+
"hasClippingMask": false,
488500
"hasConvertedToNewRoundCorners": true,
489501
"isFlippedHorizontal": false,
490502
"isFlippedVertical": false,
@@ -605,6 +617,7 @@ Object {
605617
Object {
606618
"_class": "text",
607619
"automaticallyDrawOnUnderlyingPath": false,
620+
"clippingMaskMode": 0,
608621
"do_objectID": "__GUID__",
609622
"dontSynchroniseWithSymbol": false,
610623
"exportOptions": Object {
@@ -622,6 +635,7 @@ Object {
622635
"x": 20,
623636
"y": 10,
624637
},
638+
"hasClippingMask": false,
625639
"isFlippedHorizontal": false,
626640
"isFlippedVertical": false,
627641
"isLocked": false,
@@ -677,6 +691,7 @@ Object {
677691
"red": 1,
678692
},
679693
"changeIdentifier": 0,
694+
"clippingMaskMode": 0,
680695
"do_objectID": "__GUID__",
681696
"exportOptions": Object {
682697
"_class": "exportOptions",
@@ -695,6 +710,7 @@ Object {
695710
},
696711
"hasBackgroundColor": false,
697712
"hasClickThrough": true,
713+
"hasClippingMask": false,
698714
"horizontalRulerData": Object {
699715
"_class": "rulerData",
700716
"base": 0,
@@ -739,6 +755,7 @@ Object {
739755
Object {
740756
"_class": "rectangle",
741757
"booleanOperation": -1,
758+
"clippingMaskMode": 0,
742759
"do_objectID": "__GUID__",
743760
"edited": false,
744761
"exportOptions": Object {
@@ -757,6 +774,7 @@ Object {
757774
"x": 0,
758775
"y": 0,
759776
},
777+
"hasClippingMask": false,
760778
"hasConvertedToNewRoundCorners": true,
761779
"isFlippedHorizontal": false,
762780
"isFlippedVertical": false,
@@ -877,6 +895,7 @@ Object {
877895
Object {
878896
"_class": "text",
879897
"automaticallyDrawOnUnderlyingPath": false,
898+
"clippingMaskMode": 0,
880899
"do_objectID": "__GUID__",
881900
"dontSynchroniseWithSymbol": false,
882901
"exportOptions": Object {
@@ -894,6 +913,7 @@ Object {
894913
"x": 20,
895914
"y": 10,
896915
},
916+
"hasClippingMask": false,
897917
"isFlippedHorizontal": false,
898918
"isFlippedVertical": false,
899919
"isLocked": false,

test/config-file/__snapshots__/file.test.js.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Object {
9494
},
9595
"document.page.json": Object {
9696
"_class": "page",
97+
"clippingMaskMode": 0,
9798
"do_objectID": "__GUID__",
9899
"exportOptions": Object {
99100
"_class": "exportOptions",
@@ -111,6 +112,7 @@ Object {
111112
"y": 0,
112113
},
113114
"hasClickThrough": true,
115+
"hasClippingMask": false,
114116
"horizontalRulerData": Object {
115117
"_class": "rulerData",
116118
"base": 0,
@@ -133,6 +135,7 @@ Object {
133135
"red": 1,
134136
},
135137
"changeIdentifier": 0,
138+
"clippingMaskMode": 0,
136139
"do_objectID": "__GUID__",
137140
"exportOptions": Object {
138141
"_class": "exportOptions",
@@ -151,6 +154,7 @@ Object {
151154
},
152155
"hasBackgroundColor": false,
153156
"hasClickThrough": true,
157+
"hasClippingMask": false,
154158
"horizontalRulerData": Object {
155159
"_class": "rulerData",
156160
"base": 0,
@@ -195,6 +199,7 @@ Object {
195199
Object {
196200
"_class": "rectangle",
197201
"booleanOperation": -1,
202+
"clippingMaskMode": 0,
198203
"do_objectID": "__GUID__",
199204
"edited": false,
200205
"exportOptions": Object {
@@ -213,6 +218,7 @@ Object {
213218
"x": 0,
214219
"y": 0,
215220
},
221+
"hasClippingMask": false,
216222
"hasConvertedToNewRoundCorners": true,
217223
"isFlippedHorizontal": false,
218224
"isFlippedVertical": false,
@@ -333,6 +339,7 @@ Object {
333339
Object {
334340
"_class": "text",
335341
"automaticallyDrawOnUnderlyingPath": false,
342+
"clippingMaskMode": 0,
336343
"do_objectID": "__GUID__",
337344
"dontSynchroniseWithSymbol": false,
338345
"exportOptions": Object {
@@ -350,6 +357,7 @@ Object {
350357
"x": 20,
351358
"y": 10,
352359
},
360+
"hasClippingMask": false,
353361
"isFlippedHorizontal": false,
354362
"isFlippedVertical": false,
355363
"isLocked": false,
@@ -405,6 +413,7 @@ Object {
405413
"red": 1,
406414
},
407415
"changeIdentifier": 0,
416+
"clippingMaskMode": 0,
408417
"do_objectID": "__GUID__",
409418
"exportOptions": Object {
410419
"_class": "exportOptions",
@@ -423,6 +432,7 @@ Object {
423432
},
424433
"hasBackgroundColor": false,
425434
"hasClickThrough": true,
435+
"hasClippingMask": false,
426436
"horizontalRulerData": Object {
427437
"_class": "rulerData",
428438
"base": 0,
@@ -467,6 +477,7 @@ Object {
467477
Object {
468478
"_class": "rectangle",
469479
"booleanOperation": -1,
480+
"clippingMaskMode": 0,
470481
"do_objectID": "__GUID__",
471482
"edited": false,
472483
"exportOptions": Object {
@@ -485,6 +496,7 @@ Object {
485496
"x": 0,
486497
"y": 0,
487498
},
499+
"hasClippingMask": false,
488500
"hasConvertedToNewRoundCorners": true,
489501
"isFlippedHorizontal": false,
490502
"isFlippedVertical": false,
@@ -605,6 +617,7 @@ Object {
605617
Object {
606618
"_class": "text",
607619
"automaticallyDrawOnUnderlyingPath": false,
620+
"clippingMaskMode": 0,
608621
"do_objectID": "__GUID__",
609622
"dontSynchroniseWithSymbol": false,
610623
"exportOptions": Object {
@@ -622,6 +635,7 @@ Object {
622635
"x": 20,
623636
"y": 10,
624637
},
638+
"hasClippingMask": false,
625639
"isFlippedHorizontal": false,
626640
"isFlippedVertical": false,
627641
"isLocked": false,
@@ -677,6 +691,7 @@ Object {
677691
"red": 1,
678692
},
679693
"changeIdentifier": 0,
694+
"clippingMaskMode": 0,
680695
"do_objectID": "__GUID__",
681696
"exportOptions": Object {
682697
"_class": "exportOptions",
@@ -695,6 +710,7 @@ Object {
695710
},
696711
"hasBackgroundColor": false,
697712
"hasClickThrough": true,
713+
"hasClippingMask": false,
698714
"horizontalRulerData": Object {
699715
"_class": "rulerData",
700716
"base": 0,
@@ -739,6 +755,7 @@ Object {
739755
Object {
740756
"_class": "rectangle",
741757
"booleanOperation": -1,
758+
"clippingMaskMode": 0,
742759
"do_objectID": "__GUID__",
743760
"edited": false,
744761
"exportOptions": Object {
@@ -757,6 +774,7 @@ Object {
757774
"x": 0,
758775
"y": 0,
759776
},
777+
"hasClippingMask": false,
760778
"hasConvertedToNewRoundCorners": true,
761779
"isFlippedHorizontal": false,
762780
"isFlippedVertical": false,
@@ -877,6 +895,7 @@ Object {
877895
Object {
878896
"_class": "text",
879897
"automaticallyDrawOnUnderlyingPath": false,
898+
"clippingMaskMode": 0,
880899
"do_objectID": "__GUID__",
881900
"dontSynchroniseWithSymbol": false,
882901
"exportOptions": Object {
@@ -894,6 +913,7 @@ Object {
894913
"x": 20,
895914
"y": 10,
896915
},
916+
"hasClippingMask": false,
897917
"isFlippedHorizontal": false,
898918
"isFlippedVertical": false,
899919
"isLocked": false,

0 commit comments

Comments
 (0)