penguins-eggs 10.0.26 → 10.0.27

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.
@@ -1461,5 +1461,5 @@
1461
1461
  ]
1462
1462
  }
1463
1463
  },
1464
- "version": "10.0.26"
1464
+ "version": "10.0.27"
1465
1465
  }
package/README.md CHANGED
@@ -490,7 +490,7 @@ EXAMPLES
490
490
  $ eggs adapt
491
491
  ```
492
492
 
493
- _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/adapt.ts)_
493
+ _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/adapt.ts)_
494
494
 
495
495
  ## `eggs analyze`
496
496
 
@@ -511,7 +511,7 @@ EXAMPLES
511
511
  sudo eggs analyze
512
512
  ```
513
513
 
514
- _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/analyze.ts)_
514
+ _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/analyze.ts)_
515
515
 
516
516
  ## `eggs autocomplete [SHELL]`
517
517
 
@@ -575,7 +575,7 @@ EXAMPLES
575
575
  sudo eggs calamares --remove
576
576
  ```
577
577
 
578
- _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/calamares.ts)_
578
+ _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/calamares.ts)_
579
579
 
580
580
  ## `eggs config`
581
581
 
@@ -602,7 +602,7 @@ EXAMPLES
602
602
  sudo eggs config --clean --nointeractive
603
603
  ```
604
604
 
605
- _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/config.ts)_
605
+ _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/config.ts)_
606
606
 
607
607
  ## `eggs cuckoo`
608
608
 
@@ -622,7 +622,7 @@ EXAMPLES
622
622
  sudo eggs cuckoo
623
623
  ```
624
624
 
625
- _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/cuckoo.ts)_
625
+ _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/cuckoo.ts)_
626
626
 
627
627
  ## `eggs dad`
628
628
 
@@ -650,7 +650,7 @@ EXAMPLES
650
650
  sudo dad --default
651
651
  ```
652
652
 
653
- _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/dad.ts)_
653
+ _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/dad.ts)_
654
654
 
655
655
  ## `eggs export deb`
656
656
 
@@ -677,7 +677,7 @@ EXAMPLES
677
677
  $ eggs export deb --all
678
678
  ```
679
679
 
680
- _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/export/deb.ts)_
680
+ _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/export/deb.ts)_
681
681
 
682
682
  ## `eggs export iso`
683
683
 
@@ -702,7 +702,7 @@ EXAMPLES
702
702
  $ eggs export iso --clean
703
703
  ```
704
704
 
705
- _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/export/iso.ts)_
705
+ _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/export/iso.ts)_
706
706
 
707
707
  ## `eggs help [COMMAND]`
708
708
 
@@ -763,7 +763,7 @@ EXAMPLES
763
763
  sudo eggs install --chroot
764
764
  ```
765
765
 
766
- _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/install.ts)_
766
+ _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/install.ts)_
767
767
 
768
768
  ## `eggs kill`
769
769
 
@@ -786,7 +786,7 @@ EXAMPLES
786
786
  sudo eggs kill
787
787
  ```
788
788
 
789
- _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/kill.ts)_
789
+ _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/kill.ts)_
790
790
 
791
791
  ## `eggs krill`
792
792
 
@@ -845,7 +845,7 @@ EXAMPLES
845
845
  $ eggs mom
846
846
  ```
847
847
 
848
- _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/mom.ts)_
848
+ _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/mom.ts)_
849
849
 
850
850
  ## `eggs produce`
851
851
 
@@ -902,7 +902,7 @@ EXAMPLES
902
902
  sudo eggs produce --excludes home # exclude ~/*
903
903
  ```
904
904
 
905
- _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/produce.ts)_
905
+ _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/produce.ts)_
906
906
 
907
907
  ## `eggs status`
908
908
 
@@ -923,7 +923,7 @@ EXAMPLES
923
923
  $ eggs status
924
924
  ```
925
925
 
926
- _See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/status.ts)_
926
+ _See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/status.ts)_
927
927
 
928
928
  ## `eggs syncfrom`
929
929
 
@@ -949,7 +949,7 @@ EXAMPLES
949
949
  sudo eggs syncfrom --file /path/to/luks-volume
950
950
  ```
951
951
 
952
- _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/syncfrom.ts)_
952
+ _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/syncfrom.ts)_
953
953
 
954
954
  ## `eggs syncto`
955
955
 
@@ -976,7 +976,7 @@ EXAMPLES
976
976
  sudo eggs syncto --excludes
977
977
  ```
978
978
 
979
- _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/syncto.ts)_
979
+ _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/syncto.ts)_
980
980
 
981
981
  ## `eggs tools clean`
982
982
 
@@ -998,7 +998,7 @@ EXAMPLES
998
998
  sudo eggs tools clean
999
999
  ```
1000
1000
 
1001
- _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/tools/clean.ts)_
1001
+ _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/tools/clean.ts)_
1002
1002
 
1003
1003
  ## `eggs tools ppa`
1004
1004
 
@@ -1024,7 +1024,7 @@ EXAMPLES
1024
1024
  sudo eggs tools ppa --remove
1025
1025
  ```
1026
1026
 
1027
- _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/tools/ppa.ts)_
1027
+ _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/tools/ppa.ts)_
1028
1028
 
1029
1029
  ## `eggs tools skel`
1030
1030
 
@@ -1048,7 +1048,7 @@ EXAMPLES
1048
1048
  sudo eggs tools skel --user user-to-be-copied
1049
1049
  ```
1050
1050
 
1051
- _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/tools/skel.ts)_
1051
+ _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/tools/skel.ts)_
1052
1052
 
1053
1053
  ## `eggs tools stat`
1054
1054
 
@@ -1074,7 +1074,7 @@ EXAMPLES
1074
1074
  $ eggs tools stat --year
1075
1075
  ```
1076
1076
 
1077
- _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/tools/stat.ts)_
1077
+ _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/tools/stat.ts)_
1078
1078
 
1079
1079
  ## `eggs tools yolk`
1080
1080
 
@@ -1095,7 +1095,7 @@ EXAMPLES
1095
1095
  sudo eggs tools yolk
1096
1096
  ```
1097
1097
 
1098
- _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/tools/yolk.ts)_
1098
+ _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/tools/yolk.ts)_
1099
1099
 
1100
1100
  ## `eggs update`
1101
1101
 
@@ -1116,7 +1116,7 @@ EXAMPLES
1116
1116
  $ eggs update
1117
1117
  ```
1118
1118
 
1119
- _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/update.ts)_
1119
+ _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/update.ts)_
1120
1120
 
1121
1121
  ## `eggs version`
1122
1122
 
@@ -1162,7 +1162,7 @@ EXAMPLES
1162
1162
  $ eggs wardrobe get your-wardrobe
1163
1163
  ```
1164
1164
 
1165
- _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/wardrobe/get.ts)_
1165
+ _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/wardrobe/get.ts)_
1166
1166
 
1167
1167
  ## `eggs wardrobe list [REPO]`
1168
1168
 
@@ -1191,7 +1191,7 @@ EXAMPLES
1191
1191
  $ eggs wardrobe list --distro arch
1192
1192
  ```
1193
1193
 
1194
- _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/wardrobe/list.ts)_
1194
+ _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/wardrobe/list.ts)_
1195
1195
 
1196
1196
  ## `eggs wardrobe show [REPO]`
1197
1197
 
@@ -1221,7 +1221,7 @@ EXAMPLES
1221
1221
  $ eggs wardrobe show accessories/
1222
1222
  ```
1223
1223
 
1224
- _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/wardrobe/show.ts)_
1224
+ _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/wardrobe/show.ts)_
1225
1225
 
1226
1226
  ## `eggs wardrobe wear [REPO]`
1227
1227
 
@@ -1252,7 +1252,7 @@ EXAMPLES
1252
1252
  sudo eggs wardrobe wear wagtail/waydroid
1253
1253
  ```
1254
1254
 
1255
- _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.26/src/commands/wardrobe/wear.ts)_
1255
+ _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.27/src/commands/wardrobe/wear.ts)_
1256
1256
  <!-- commandsstop -->
1257
1257
 
1258
1258
  # penGUI
@@ -118,7 +118,7 @@ class Distro {
118
118
  this.memdiskPath = this.syslinuxPath;
119
119
  this.isolinuxPath = this.syslinuxPath;
120
120
  // At the moment
121
- this.isCalamaresAvailable = false;
121
+ this.isCalamaresAvailable = true;
122
122
  break;
123
123
  }
124
124
  case 'Fedora': {
@@ -192,12 +192,14 @@ export default class Pacman {
192
192
  /**
193
193
  * Creazione del file di configurazione /etc/penguins-eggs
194
194
  */
195
- static async configurationInstall(links = true, verbose = true) {
195
+ static async configurationInstall(links = true, verbose = false) {
196
196
  const confRoot = '/etc/penguins-eggs.d';
197
197
  if (!fs.existsSync(confRoot)) {
198
198
  execSync(`mkdir ${confRoot}`);
199
199
  }
200
- console.log('configurationInstall: ' + confRoot);
200
+ if (verbose) {
201
+ console.log('configuration install: ' + confRoot);
202
+ }
201
203
  const addons = `${confRoot}/addons`;
202
204
  if (fs.existsSync(addons)) {
203
205
  execSync(`rm -rf ${addons}`);
@@ -26,38 +26,24 @@ export default async function packages() {
26
26
  const packages = yaml.load(fs.readFileSync(config_file, 'utf8'));
27
27
  let packagesToInstall = [];
28
28
  let packagesToRemove = [];
29
- for (const operation of packages.operations) {
30
- if ('try_remove' in operation) {
31
- packagesToRemove = operation.try_remove;
32
- }
33
- if ('try_install' in operation) {
34
- packagesToInstall = operation.try_install;
29
+ if (packages.operations !== undefined) {
30
+ for (const operation of packages.operations) {
31
+ if ('try_remove' in operation) {
32
+ packagesToRemove = operation.try_remove;
33
+ }
34
+ if ('try_install' in operation) {
35
+ packagesToInstall = operation.try_install;
36
+ }
35
37
  }
36
38
  }
37
39
  // Alpine
38
40
  if (this.distro.familyId === "alpine") {
39
41
  packages.backend = "apk";
40
- if (packagesToRemove != undefined && packagesToRemove.length > 0) {
41
- let cmd = `chroot ${this.installTarget} apk del `;
42
- for (const elem of packagesToRemove) {
43
- if (Pacman.packageIsInstalled(elem)) {
44
- cmd += elem + ' ';
45
- }
46
- }
47
- await exec(`${cmd} ${this.toNull}`, this.echo);
48
- }
49
- if (packagesToInstall != undefined && packagesToInstall.length > 0) {
50
- let cmd = `chroot ${this.installTarget} apk add `;
51
- for (const elem of packagesToInstall) {
52
- cmd += elem + ' ';
53
- }
54
- const update = `chroot ${this.installTarget} apk update ${this.toNull}`;
55
- await exec(update, this.echo);
56
- await exec(`${cmd} ${this.toNull}`, this.echo);
57
- }
58
42
  }
59
43
  if (packages.backend === 'apt') {
60
- // Debian/Devuan/Ubuntu
44
+ /**
45
+ * apt
46
+ */
61
47
  if (packagesToRemove != undefined && packagesToRemove.length > 0) {
62
48
  let cmd = `chroot ${this.installTarget} apt-get purge -y `;
63
49
  for (const elem of packagesToRemove) {
@@ -80,7 +66,9 @@ export default async function packages() {
80
66
  }
81
67
  }
82
68
  else if (packages.backend === 'pacman') {
83
- // arch/manjaro
69
+ /**
70
+ * pacman
71
+ */
84
72
  if (packagesToRemove != undefined && packagesToRemove.length > 0) {
85
73
  let cmd = `chroot ${this.installTarget} pacman -R\n`;
86
74
  for (const elem of packagesToRemove) {
@@ -94,5 +82,24 @@ export default async function packages() {
94
82
  }
95
83
  }
96
84
  }
85
+ else if (packages.backend === 'apk') {
86
+ /**
87
+ * apk
88
+ */
89
+ if (packagesToRemove != undefined && packagesToRemove.length > 0) {
90
+ let cmd = `chroot ${this.installTarget} apk del `;
91
+ for (const elem of packagesToRemove) {
92
+ cmd += elem + ' ';
93
+ }
94
+ await exec(`${cmd} ${this.toNull}`, this.echo);
95
+ }
96
+ if (packagesToInstall != undefined && packagesToInstall.length > 0) {
97
+ let cmd = `chroot ${this.installTarget} apk add `;
98
+ for (const elem of packagesToInstall) {
99
+ cmd += elem + ' ';
100
+ }
101
+ await exec(`${cmd} ${this.toNull}`, this.echo);
102
+ }
103
+ }
97
104
  }
98
105
  }
Binary file
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  </head>
8
8
  <body>
9
- <h1>eggs(1) -- the reproductive system of penguins: eggs v10.0.26</h1>
9
+ <h1>eggs(1) -- the reproductive system of penguins: eggs v10.0.27</h1>
10
10
  <h1>SYNOPSIS</h1>
11
11
  <p>eggs is a console utility, in active development, who let you to remaster your system and redistribuite it as live ISO image.</p>
12
12
  <h1>INSTALL</h1>
@@ -15,11 +15,11 @@
15
15
  </code></pre>
16
16
  <p>Arch</p>
17
17
  <pre><code>$ sudo pacman -S penguins-eggs
18
- $ sudo pacman -U penguins-eggs_10.0.26-1_i386-1-x86_64.pkg.tar.zst
18
+ $ sudo pacman -U penguins-eggs_10.0.27-1_amd64-1-x86_64.pkg.tar.zst
19
19
  </code></pre>
20
20
  <p>Debian/Devuan/Ubuntu</p>
21
21
  <pre><code>$ sudo apt install penguins-eggs
22
- $ sudo dpkg -i penguins-eggs_10.0.26-1_i386.deb
22
+ $ sudo dpkg -i penguins-eggs_10.0.27-1_amd64.deb
23
23
  </code></pre>
24
24
  <p>Manjaro</p>
25
25
  <pre><code>$ sudo pamac install penguins-eggs
@@ -27,7 +27,7 @@ $ sudo dpkg -i penguins-eggs_10.0.26-1_i386.deb
27
27
  <h1>USAGE</h1>
28
28
  <pre><code>$ eggs (-v|--version|version)
29
29
 
30
- penguins-eggs/10.0.26
30
+ penguins-eggs/10.0.27
31
31
  $ eggs --help [COMMAND]
32
32
 
33
33
  USAGE
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "penguins-eggs",
3
3
  "shortName": "eggs",
4
4
  "description": "A remaster system tool, compatible with Arch, Debian, Devuan, Ubuntu and others",
5
- "version": "10.0.26",
5
+ "version": "10.0.27",
6
6
  "author": "Piero Proietti",
7
7
  "bin": {
8
8
  "eggs": "./bin/run.js"
package/scripts/love CHANGED
@@ -1,30 +1,25 @@
1
1
  #!/bin/bash -e
2
2
 
3
-
4
3
  function press_a_key_to_continue {
5
4
  read -rp ">> Press enter to continue or CTRL-C to abort."
6
5
  }
7
6
 
8
-
9
- function kill {
10
- sudo eggs kill
11
- }
12
-
13
- function produce {
14
- sudo eggs dad --default
15
- sudo eggs tools clean
16
- sudo eggs produce
17
- }
18
-
19
7
  # main
8
+ if command -v sudo >/dev/null 2>&1; then
9
+ SUDO='sudo'
10
+ else
11
+ SUDO='doas'
12
+ fi
20
13
  clear
21
14
  echo ">>> L O V E : the simplest way to get a child!"
22
15
  echo
23
- echo "1) sudo eggs kill"
24
- echo "2) sudo eggs dad --default"
25
- echo "3) sudo eggs tools clean"
26
- echo "4) sudo eggs produce"
16
+ echo "1) $SUDO eggs kill"
17
+ echo "2) $SUDO eggs dad --default"
18
+ echo "3) $SUDO eggs tools clean"
19
+ echo "4) $SUDO eggs produce"
27
20
  echo
28
21
  press_a_key_to_continue
29
- kill
30
- produce
22
+ $SUDO eggs kill
23
+ $SUDO eggs dad --default
24
+ $SUDO eggs tools clean
25
+ $SUDO eggs produce