penguins-eggs 9.1.30 → 9.1.31

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 CHANGED
@@ -132,7 +132,7 @@ $ npm install -g penguins-eggs
132
132
  $ eggs COMMAND
133
133
  running command...
134
134
  $ eggs (--version|-v)
135
- penguins-eggs/9.1.30 linux-x64 node-v18.2.0
135
+ penguins-eggs/9.1.31 linux-x64 node-v16.15.1
136
136
  $ eggs --help [COMMAND]
137
137
  USAGE
138
138
  $ eggs COMMAND
@@ -188,7 +188,7 @@ DESCRIPTION
188
188
  adapt monitor resolution for VM only
189
189
  ```
190
190
 
191
- _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/adapt.ts)_
191
+ _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/adapt.ts)_
192
192
 
193
193
  ## `eggs analyze`
194
194
 
@@ -209,7 +209,7 @@ EXAMPLES
209
209
  $ sudo eggs analyze
210
210
  ```
211
211
 
212
- _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/analyze.ts)_
212
+ _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/analyze.ts)_
213
213
 
214
214
  ## `eggs autocomplete [SHELL]`
215
215
 
@@ -267,7 +267,7 @@ EXAMPLES
267
267
  install calamares and create it's configuration's files
268
268
  ```
269
269
 
270
- _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/calamares.ts)_
270
+ _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/calamares.ts)_
271
271
 
272
272
  ## `eggs config`
273
273
 
@@ -291,7 +291,7 @@ EXAMPLES
291
291
  Configure and install prerequisites deb packages to run it
292
292
  ```
293
293
 
294
- _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/config.ts)_
294
+ _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/config.ts)_
295
295
 
296
296
  ## `eggs dad`
297
297
 
@@ -311,7 +311,7 @@ DESCRIPTION
311
311
  ask help from daddy - configuration helper
312
312
  ```
313
313
 
314
- _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/dad.ts)_
314
+ _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/dad.ts)_
315
315
 
316
316
  ## `eggs export deb`
317
317
 
@@ -402,7 +402,7 @@ DESCRIPTION
402
402
  informations about eggs configuration
403
403
  ```
404
404
 
405
- _See code: [src/commands/info.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/info.ts)_
405
+ _See code: [src/commands/info.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/info.ts)_
406
406
 
407
407
  ## `eggs install`
408
408
 
@@ -427,7 +427,7 @@ EXAMPLES
427
427
  Install the system using GUI or CLI installer
428
428
  ```
429
429
 
430
- _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/install.ts)_
430
+ _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/install.ts)_
431
431
 
432
432
  ## `eggs kill`
433
433
 
@@ -449,7 +449,7 @@ EXAMPLES
449
449
  kill the eggs/free the nest
450
450
  ```
451
451
 
452
- _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/kill.ts)_
452
+ _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/kill.ts)_
453
453
 
454
454
  ## `eggs mom`
455
455
 
@@ -466,7 +466,7 @@ DESCRIPTION
466
466
  ask for mommy - gui helper
467
467
  ```
468
468
 
469
- _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/mom.ts)_
469
+ _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/mom.ts)_
470
470
 
471
471
  ## `eggs produce`
472
472
 
@@ -527,7 +527,7 @@ EXAMPLES
527
527
  in /home/eggs/ovarium and you can customize all you need
528
528
  ```
529
529
 
530
- _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/produce.ts)_
530
+ _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/produce.ts)_
531
531
 
532
532
  ## `eggs remove`
533
533
 
@@ -557,7 +557,7 @@ EXAMPLES
557
557
  remove eggs, eggs configurations, packages dependencies
558
558
  ```
559
559
 
560
- _See code: [src/commands/remove.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/remove.ts)_
560
+ _See code: [src/commands/remove.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/remove.ts)_
561
561
 
562
562
  ## `eggs syncfrom`
563
563
 
@@ -581,7 +581,7 @@ EXAMPLES
581
581
  $ sudo eggs restore
582
582
  ```
583
583
 
584
- _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/syncfrom.ts)_
584
+ _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/syncfrom.ts)_
585
585
 
586
586
  ## `eggs syncto`
587
587
 
@@ -604,7 +604,7 @@ EXAMPLES
604
604
  $ sudo eggs syncto
605
605
  ```
606
606
 
607
- _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/syncto.ts)_
607
+ _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/syncto.ts)_
608
608
 
609
609
  ## `eggs tools clean`
610
610
 
@@ -699,7 +699,7 @@ EXAMPLES
699
699
  update/upgrade the penguin's eggs tool
700
700
  ```
701
701
 
702
- _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.30/src/commands/update.ts)_
702
+ _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.1.31/src/commands/update.ts)_
703
703
 
704
704
  ## `eggs version`
705
705
 
@@ -6,3 +6,4 @@ backend: pamac
6
6
  operations:
7
7
  {{remove}}
8
8
  {{try_install}}
9
+
@@ -12,6 +12,7 @@ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
12
12
  const utils_1 = tslib_1.__importDefault(require("./utils"));
13
13
  // libraries
14
14
  const utils_2 = require("../lib/utils");
15
+ const distro_1 = tslib_1.__importDefault(require("./distro"));
15
16
  /**
16
17
  * Bleach:
17
18
  */
@@ -21,7 +22,13 @@ class Bleach {
21
22
  * @param verbose
22
23
  */
23
24
  async clean(verbose = false) {
24
- await this.cleanApt(verbose);
25
+ const distro = new distro_1.default();
26
+ if (distro.distroLike === 'Debian' || distro.distroLike === 'Devuan' || (distro.distroLike === 'Ubuntu')) {
27
+ await this.cleanApt(verbose);
28
+ }
29
+ else if (distro.distroLike === 'Arch') {
30
+ await (0, utils_2.exec)('paccache -ruk0');
31
+ }
25
32
  await this.cleanHistory(verbose);
26
33
  await this.cleanJournal(verbose);
27
34
  await this.cleanSystemCache(verbose);
@@ -51,7 +51,7 @@ function tryInstall(distro) {
51
51
  }
52
52
  // Da localizzare se presenti
53
53
  if (pacman_1.default.packageIsInstalled('hunspell')) {
54
- packages += 'hunspell-$LOCALE\n';
54
+ packages += ' - hunspell-$LOCALE\n';
55
55
  }
56
56
  if (pacman_1.default.packageIsInstalled('libreoffice-base-core')) {
57
57
  packages += ` - libreoffice-l10n-$LOCALE\n`;
@@ -1,77 +1,9 @@
1
- # mkinitcpio-squashfs
1
+ # Hic sunt leones...
2
2
 
3
- ## installation
4
- * ```git clone https://github.com/RegalisTechnologies/mkinitcpio-squashfs```
5
- * ```cd mkinitcpio-squashfs/dist/archlinux```
6
- * ```makepkg -si```
3
+ After Debian/Devuan/Ubuntu I decided to bring eggs under Arch and thanx to the collaboration of stefano@manjaro.com
4
+ we was able to remaster linuxmanjaro since january 2022.
7
5
 
8
- # manjaro
9
- edit ```/etc/mkinitcpio.conf``` replaca HOOKS with:
6
+ eggs was in community until June 2022, after which it was removed due to compatibility issues. I started because of this to try to optimize the PKGBUILD of eggs to make it complete, streamlined, and compliant with manjaro policies.
10
7
 
11
- ```HOOKS=(base udev modconf block squashfs filesystems)```
12
8
 
13
- It is possible to test with ```autodetect``` in place of ```modconf```
14
9
 
15
- ## show hooks availables
16
- ``` ls /usr/lib/initcpio/install/ ```
17
- ``` mkinitcpio -L```
18
-
19
- ## initramfs creation
20
- ```mkinitcpio -g initramfs-5.13-x86_64.img```
21
-
22
- ## copy initramfs-5.13-x86_64.img on iso
23
- ```sudo cp initramfs-5.13-x86_64.img /home/eggs/ovarium/iso/live/```
24
-
25
- ## change the kernel parameters in isolinux.cfg
26
-
27
- edit ```isolinux.cfg```, as follow:
28
-
29
- ```sudo nano /home/eggs/ovarium/iso/live/isolinux/isolinux.cfg```
30
- and delete, or comment the follow line
31
-
32
- ```
33
- ...
34
- squashfs=LABEL={{{volid}}}:/live/filesystem.squashfs
35
- ```
36
-
37
- in ```{{{volid}}}``` replace with the content of ```.disk/info```
38
-
39
- The folder ```.disk``` is present under folder ```iso``` in ```ovarium```. Example:
40
-
41
- ```
42
- say "Booting GNU/Linux Live (kernel 5.13.19-2-MANJARO)..."
43
- linux /live/vmlinuz-5.13-x86_64
44
- append initrd=/live/initramfs-5.13-x86_64.img squashfs=LABEL=xfce:/live/filesystem.squashfs boot=live components locales=it_IT.utf8
45
- ```
46
-
47
- ## Remove previous iso image
48
- ```sudo rm /home/eggs/egg-of-*```
49
-
50
- ## rebuild a new iso image
51
- ```sudo /home/eggs/ovarium/mkisofs```
52
-
53
- ## export the new iso image to test
54
- We have in ```/etc/penguins-eggs.d/tools.yml``` the follow lines,
55
-
56
- ```
57
- remoteHost: 192.168.61.2
58
- remotePathIso: /home/artisan/sourceforge/iso/
59
- ```
60
-
61
- I use a Proxmox VE installation to manage my VMs, so we need to export our iso to the host, under
62
- the path ```/var/lib/vz/template/so```. It is a repetitive task for me, and boring enouth digit the
63
- commands to delete previous images and copy the new ones, so I add a command ```eggs export iso -c```
64
- to automatize that. Sorry, the address of remote host configuration and remoteIso path are hard
65
- coded in eggs, but you can edit ```/etc/penguins-eggs.d/tools.yml``` and place your needs.
66
-
67
- So: ```./eggs export iso -c```
68
-
69
- At this point we can boot our image.
70
-
71
- Probably there are situations where you are usig qemu and this command it's not necessary or different.
72
-
73
-
74
-
75
-
76
-
77
- # Garuda
@@ -0,0 +1,15 @@
1
+ # manjaro-tools-iso
2
+
3
+ To not depend from manjaro-tools-iso, who bring a lot of stuffs not necessary for eggs, we need:
4
+
5
+ * copy [initcpio stuffs](https://gitlab.manjaro.org/tools/development-tools/manjaro-tools/-/tree/master/initcpio) from [manjaro-tools](https://gitlab.manjaro.org/tools/development-tools/manjaro-tools) to /usr/lib/initcpio
6
+ * copy manjaro-tools/initcpio/script/miso_shutdown in /etc/initcpio/
7
+
8
+
9
+ cut and paste
10
+ ```
11
+ git clone https://gitlab.manjaro.org/tools/development-tools/manjaro-tools
12
+ sudo cp manjaro-tools/initcpio/hooks/ /usr/lib/initcpio/ -R
13
+ sudo cp manjaro-tools/initcpio/install/ /usr/lib/initcpio/ -R
14
+ sudo cp manjaro-tools/initcpio/script/miso_shutdown /etc/initcpio/
15
+ ```
@@ -2,3 +2,6 @@
2
2
  MODULES="loop dm-snapshot"
3
3
  HOOKS="base udev miso_shutdown miso miso_loop_mnt miso_kms modconf block filesystems keyboard keymap"
4
4
  COMPRESSION="zstd"
5
+
6
+
7
+ # HOOKS="base udev pe_miso_shutdown pe_miso pe_miso_loop_mnt pe_miso_kms modconf block filesystems keyboard keymap"
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "penguins-eggs",
3
3
  "description": "Perri's Brewery edition: remaster your system and distribuite it",
4
- "version": "9.1.30",
4
+ "version": "9.1.31",
5
5
  "author": "Piero Proietti @pieroproietti",
6
6
  "bin": {
7
7
  "eggs": "bin/run"
8
8
  },
9
9
  "bugs": "https://github.com/pieroproietti/penguins-eggs/issues",
10
10
  "dependencies": {
11
- "@oclif/core": "^1.8.2",
11
+ "@oclif/core": "^1.9.0",
12
12
  "@oclif/plugin-autocomplete": "^1.3.0",
13
13
  "@oclif/plugin-help": "^5.1.12",
14
14
  "@oclif/plugin-not-found": "^2.3.1",
@@ -35,11 +35,11 @@
35
35
  "@types/inquirer": "^8.2.1",
36
36
  "@types/js-yaml": "^4.0.5",
37
37
  "@types/mocha": "^9.1.1",
38
- "@types/mustache": "^4.1.2",
39
- "@types/node": "^17.0.35",
40
- "@types/react": "^18.0.9",
38
+ "@types/mustache": "^4.1.3",
39
+ "@types/node": "^17.0.42",
40
+ "@types/react": "^18.0.12",
41
41
  "@types/shelljs": "^0.8.11",
42
- "@typescript-eslint/parser": "^5.0.0",
42
+ "@typescript-eslint/parser": "^5.27.1",
43
43
  "chai": "^4.3.6",
44
44
  "eslint": "^7.32.0",
45
45
  "eslint-config-oclif": "^4.0.0",
@@ -48,9 +48,9 @@
48
48
  "mocha": "^10.0.0",
49
49
  "nyc": "^15.1.0",
50
50
  "perrisbrewery": "^0.6.3-1",
51
- "ts-node": "^10.7.0",
52
- "typedoc": "^0.22.15",
53
- "typescript": "^4.6.4"
51
+ "ts-node": "^10.8.1",
52
+ "typedoc": "^0.22.17",
53
+ "typescript": "^4.7.3"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@typescript-eslint/parser": "^5.0.0",
@@ -68,8 +68,7 @@
68
68
  "/lib",
69
69
  "/manpages",
70
70
  "mkinitcpio",
71
- "/scripts",
72
- "/templates"
71
+ "/scripts"
73
72
  ],
74
73
  "homepage": "https://penguins-eggs.net/",
75
74
  "keywords": [