electron-cli 0.3.0-alpha.7 → 0.3.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Cargo.lock CHANGED
@@ -64,12 +64,33 @@ version = "1.0.102"
64
64
  source = "registry+https://github.com/rust-lang/crates.io-index"
65
65
  checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
66
66
 
67
+ [[package]]
68
+ name = "autocfg"
69
+ version = "1.5.1"
70
+ source = "registry+https://github.com/rust-lang/crates.io-index"
71
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
72
+
67
73
  [[package]]
68
74
  name = "base64"
69
75
  version = "0.22.1"
70
76
  source = "registry+https://github.com/rust-lang/crates.io-index"
71
77
  checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
72
78
 
79
+ [[package]]
80
+ name = "bitflags"
81
+ version = "2.11.1"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
84
+
85
+ [[package]]
86
+ name = "block-buffer"
87
+ version = "0.10.4"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
90
+ dependencies = [
91
+ "generic-array",
92
+ ]
93
+
73
94
  [[package]]
74
95
  name = "camino"
75
96
  version = "1.2.2"
@@ -116,7 +137,7 @@ dependencies = [
116
137
  "heck",
117
138
  "proc-macro2",
118
139
  "quote",
119
- "syn",
140
+ "syn 2.0.117",
120
141
  ]
121
142
 
122
143
  [[package]]
@@ -131,6 +152,15 @@ version = "1.0.5"
131
152
  source = "registry+https://github.com/rust-lang/crates.io-index"
132
153
  checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
133
154
 
155
+ [[package]]
156
+ name = "cpufeatures"
157
+ version = "0.2.17"
158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
159
+ checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
160
+ dependencies = [
161
+ "libc",
162
+ ]
163
+
134
164
  [[package]]
135
165
  name = "crc32fast"
136
166
  version = "1.5.0"
@@ -140,6 +170,16 @@ dependencies = [
140
170
  "cfg-if",
141
171
  ]
142
172
 
173
+ [[package]]
174
+ name = "crypto-common"
175
+ version = "0.1.7"
176
+ source = "registry+https://github.com/rust-lang/crates.io-index"
177
+ checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
178
+ dependencies = [
179
+ "generic-array",
180
+ "typenum",
181
+ ]
182
+
143
183
  [[package]]
144
184
  name = "deranged"
145
185
  version = "0.5.8"
@@ -149,35 +189,107 @@ dependencies = [
149
189
  "powerfmt",
150
190
  ]
151
191
 
192
+ [[package]]
193
+ name = "digest"
194
+ version = "0.10.7"
195
+ source = "registry+https://github.com/rust-lang/crates.io-index"
196
+ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
197
+ dependencies = [
198
+ "block-buffer",
199
+ "crypto-common",
200
+ ]
201
+
202
+ [[package]]
203
+ name = "either"
204
+ version = "1.16.0"
205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
206
+ checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
207
+
152
208
  [[package]]
153
209
  name = "electron-cli"
154
- version = "0.3.0-alpha.7"
210
+ version = "0.3.0-alpha.9"
155
211
  dependencies = [
156
212
  "anyhow",
157
213
  "camino",
158
214
  "clap",
215
+ "flate2",
159
216
  "plist",
217
+ "rpm",
160
218
  "serde",
161
219
  "serde_json",
220
+ "tar",
162
221
  "zip",
163
222
  ]
164
223
 
224
+ [[package]]
225
+ name = "enum-display-derive"
226
+ version = "0.1.1"
227
+ source = "registry+https://github.com/rust-lang/crates.io-index"
228
+ checksum = "f16ef37b2a9b242295d61a154ee91ae884afff6b8b933b486b12481cc58310ca"
229
+ dependencies = [
230
+ "proc-macro2",
231
+ "quote",
232
+ "syn 1.0.109",
233
+ ]
234
+
235
+ [[package]]
236
+ name = "enum-primitive-derive"
237
+ version = "0.3.0"
238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
239
+ checksum = "ba7795da175654fe16979af73f81f26a8ea27638d8d9823d317016888a63dc4c"
240
+ dependencies = [
241
+ "num-traits",
242
+ "quote",
243
+ "syn 2.0.117",
244
+ ]
245
+
165
246
  [[package]]
166
247
  name = "equivalent"
167
248
  version = "1.0.2"
168
249
  source = "registry+https://github.com/rust-lang/crates.io-index"
169
250
  checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
170
251
 
252
+ [[package]]
253
+ name = "errno"
254
+ version = "0.3.14"
255
+ source = "registry+https://github.com/rust-lang/crates.io-index"
256
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
257
+ dependencies = [
258
+ "libc",
259
+ "windows-sys",
260
+ ]
261
+
262
+ [[package]]
263
+ name = "filetime"
264
+ version = "0.2.29"
265
+ source = "registry+https://github.com/rust-lang/crates.io-index"
266
+ checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"
267
+ dependencies = [
268
+ "cfg-if",
269
+ "libc",
270
+ ]
271
+
171
272
  [[package]]
172
273
  name = "flate2"
173
274
  version = "1.1.9"
174
275
  source = "registry+https://github.com/rust-lang/crates.io-index"
175
276
  checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
176
277
  dependencies = [
278
+ "crc32fast",
177
279
  "miniz_oxide",
178
280
  "zlib-rs",
179
281
  ]
180
282
 
283
+ [[package]]
284
+ name = "generic-array"
285
+ version = "0.14.7"
286
+ source = "registry+https://github.com/rust-lang/crates.io-index"
287
+ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
288
+ dependencies = [
289
+ "typenum",
290
+ "version_check",
291
+ ]
292
+
181
293
  [[package]]
182
294
  name = "hashbrown"
183
295
  version = "0.17.1"
@@ -190,6 +302,12 @@ version = "0.5.0"
190
302
  source = "registry+https://github.com/rust-lang/crates.io-index"
191
303
  checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
192
304
 
305
+ [[package]]
306
+ name = "hex"
307
+ version = "0.4.3"
308
+ source = "registry+https://github.com/rust-lang/crates.io-index"
309
+ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
310
+
193
311
  [[package]]
194
312
  name = "indexmap"
195
313
  version = "2.14.0"
@@ -206,12 +324,48 @@ version = "1.70.2"
206
324
  source = "registry+https://github.com/rust-lang/crates.io-index"
207
325
  checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
208
326
 
327
+ [[package]]
328
+ name = "itertools"
329
+ version = "0.14.0"
330
+ source = "registry+https://github.com/rust-lang/crates.io-index"
331
+ checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
332
+ dependencies = [
333
+ "either",
334
+ ]
335
+
209
336
  [[package]]
210
337
  name = "itoa"
211
338
  version = "1.0.18"
212
339
  source = "registry+https://github.com/rust-lang/crates.io-index"
213
340
  checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
214
341
 
342
+ [[package]]
343
+ name = "keccak"
344
+ version = "0.1.6"
345
+ source = "registry+https://github.com/rust-lang/crates.io-index"
346
+ checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653"
347
+ dependencies = [
348
+ "cpufeatures",
349
+ ]
350
+
351
+ [[package]]
352
+ name = "libc"
353
+ version = "0.2.186"
354
+ source = "registry+https://github.com/rust-lang/crates.io-index"
355
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
356
+
357
+ [[package]]
358
+ name = "linux-raw-sys"
359
+ version = "0.12.1"
360
+ source = "registry+https://github.com/rust-lang/crates.io-index"
361
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
362
+
363
+ [[package]]
364
+ name = "log"
365
+ version = "0.4.30"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "616ec5685824bcc94416c6d4a7a446eea774a31efd7062c8480ba6fd06d7a6e5"
368
+
215
369
  [[package]]
216
370
  name = "memchr"
217
371
  version = "2.8.1"
@@ -228,12 +382,105 @@ dependencies = [
228
382
  "simd-adler32",
229
383
  ]
230
384
 
385
+ [[package]]
386
+ name = "nom"
387
+ version = "8.0.0"
388
+ source = "registry+https://github.com/rust-lang/crates.io-index"
389
+ checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"
390
+ dependencies = [
391
+ "memchr",
392
+ ]
393
+
394
+ [[package]]
395
+ name = "num"
396
+ version = "0.4.3"
397
+ source = "registry+https://github.com/rust-lang/crates.io-index"
398
+ checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
399
+ dependencies = [
400
+ "num-bigint",
401
+ "num-complex",
402
+ "num-integer",
403
+ "num-iter",
404
+ "num-rational",
405
+ "num-traits",
406
+ ]
407
+
408
+ [[package]]
409
+ name = "num-bigint"
410
+ version = "0.4.6"
411
+ source = "registry+https://github.com/rust-lang/crates.io-index"
412
+ checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
413
+ dependencies = [
414
+ "num-integer",
415
+ "num-traits",
416
+ ]
417
+
418
+ [[package]]
419
+ name = "num-complex"
420
+ version = "0.4.6"
421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
422
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
423
+ dependencies = [
424
+ "num-traits",
425
+ ]
426
+
231
427
  [[package]]
232
428
  name = "num-conv"
233
429
  version = "0.2.2"
234
430
  source = "registry+https://github.com/rust-lang/crates.io-index"
235
431
  checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
236
432
 
433
+ [[package]]
434
+ name = "num-derive"
435
+ version = "0.4.2"
436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
437
+ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
438
+ dependencies = [
439
+ "proc-macro2",
440
+ "quote",
441
+ "syn 2.0.117",
442
+ ]
443
+
444
+ [[package]]
445
+ name = "num-integer"
446
+ version = "0.1.46"
447
+ source = "registry+https://github.com/rust-lang/crates.io-index"
448
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
449
+ dependencies = [
450
+ "num-traits",
451
+ ]
452
+
453
+ [[package]]
454
+ name = "num-iter"
455
+ version = "0.1.45"
456
+ source = "registry+https://github.com/rust-lang/crates.io-index"
457
+ checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"
458
+ dependencies = [
459
+ "autocfg",
460
+ "num-integer",
461
+ "num-traits",
462
+ ]
463
+
464
+ [[package]]
465
+ name = "num-rational"
466
+ version = "0.4.2"
467
+ source = "registry+https://github.com/rust-lang/crates.io-index"
468
+ checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
469
+ dependencies = [
470
+ "num-bigint",
471
+ "num-integer",
472
+ "num-traits",
473
+ ]
474
+
475
+ [[package]]
476
+ name = "num-traits"
477
+ version = "0.2.19"
478
+ source = "registry+https://github.com/rust-lang/crates.io-index"
479
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
480
+ dependencies = [
481
+ "autocfg",
482
+ ]
483
+
237
484
  [[package]]
238
485
  name = "once_cell_polyfill"
239
486
  version = "1.70.2"
@@ -286,6 +533,53 @@ dependencies = [
286
533
  "proc-macro2",
287
534
  ]
288
535
 
536
+ [[package]]
537
+ name = "rpm"
538
+ version = "0.24.0"
539
+ source = "registry+https://github.com/rust-lang/crates.io-index"
540
+ checksum = "a5f8c4a1267cbbad96d1e7bf080ca20c669df79f638ef4e6c5e05a38b5d32c96"
541
+ dependencies = [
542
+ "base64",
543
+ "bitflags",
544
+ "digest",
545
+ "enum-display-derive",
546
+ "enum-primitive-derive",
547
+ "flate2",
548
+ "hex",
549
+ "itertools",
550
+ "log",
551
+ "memchr",
552
+ "nom",
553
+ "num",
554
+ "num-derive",
555
+ "num-traits",
556
+ "rpm-version",
557
+ "sha1",
558
+ "sha2",
559
+ "sha3",
560
+ "thiserror",
561
+ "zeroize",
562
+ ]
563
+
564
+ [[package]]
565
+ name = "rpm-version"
566
+ version = "0.4.0"
567
+ source = "registry+https://github.com/rust-lang/crates.io-index"
568
+ checksum = "e9274efa3f2ce8fe60fd8ea005a49955f92ddd81643eb38084b8e2c6c507018f"
569
+
570
+ [[package]]
571
+ name = "rustix"
572
+ version = "1.1.4"
573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
574
+ checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
575
+ dependencies = [
576
+ "bitflags",
577
+ "errno",
578
+ "libc",
579
+ "linux-raw-sys",
580
+ "windows-sys",
581
+ ]
582
+
289
583
  [[package]]
290
584
  name = "serde"
291
585
  version = "1.0.228"
@@ -313,7 +607,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
313
607
  dependencies = [
314
608
  "proc-macro2",
315
609
  "quote",
316
- "syn",
610
+ "syn 2.0.117",
317
611
  ]
318
612
 
319
613
  [[package]]
@@ -329,6 +623,38 @@ dependencies = [
329
623
  "zmij",
330
624
  ]
331
625
 
626
+ [[package]]
627
+ name = "sha1"
628
+ version = "0.10.6"
629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
630
+ checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
631
+ dependencies = [
632
+ "cfg-if",
633
+ "cpufeatures",
634
+ "digest",
635
+ ]
636
+
637
+ [[package]]
638
+ name = "sha2"
639
+ version = "0.10.9"
640
+ source = "registry+https://github.com/rust-lang/crates.io-index"
641
+ checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
642
+ dependencies = [
643
+ "cfg-if",
644
+ "cpufeatures",
645
+ "digest",
646
+ ]
647
+
648
+ [[package]]
649
+ name = "sha3"
650
+ version = "0.10.9"
651
+ source = "registry+https://github.com/rust-lang/crates.io-index"
652
+ checksum = "77fd7028345d415a4034cf8777cd4f8ab1851274233b45f84e3d955502d93874"
653
+ dependencies = [
654
+ "digest",
655
+ "keccak",
656
+ ]
657
+
332
658
  [[package]]
333
659
  name = "simd-adler32"
334
660
  version = "0.3.9"
@@ -341,6 +667,17 @@ version = "0.11.1"
341
667
  source = "registry+https://github.com/rust-lang/crates.io-index"
342
668
  checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
343
669
 
670
+ [[package]]
671
+ name = "syn"
672
+ version = "1.0.109"
673
+ source = "registry+https://github.com/rust-lang/crates.io-index"
674
+ checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
675
+ dependencies = [
676
+ "proc-macro2",
677
+ "quote",
678
+ "unicode-ident",
679
+ ]
680
+
344
681
  [[package]]
345
682
  name = "syn"
346
683
  version = "2.0.117"
@@ -352,6 +689,37 @@ dependencies = [
352
689
  "unicode-ident",
353
690
  ]
354
691
 
692
+ [[package]]
693
+ name = "tar"
694
+ version = "0.4.46"
695
+ source = "registry+https://github.com/rust-lang/crates.io-index"
696
+ checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"
697
+ dependencies = [
698
+ "filetime",
699
+ "libc",
700
+ "xattr",
701
+ ]
702
+
703
+ [[package]]
704
+ name = "thiserror"
705
+ version = "2.0.18"
706
+ source = "registry+https://github.com/rust-lang/crates.io-index"
707
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
708
+ dependencies = [
709
+ "thiserror-impl",
710
+ ]
711
+
712
+ [[package]]
713
+ name = "thiserror-impl"
714
+ version = "2.0.18"
715
+ source = "registry+https://github.com/rust-lang/crates.io-index"
716
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
717
+ dependencies = [
718
+ "proc-macro2",
719
+ "quote",
720
+ "syn 2.0.117",
721
+ ]
722
+
355
723
  [[package]]
356
724
  name = "time"
357
725
  version = "0.3.47"
@@ -389,6 +757,12 @@ version = "0.12.3"
389
757
  source = "registry+https://github.com/rust-lang/crates.io-index"
390
758
  checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e"
391
759
 
760
+ [[package]]
761
+ name = "typenum"
762
+ version = "1.20.1"
763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
764
+ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
765
+
392
766
  [[package]]
393
767
  name = "unicode-ident"
394
768
  version = "1.0.24"
@@ -401,6 +775,12 @@ version = "0.2.2"
401
775
  source = "registry+https://github.com/rust-lang/crates.io-index"
402
776
  checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
403
777
 
778
+ [[package]]
779
+ name = "version_check"
780
+ version = "0.9.5"
781
+ source = "registry+https://github.com/rust-lang/crates.io-index"
782
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
783
+
404
784
  [[package]]
405
785
  name = "windows-link"
406
786
  version = "0.2.1"
@@ -416,6 +796,22 @@ dependencies = [
416
796
  "windows-link",
417
797
  ]
418
798
 
799
+ [[package]]
800
+ name = "xattr"
801
+ version = "1.6.1"
802
+ source = "registry+https://github.com/rust-lang/crates.io-index"
803
+ checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
804
+ dependencies = [
805
+ "libc",
806
+ "rustix",
807
+ ]
808
+
809
+ [[package]]
810
+ name = "zeroize"
811
+ version = "1.8.2"
812
+ source = "registry+https://github.com/rust-lang/crates.io-index"
813
+ checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
814
+
419
815
  [[package]]
420
816
  name = "zip"
421
817
  version = "8.6.0"
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "electron-cli"
3
- version = "0.3.0-alpha.7"
3
+ version = "0.3.0-alpha.9"
4
4
  edition = "2021"
5
5
  description = "Experimental Rust CLI for Electron project diagnostics and workflow automation"
6
6
  license = "MIT"
@@ -10,7 +10,10 @@ repository = "https://github.com/Ikana/electron-cli"
10
10
  anyhow = "1.0"
11
11
  camino = { version = "1.1", features = ["serde1"] }
12
12
  clap = { version = "4.6", features = ["derive"] }
13
+ flate2 = { version = "1.1", default-features = false, features = ["rust_backend"] }
14
+ plist = "1"
15
+ rpm = { version = "0.24", default-features = false, features = ["payload", "gzip-compression"] }
13
16
  serde = { version = "1.0", features = ["derive"] }
14
17
  serde_json = "1.0"
15
- plist = "1"
18
+ tar = "0.4"
16
19
  zip = { version = "8.6.0", default-features = false, features = ["deflate-flate2-zlib-rs"] }
package/README.md CHANGED
@@ -42,10 +42,10 @@ The Rust-native flow currently owns:
42
42
  - `init --template minimal`: writes a local Electron starter without Electron Forge.
43
43
  - `start`: launches the installed Electron runtime directly.
44
44
  - `package`: copies the installed Electron runtime, app files, installed production dependency closure, app metadata, macOS icon, and extra resources into a local app bundle for the current platform and architecture.
45
- - `make`: runs `package` and writes a ZIP distributable under `out/make/zip/<platform>/<arch>/`.
45
+ - `make`: runs `package` and writes a distributable under `out/make/<target>/<platform>/<arch>/`; ZIP works on all platforms, while `--target deb` and `--target rpm` write Linux packages.
46
46
  - `publish`: runs `make` and publishes the distributable to a local directory with a manifest.
47
47
 
48
- Remote publishers such as GitHub Releases are not implemented yet. Platform-specific makers, Windows/Linux icon embedding, signing, and notarization are also still TODO.
48
+ Remote publishers such as GitHub Releases are not implemented yet. DMG, Windows installers, Windows/Linux icon embedding, signing, and notarization are also still TODO.
49
49
 
50
50
  Package metadata can be configured in `package.json`:
51
51
 
@@ -98,6 +98,8 @@ cargo run -- init my-app
98
98
  cargo run -- start --dry-run
99
99
  cargo run -- package --dry-run
100
100
  cargo run -- make --dry-run
101
+ cargo run -- make --target deb --dry-run
102
+ cargo run -- make --target rpm --dry-run
101
103
  cargo run -- publish --dry-run
102
104
  ```
103
105
 
@@ -122,7 +124,7 @@ The inspection and planning commands support `--json` so agents and scripts can
122
124
  `init --dry-run --json` shows whether the CLI will write native template files or delegate to `create-electron-app`.
123
125
  `start --dry-run --json` shows the Electron executable that will be launched.
124
126
  `package --dry-run --json` shows the runtime, app file, metadata, icon, and extra-resource copy plan.
125
- `make --dry-run --json` shows the package prerequisite and ZIP artifact path.
127
+ `make --dry-run --json` shows the package prerequisite and selected maker artifact path.
126
128
  `publish --dry-run --json` shows the make prerequisite, destination artifact, and manifest path.
127
129
 
128
130
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-cli",
3
- "version": "0.3.0-alpha.7",
3
+ "version": "0.3.0-alpha.9",
4
4
  "description": "Experimental Rust CLI for Electron project diagnostics and workflow automation",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/cli.rs CHANGED
@@ -240,7 +240,7 @@ pub struct PublishArgs {
240
240
  pub json: bool,
241
241
  }
242
242
 
243
- #[derive(Debug, Clone, Copy, ValueEnum)]
243
+ #[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
244
244
  #[value(rename_all = "lower")]
245
245
  pub enum PackageManager {
246
246
  Npm,
@@ -260,15 +260,19 @@ impl PackageManager {
260
260
  }
261
261
  }
262
262
 
263
- #[derive(Debug, Clone, Copy, ValueEnum)]
263
+ #[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
264
264
  #[value(rename_all = "lower")]
265
265
  pub enum MakeTarget {
266
+ Deb,
267
+ Rpm,
266
268
  Zip,
267
269
  }
268
270
 
269
271
  impl MakeTarget {
270
272
  pub fn as_str(self) -> &'static str {
271
273
  match self {
274
+ MakeTarget::Deb => "deb",
275
+ MakeTarget::Rpm => "rpm",
272
276
  MakeTarget::Zip => "zip",
273
277
  }
274
278
  }