penguins-eggs 9.1.11 → 9.1.29
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/README.md +57 -83
- package/addons/eggs/adapt/applications/eggs-adapt.desktop +1 -1
- package/addons/eggs/adapt/bin/{eggs-adapt.sh → adapt} +1 -0
- package/addons/eggs/ichoice/bin/eggs-ichoice.sh +0 -0
- package/addons/eggs/pve/applications/eggs-pve.desktop +0 -0
- package/addons/eggs/rsupport/applications/eggs-rsupport.desktop +0 -0
- package/addons/eggs/theme/applications/install-debian.desktop +235 -22
- package/addons/neon/theme/applications/install-debian.desktop +0 -0
- package/addons/telos/theme/applications/install-debian.desktop +0 -0
- package/addons/ufficiozero/theme/applications/install-debian.desktop +0 -0
- package/addons/waydroid/theme/applications/install-debian.desktop +0 -0
- package/assets/calamares/install-debian +2 -2
- package/assets/penguins-eggs.desktop +0 -0
- package/assets/penguins-krill.desktop +0 -0
- package/assets/penguins-live-installer.desktop +0 -0
- package/bin/dev +0 -0
- package/conf/distros/bionic/calamares/calamares-modules/after-bootloader/after-bootloader.sh +0 -0
- package/conf/distros/bionic/calamares/calamares-modules/before-bootloader/before-bootloader.sh +0 -0
- package/conf/distros/bionic/calamares/calamares-modules/before-bootloader-mkdirs/before-bootloader-mkdirs.sh +0 -0
- package/conf/distros/bionic/calamares/calamares-modules/bug/bug.sh +0 -0
- package/conf/distros/bionic/calamares/calamares-modules/grubcfg/main.py +0 -0
- package/conf/distros/bionic/calamares/settings.yml +3 -3
- package/conf/distros/buster/calamares/calamares-modules/cleanup/cleanup.sh +12 -0
- package/conf/distros/buster/calamares/calamares-modules/cleanup/module.yml +9 -0
- package/conf/distros/buster/calamares/calamares-modules/dpkg-unsafe-io/dpkg-unsafe-io.sh +13 -0
- package/conf/distros/buster/calamares/calamares-modules/dpkg-unsafe-io/module.yml +6 -0
- package/conf/distros/buster/calamares/calamares-modules/dpkg-unsafe-io-undo/module.yml +6 -0
- package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +0 -0
- package/conf/distros/buster/calamares/modules/bootloader.yml +6 -6
- package/conf/distros/buster/calamares/modules/displaymanager.yml +3 -2
- package/conf/distros/buster/calamares/modules/finished.yml +2 -2
- package/conf/distros/buster/calamares/modules/fstab.yml +1 -2
- package/conf/distros/buster/calamares/modules/luksopenswaphookcfg.yml +1 -2
- package/conf/distros/buster/calamares/modules/machineid.yml +9 -2
- package/conf/distros/buster/calamares/modules/mount.yml +1 -2
- package/conf/distros/buster/calamares/modules/packages.yml +1 -1
- package/conf/distros/buster/calamares/modules/unpackfs.yml +1 -2
- package/conf/distros/buster/calamares/modules/users.yml +3 -4
- package/conf/distros/buster/calamares/modules/welcome.yml +1 -1
- package/conf/distros/buster/calamares/settings.yml +40 -12
- package/conf/distros/focal/calamares/calamares-modules/automirror/main.py +0 -0
- package/conf/distros/focal/calamares/modules/after_bootloader_context.yml +2 -3
- package/conf/distros/focal/calamares/modules/automirror.yml +6 -0
- package/conf/distros/focal/calamares/modules/before_bootloader_context.yml +13 -14
- package/conf/distros/focal/calamares/modules/before_bootloader_mkdirs_context.yml +3 -4
- package/conf/distros/focal/calamares/modules/bootloader.yml +1 -2
- package/conf/distros/focal/calamares/modules/finished.yml +1 -2
- package/conf/distros/focal/calamares/modules/fstab.yml +1 -2
- package/conf/distros/focal/calamares/modules/grubcfg.yml +2 -3
- package/conf/distros/focal/calamares/modules/locale.yml +6 -7
- package/conf/distros/focal/calamares/modules/machineid.yml +1 -2
- package/conf/distros/focal/calamares/modules/mount.yml +19 -20
- package/conf/distros/focal/calamares/modules/partition.yml +5 -3
- package/conf/distros/focal/calamares/modules/shellprocess_add386arch.yml +2 -3
- package/conf/distros/focal/calamares/modules/shellprocess_bug-LP#1829805.yml +1 -3
- package/conf/distros/focal/calamares/modules/shellprocess_logs.yml +2 -3
- package/conf/distros/focal/calamares/modules/unpackfs.yml +2 -3
- package/conf/distros/focal/calamares/modules/users.yml +4 -3
- package/conf/distros/focal/calamares/modules/welcome.yml +21 -22
- package/conf/distros/focal/calamares/settings.yml +5 -6
- package/conf/distros/jammy/README.md +32 -0
- package/conf/distros/jessie/krill/settings.yml +1 -1
- package/conf/distros/rolling/calamares/modules/packages.yml +2 -2
- package/conf/distros/rolling/calamares/settings.yml +3 -3
- package/conf/exclude.list +3 -0
- package/lib/classes/daddy.js +7 -4
- package/lib/classes/family/archlinux.js +1 -0
- package/lib/classes/family/debian.js +15 -29
- package/lib/classes/i18n.d.ts +0 -4
- package/lib/classes/i18n.js +15 -27
- package/lib/classes/incubation/distros/bionic.js +1 -1
- package/lib/classes/incubation/distros/buster.js +4 -3
- package/lib/classes/incubation/distros/focal.js +1 -1
- package/lib/classes/incubation/distros/rolling.js +0 -1
- package/lib/classes/incubation/fisherman-helper/displaymanager.js +5 -3
- package/lib/classes/incubation/fisherman-helper/packages.js +39 -67
- package/lib/classes/incubation/incubator.js +1 -0
- package/lib/classes/krill_install.d.ts +0 -1
- package/lib/classes/krill_install.js +19 -19
- package/lib/classes/ovary.js +97 -101
- package/lib/classes/pacman.js +5 -46
- package/lib/classes/sources_list.js +11 -20
- package/lib/classes/tailor.d.ts +13 -11
- package/lib/classes/tailor.js +267 -92
- package/lib/classes/users.js +63 -60
- package/lib/classes/utils.d.ts +1 -1
- package/lib/classes/utils.js +16 -12
- package/lib/classes/xdg.js +37 -21
- package/lib/commands/analyze.js +4 -4
- package/lib/commands/calamares.d.ts +1 -1
- package/lib/commands/calamares.js +7 -7
- package/lib/commands/config.d.ts +1 -1
- package/lib/commands/config.js +7 -5
- package/lib/commands/dad.js +2 -2
- package/lib/commands/produce.js +2 -1
- package/lib/commands/syncfrom.js +9 -9
- package/lib/commands/syncto.js +20 -20
- package/lib/commands/tools/skel.js +2 -2
- package/lib/commands/wardrobe/ironing.d.ts +3 -0
- package/lib/commands/wardrobe/ironing.js +22 -4
- package/lib/commands/wardrobe/wear.d.ts +1 -0
- package/lib/commands/wardrobe/wear.js +7 -2
- package/lib/interfaces/i-materia.d.ts +4 -0
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/lib/cli-autologin.js +24 -24
- package/lib/lib/dependencies.js +6 -1
- package/lib/lib/get_address.js +3 -2
- package/lib/lib/get_dns.js +3 -2
- package/lib/lib/get_domain.js +3 -2
- package/lib/lib/get_gateway.js +3 -2
- package/lib/lib/get_hostname.js +3 -2
- package/lib/lib/get_netmask.js +3 -2
- package/lib/lib/get_password.js +3 -2
- package/lib/lib/get_root_password.js +3 -2
- package/lib/lib/get_userfullname.js +3 -2
- package/lib/lib/get_username.js +3 -2
- package/lib/lib/select_filesystem_type.js +2 -2
- package/lib/lib/select_installation_device.js +2 -2
- package/lib/lib/select_installation_mode.js +3 -2
- package/lib/lib/select_regions.js +3 -2
- package/lib/lib/select_user_swap_choice.js +2 -2
- package/lib/lib/select_zones.js +3 -2
- package/oclif.manifest.json +1 -1
- package/package.json +115 -114
- package/scripts/_eggs +8 -16
- package/scripts/bros/waydroid-helper.sh +0 -0
- package/scripts/eggs-adapt.sh +5 -0
- package/scripts/eggs.bash +3 -4
- package/scripts/install-eggs-ppa.sh +0 -0
- package/scripts/mom-cli.sh +0 -0
- package/scripts/pve-live.service +0 -0
- package/scripts/pve-live.sh +0 -0
- package/scripts/resy.sh +0 -0
- package/scripts/userexist.sh +0 -0
- package/conf/distros/buster/calamares/calamares-modules/remove-link/module.yml +0 -9
- package/conf/distros/buster/calamares/calamares-modules/remove-link/remove-link.sh +0 -3
- package/conf/distros/buster/calamares/modules/shellprocess_eggs-cleanup.yml +0 -6
- package/lib/commands/tools/locales.d.ts +0 -13
- package/lib/commands/tools/locales.js +0 -43
- package/lib/interfaces/i-costume.d.ts +0 -27
- package/lib/interfaces/i-costume.js +0 -2
package/lib/classes/pacman.js
CHANGED
|
@@ -240,7 +240,7 @@ class Pacman {
|
|
|
240
240
|
*/
|
|
241
241
|
static isCalamaresAvailable() {
|
|
242
242
|
let result = this.distro().isCalamaresAvailable;
|
|
243
|
-
if (process.arch === '
|
|
243
|
+
if (process.arch === 'arm' || process.arch === 'arm64') {
|
|
244
244
|
result = false;
|
|
245
245
|
}
|
|
246
246
|
return result;
|
|
@@ -469,7 +469,6 @@ class Pacman {
|
|
|
469
469
|
*/
|
|
470
470
|
if (this.distro().codenameLikeId === 'jessie') {
|
|
471
471
|
const dest = '/etc/penguins-eggs.d/distros/jessie';
|
|
472
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
473
472
|
await (0, utils_2.exec)(`cp -r ${rootPen}/conf/distros/jessie/krill ${dest}/krill`, echo);
|
|
474
473
|
/**
|
|
475
474
|
* Debian 9 stretch: eredita grub, isolinux e locales da buster, contiene krill al posto di calamares
|
|
@@ -477,7 +476,6 @@ class Pacman {
|
|
|
477
476
|
}
|
|
478
477
|
else if (this.distro().codenameLikeId === 'stretch') {
|
|
479
478
|
const dest = '/etc/penguins-eggs.d/distros/stretch';
|
|
480
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
481
479
|
await (0, utils_2.exec)(`cp -r ${rootPen}/conf/distros/jessie/krill ${dest}/krill`, echo);
|
|
482
480
|
/**
|
|
483
481
|
* Debian 10 buster: eredita tutto da buster
|
|
@@ -485,7 +483,6 @@ class Pacman {
|
|
|
485
483
|
}
|
|
486
484
|
else if (this.distro().codenameLikeId === 'buster') {
|
|
487
485
|
const dest = '/etc/penguins-eggs.d/distros/buster';
|
|
488
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
489
486
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
|
|
490
487
|
/**
|
|
491
488
|
* Debian 11 bullseye: eredita tutto da buster
|
|
@@ -493,7 +490,6 @@ class Pacman {
|
|
|
493
490
|
}
|
|
494
491
|
else if (this.distro().codenameLikeId === 'bullseye') {
|
|
495
492
|
const dest = '/etc/penguins-eggs.d/distros/bullseye';
|
|
496
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
497
493
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
|
|
498
494
|
/**
|
|
499
495
|
* Debian 12 bookworm: eredita tutto da buster
|
|
@@ -501,7 +497,6 @@ class Pacman {
|
|
|
501
497
|
}
|
|
502
498
|
else if (this.distro().codenameLikeId === 'bookworm') {
|
|
503
499
|
const dest = '/etc/penguins-eggs.d/distros/bookworm';
|
|
504
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
505
500
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
|
|
506
501
|
/***********************************************************************************
|
|
507
502
|
* Devuan
|
|
@@ -512,7 +507,6 @@ class Pacman {
|
|
|
512
507
|
}
|
|
513
508
|
else if (this.distro().codenameLikeId === 'beowulf') {
|
|
514
509
|
const dest = '/etc/penguins-eggs.d/distros/beowulf';
|
|
515
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
516
510
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
|
|
517
511
|
/**
|
|
518
512
|
* Devuan chimaera: eredita tutto da buster
|
|
@@ -520,7 +514,6 @@ class Pacman {
|
|
|
520
514
|
}
|
|
521
515
|
else if (this.distro().codenameLikeId === 'chimaera') {
|
|
522
516
|
const dest = '/etc/penguins-eggs.d/distros/chimaera';
|
|
523
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
524
517
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
|
|
525
518
|
/**
|
|
526
519
|
* Devuan daedalus: eredita tutto da buster
|
|
@@ -528,7 +521,6 @@ class Pacman {
|
|
|
528
521
|
}
|
|
529
522
|
else if (this.distro().codenameLikeId === 'daedalus') {
|
|
530
523
|
const dest = '/etc/penguins-eggs.d/distros/daedalus';
|
|
531
|
-
// await exec(`cp -r ${buster}/locales ${dest}/locales`, echo)
|
|
532
524
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares ${dest}/calamares`, echo);
|
|
533
525
|
/***********************************************************************************
|
|
534
526
|
* Ubuntu
|
|
@@ -541,11 +533,8 @@ class Pacman {
|
|
|
541
533
|
const dest = '/etc/penguins-eggs.d/distros/bionic';
|
|
542
534
|
const bionic = `${rootPen}/conf/distros/bionic/*`;
|
|
543
535
|
await (0, utils_2.exec)(`cp -r ${bionic} ${dest}`, echo);
|
|
544
|
-
// quindi da focal
|
|
545
|
-
const focal = `${rootPen}/conf/distros/focal/*`;
|
|
546
|
-
await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
|
|
547
536
|
// Poi da buster
|
|
548
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/
|
|
537
|
+
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
|
|
549
538
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
|
|
550
539
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-unmount ${dest}/calamares/calamares-modules/sources-yolk-unmount`, echo);
|
|
551
540
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
|
|
@@ -560,37 +549,7 @@ class Pacman {
|
|
|
560
549
|
const dest = '/etc/penguins-eggs.d/distros/focal';
|
|
561
550
|
const focal = `${rootPen}/conf/distros/focal/*`;
|
|
562
551
|
await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
|
|
563
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/
|
|
564
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
|
|
565
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-unmount ${dest}/calamares/calamares-modules/sources-yolk-unmount`, echo);
|
|
566
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
|
|
567
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
|
|
568
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
|
|
569
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
|
|
570
|
-
/**
|
|
571
|
-
* Ubuntu 20.10 groovy: eredita da focal e buster
|
|
572
|
-
*/
|
|
573
|
-
}
|
|
574
|
-
else if (this.distro().codenameLikeId === 'groovy') {
|
|
575
|
-
const dest = '/etc/penguins-eggs.d/distros/groovy';
|
|
576
|
-
const focal = `${rootPen}/conf/distros/focal/*`;
|
|
577
|
-
await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
|
|
578
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/remove-link ${dest}/calamares/calamares-modules/remove-link`, echo);
|
|
579
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
|
|
580
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-unmount ${dest}/calamares/calamares-modules/sources-yolk-unmount`, echo);
|
|
581
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
|
|
582
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/removeuser.yml ${dest}/calamares/modules/removeuser.yml`, echo);
|
|
583
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/unpackfs.yml ${dest}/calamares/modules/unpackfs.yml`, echo);
|
|
584
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/displaymanager.yml ${dest}/calamares/modules/displaymanager.yml`, echo);
|
|
585
|
-
/**
|
|
586
|
-
* Ubuntu 21.04 hirsute: eredita da focal e buster
|
|
587
|
-
*/
|
|
588
|
-
}
|
|
589
|
-
else if (this.distro().codenameLikeId === 'hirsute') {
|
|
590
|
-
const dest = '/etc/penguins-eggs.d/distros/hirsute';
|
|
591
|
-
const focal = `${rootPen}/conf/distros/focal/*`;
|
|
592
|
-
await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
|
|
593
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/remove-link ${dest}/calamares/calamares-modules/remove-link`, echo);
|
|
552
|
+
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
|
|
594
553
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
|
|
595
554
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-unmount ${dest}/calamares/calamares-modules/sources-yolk-unmount`, echo);
|
|
596
555
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
|
|
@@ -605,7 +564,7 @@ class Pacman {
|
|
|
605
564
|
const dest = '/etc/penguins-eggs.d/distros/impish';
|
|
606
565
|
const focal = `${rootPen}/conf/distros/focal/*`;
|
|
607
566
|
await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
|
|
608
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/
|
|
567
|
+
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
|
|
609
568
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
|
|
610
569
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-unmount ${dest}/calamares/calamares-modules/sources-yolk-unmount`, echo);
|
|
611
570
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
|
|
@@ -620,7 +579,7 @@ class Pacman {
|
|
|
620
579
|
const dest = '/etc/penguins-eggs.d/distros/jammy';
|
|
621
580
|
const focal = `${rootPen}/conf/distros/focal/*`;
|
|
622
581
|
await (0, utils_2.exec)(`cp -r ${focal} ${dest}`, echo);
|
|
623
|
-
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/
|
|
582
|
+
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/cleanup ${dest}/calamares/calamares-modules/cleanup`, echo);
|
|
624
583
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk ${dest}/calamares/calamares-modules/sources-yolk`, echo);
|
|
625
584
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/calamares-modules/sources-yolk-unmount ${dest}/calamares/calamares-modules/sources-yolk-unmount`, echo);
|
|
626
585
|
await (0, utils_2.exec)(`cp -r ${buster}/calamares/modules/packages.yml ${dest}/calamares/modules/packages.yml`, echo);
|
|
@@ -25,25 +25,11 @@ class SourcesList {
|
|
|
25
25
|
* Linuxmint non ha nessuna configurazione in /etc/apt/sources.list
|
|
26
26
|
*/
|
|
27
27
|
let checked = true;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
for (const repo of repos) {
|
|
34
|
-
if (repo.includes(distro.codenameLikeId)) {
|
|
35
|
-
checked = true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
if (!checked) {
|
|
40
|
-
console.log('You are on: ' + chalk_1.default.green(distro.distroId) + '/' + chalk_1.default.green(distro.codenameId));
|
|
41
|
-
console.log('compatible with: ' + chalk_1.default.green(distro.distroLike) + '/' + chalk_1.default.green(distro.codenameLikeId));
|
|
42
|
-
console.log(`This costume/accessory apply to: `);
|
|
43
|
-
for (const distribution of distributions) {
|
|
44
|
-
console.log(`- ${distribution}`);
|
|
45
|
-
}
|
|
46
|
-
utils_1.default.pressKeyToExit('distribution warning, check your /etc/apt/sources.list', true);
|
|
28
|
+
checked = false;
|
|
29
|
+
const distro = new distro_1.default();
|
|
30
|
+
for (const distribution of distributions) {
|
|
31
|
+
if (distribution.includes(distro.codenameLikeId)) {
|
|
32
|
+
checked = true;
|
|
47
33
|
}
|
|
48
34
|
}
|
|
49
35
|
return checked;
|
|
@@ -84,8 +70,13 @@ class SourcesList {
|
|
|
84
70
|
*
|
|
85
71
|
*/
|
|
86
72
|
async get() {
|
|
73
|
+
let universalSourcesList = '/etc/apt/sources.list';
|
|
74
|
+
const distro = new distro_1.default();
|
|
75
|
+
if (distro.distroId === 'Linuxmint') {
|
|
76
|
+
universalSourcesList = '/etc/apt/sources.list.d/official-package-repositories.list';
|
|
77
|
+
}
|
|
87
78
|
// deb uri distribution [component1] [component2] [...]
|
|
88
|
-
let checkRepos = await (0, utils_2.exec)(`grep "deb http"
|
|
79
|
+
let checkRepos = await (0, utils_2.exec)(`grep "deb http"<${universalSourcesList}`, { echo: false, capture: true });
|
|
89
80
|
let tmp = [];
|
|
90
81
|
if (checkRepos.code === 0) {
|
|
91
82
|
tmp = checkRepos.data.split('\n');
|
package/lib/classes/tailor.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* penguins-eggs: tailor.ts
|
|
3
|
-
* author: Piero Proietti
|
|
4
|
-
* mail: piero.proietti@gmail.com
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
1
|
import { IMateria } from '../interfaces';
|
|
8
2
|
/**
|
|
9
3
|
*
|
|
@@ -13,22 +7,30 @@ export default class Tailor {
|
|
|
13
7
|
private echo;
|
|
14
8
|
private costume;
|
|
15
9
|
private wardrobe;
|
|
10
|
+
private category;
|
|
16
11
|
materials: IMateria;
|
|
17
12
|
/**
|
|
18
13
|
* @param wardrobe
|
|
19
14
|
* @param costume
|
|
20
15
|
*/
|
|
21
|
-
constructor(costume: string);
|
|
16
|
+
constructor(costume: string, category?: string);
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
prepare(verbose?: boolean, no_accessories?: boolean, no_firmwares?: boolean): Promise<void>;
|
|
22
21
|
/**
|
|
23
22
|
*
|
|
23
|
+
* @param packages
|
|
24
|
+
* @param verbose
|
|
25
|
+
* @param section
|
|
26
|
+
* @returns
|
|
24
27
|
*/
|
|
25
|
-
|
|
28
|
+
helperExists(packages: string[], verbose?: boolean, section?: string): Promise<string[]>;
|
|
26
29
|
/**
|
|
27
30
|
* - check if every package if installed
|
|
28
|
-
* - if find any packages to install
|
|
29
|
-
* - install packages
|
|
31
|
+
* - if find any packages to install, install it
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
helperInstall(packages: string[], comment?: string, cmd?: string): Promise<void>;
|
|
32
34
|
/**
|
|
33
35
|
* hostname and hosts
|
|
34
36
|
*/
|