penguins-eggs 9.0.35 → 9.1.11

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.
Files changed (155) hide show
  1. package/README.md +136 -71
  2. package/assets/leaves.svg +1 -0
  3. package/assets/live-installer/com.github.pieroproietti.penguins-eggs.policy +25 -0
  4. package/assets/live-installer/filesystem.packages-remove +49 -0
  5. package/assets/penguins-live-installer.desktop +27 -0
  6. package/conf/distros/buster/calamares/modules/bootloader.yml +3 -1
  7. package/conf/eggs.yaml +9 -2
  8. package/lib/classes/bleach.js +2 -2
  9. package/lib/classes/compressors.js +1 -1
  10. package/lib/classes/daddy.js +28 -28
  11. package/lib/classes/distro.d.ts +1 -1
  12. package/lib/classes/distro.js +18 -4
  13. package/lib/classes/family/archlinux.js +4 -4
  14. package/lib/classes/family/debian.d.ts +4 -0
  15. package/lib/classes/family/debian.js +11 -4
  16. package/lib/classes/family/fedora.js +4 -4
  17. package/lib/classes/family/suse.js +4 -4
  18. package/lib/classes/i18n.d.ts +28 -4
  19. package/lib/classes/i18n.js +112 -84
  20. package/lib/classes/incubation/branding.js +13 -7
  21. package/lib/classes/incubation/distros/bionic.js +1 -1
  22. package/lib/classes/incubation/distros/buster.js +1 -1
  23. package/lib/classes/incubation/distros/focal.js +1 -1
  24. package/lib/classes/incubation/distros/jessie.js +1 -1
  25. package/lib/classes/incubation/distros/rolling.js +1 -1
  26. package/lib/classes/incubation/fisherman-helper/displaymanager.js +1 -1
  27. package/lib/classes/incubation/fisherman-helper/packages.js +1 -1
  28. package/lib/classes/incubation/fisherman.js +5 -5
  29. package/lib/classes/incubation/incubator.js +4 -4
  30. package/lib/classes/incubation/installer.js +2 -2
  31. package/lib/classes/initrd.js +2 -2
  32. package/lib/classes/keyboards.d.ts +45 -0
  33. package/lib/classes/keyboards.js +196 -0
  34. package/lib/classes/krill_install.d.ts +4 -0
  35. package/lib/classes/krill_install.js +28 -10
  36. package/lib/classes/krill_prepare.d.ts +4 -0
  37. package/lib/classes/krill_prepare.js +56 -77
  38. package/lib/classes/locales.d.ts +14 -0
  39. package/lib/classes/locales.js +54 -0
  40. package/lib/classes/n8.js +1 -1
  41. package/lib/classes/ovary.d.ts +6 -0
  42. package/lib/classes/ovary.js +38 -24
  43. package/lib/classes/pacman.js +19 -19
  44. package/lib/classes/pve-live.js +3 -3
  45. package/lib/classes/settings.d.ts +6 -0
  46. package/lib/classes/settings.js +13 -16
  47. package/lib/classes/sources_list.d.ts +27 -0
  48. package/lib/classes/sources_list.js +103 -0
  49. package/lib/classes/systemctl.js +1 -1
  50. package/lib/classes/tailor.d.ts +41 -0
  51. package/lib/classes/tailor.js +356 -0
  52. package/lib/classes/tools.js +4 -4
  53. package/lib/classes/users.js +1 -1
  54. package/lib/classes/utils.d.ts +10 -0
  55. package/lib/classes/utils.js +39 -19
  56. package/lib/classes/xdg.d.ts +2 -1
  57. package/lib/classes/xdg.js +52 -111
  58. package/lib/classes/yolk.js +5 -5
  59. package/lib/commands/adapt.d.ts +0 -1
  60. package/lib/commands/adapt.js +2 -2
  61. package/lib/commands/analyze.js +6 -3
  62. package/lib/commands/calamares.js +4 -4
  63. package/lib/commands/config.d.ts +0 -1
  64. package/lib/commands/config.js +12 -7
  65. package/lib/commands/dad.js +5 -2
  66. package/lib/commands/export/deb.js +2 -2
  67. package/lib/commands/export/docs.js +2 -2
  68. package/lib/commands/export/iso.js +2 -2
  69. package/lib/commands/info.js +2 -2
  70. package/lib/commands/install.d.ts +0 -1
  71. package/lib/commands/install.js +11 -8
  72. package/lib/commands/kill.js +6 -3
  73. package/lib/commands/mom.js +2 -2
  74. package/lib/commands/produce.d.ts +0 -1
  75. package/lib/commands/produce.js +13 -10
  76. package/lib/commands/remove.js +5 -2
  77. package/lib/commands/syncfrom.d.ts +0 -1
  78. package/lib/commands/syncfrom.js +6 -3
  79. package/lib/commands/syncto.d.ts +0 -1
  80. package/lib/commands/syncto.js +7 -4
  81. package/lib/commands/tools/clean.d.ts +0 -1
  82. package/lib/commands/tools/clean.js +11 -6
  83. package/lib/commands/tools/locales.js +12 -4
  84. package/lib/commands/tools/skel.d.ts +0 -1
  85. package/lib/commands/tools/skel.js +6 -3
  86. package/lib/commands/tools/stat.d.ts +0 -1
  87. package/lib/commands/tools/stat.js +4 -4
  88. package/lib/commands/tools/yolk.js +7 -4
  89. package/lib/commands/update.d.ts +0 -2
  90. package/lib/commands/update.js +12 -58
  91. package/lib/commands/wardrobe/get.d.ts +17 -0
  92. package/lib/commands/wardrobe/get.js +43 -0
  93. package/lib/commands/wardrobe/ironing.d.ts +15 -0
  94. package/lib/commands/wardrobe/ironing.js +125 -0
  95. package/lib/commands/wardrobe/list.d.ts +17 -0
  96. package/lib/commands/wardrobe/list.js +81 -0
  97. package/lib/commands/wardrobe/show.d.ts +19 -0
  98. package/lib/commands/wardrobe/show.js +71 -0
  99. package/lib/commands/wardrobe/wear.d.ts +20 -0
  100. package/lib/commands/wardrobe/wear.js +79 -0
  101. package/lib/components/elements/information.js +29 -25
  102. package/lib/components/elements/steps.js +1 -1
  103. package/lib/components/elements/title.js +5 -4
  104. package/lib/components/finished.js +6 -5
  105. package/lib/components/install.js +5 -5
  106. package/lib/components/keyboard.js +5 -8
  107. package/lib/components/location.js +5 -5
  108. package/lib/components/network.js +6 -5
  109. package/lib/components/partitions.js +5 -5
  110. package/lib/components/summary.js +5 -5
  111. package/lib/components/users.js +5 -5
  112. package/lib/components/welcome.js +7 -7
  113. package/lib/interfaces/i-costume.d.ts +27 -0
  114. package/lib/interfaces/i-costume.js +2 -0
  115. package/lib/interfaces/i-krill.d.ts +1 -0
  116. package/lib/interfaces/i-materia.d.ts +32 -0
  117. package/lib/interfaces/i-materia.js +2 -0
  118. package/lib/interfaces/i-packages.d.ts +13 -0
  119. package/lib/interfaces/i-packages.js +2 -0
  120. package/lib/interfaces/i-xkb-model.d.ts +17 -0
  121. package/lib/interfaces/i-xkb-model.js +2 -0
  122. package/lib/interfaces/index.d.ts +2 -0
  123. package/lib/lib/cli-autologin.js +3 -3
  124. package/lib/lib/select_address_type.js +1 -1
  125. package/lib/lib/select_filesystem_type.js +2 -2
  126. package/lib/lib/select_installation_device.js +1 -1
  127. package/lib/lib/select_interface.js +1 -1
  128. package/lib/lib/select_keyboard_layout.d.ts +1 -28
  129. package/lib/lib/select_keyboard_layout.js +18 -33
  130. package/lib/lib/select_keyboard_model.d.ts +4 -0
  131. package/lib/lib/select_keyboard_model.js +36 -0
  132. package/lib/lib/select_keyboard_option.d.ts +4 -0
  133. package/lib/lib/select_keyboard_option.js +36 -0
  134. package/lib/lib/select_keyboard_variant.d.ts +1 -5
  135. package/lib/lib/select_keyboard_variant.js +32 -5
  136. package/lib/lib/select_languages.d.ts +1 -1
  137. package/lib/lib/select_languages.js +8 -7
  138. package/lib/lib/select_regions.d.ts +1 -1
  139. package/lib/lib/select_regions.js +2 -2
  140. package/lib/lib/select_user_swap_choice.js +2 -2
  141. package/oclif.manifest.json +1 -1
  142. package/package.json +19 -20
  143. package/scripts/_eggs +54 -16
  144. package/scripts/eggs.bash +9 -5
  145. package/scripts/mom-cli.sh +66 -0
  146. package/scripts/resy.sh +8 -0
  147. package/assets/penguins-clinstaller.desktop +0 -24
  148. package/assets/penguins-minstall.desktop +0 -95
  149. package/conf/distros/buster/locales/locale.gen.template +0 -10
  150. package/conf/distros/buster/locales/locale.template +0 -11
  151. package/conf/distros/focal/locale.gen.template +0 -8
  152. package/lib/classes/basket.d.ts +0 -22
  153. package/lib/classes/basket.js +0 -114
  154. package/lib/commands/bro.d.ts +0 -14
  155. package/lib/commands/bro.js +0 -31
@@ -1,22 +0,0 @@
1
- /**
2
- * penguins-eggs-v7
3
- * author: Piero Proietti
4
- * email: piero.proietti@gmail.com
5
- * license: MIT
6
- */
7
- /**
8
- * Basket
9
- */
10
- export default class Basket {
11
- lastVersion: string;
12
- constructor();
13
- /**
14
- *
15
- */
16
- last(): Promise<string>;
17
- /**
18
- *
19
- * @param aptVersion
20
- */
21
- get(): Promise<void>;
22
- }
@@ -1,114 +0,0 @@
1
- "use strict";
2
- /**
3
- * penguins-eggs-v7
4
- * author: Piero Proietti
5
- * email: piero.proietti@gmail.com
6
- * license: MIT
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
10
- const fs = require("fs");
11
- const pacman_1 = (0, tslib_1.__importDefault)(require("../classes/pacman"));
12
- const utils_1 = (0, tslib_1.__importDefault)(require("./utils"));
13
- const axios_1 = (0, tslib_1.__importDefault)(require("axios"));
14
- const node_https_1 = (0, tslib_1.__importDefault)(require("node:https"));
15
- const agent = new node_https_1.default.Agent({
16
- rejectUnauthorized: false
17
- });
18
- const utils_2 = require("../lib/utils");
19
- const config_file = '/etc/penguins-eggs.d/eggs.yaml';
20
- const config_tools = '/etc/penguins-eggs.d/tools.yaml';
21
- /**
22
- * Basket
23
- */
24
- class Basket {
25
- constructor() {
26
- this.lastVersion = '';
27
- this.lastVersion = '';
28
- }
29
- /**
30
- *
31
- */
32
- async last() {
33
- if (this.lastVersion === '') {
34
- const url = 'https://penguins-eggs.net/versions/all/' + utils_1.default.eggsArch() + '/';
35
- try {
36
- const res = await axios_1.default.get(url, { httpsAgent: agent });
37
- // const res = await axios.get(url)
38
- const data = res.data;
39
- // Ordino le versioni
40
- data.sort((a, b) => (a.version < b.version ? 1 : b.version < a.version ? -1 : 0));
41
- this.lastVersion = data[0].version;
42
- }
43
- catch {
44
- console.log("cannot reach eggs's basket");
45
- }
46
- }
47
- return this.lastVersion;
48
- }
49
- /**
50
- *
51
- * @param aptVersion
52
- */
53
- async get() {
54
- if (!pacman_1.default.packageIsInstalled('wget')) {
55
- utils_1.default.titles('Update from internet');
56
- console.log('To download eggs from basket, You need to install wget!\nUse: sudo apt install wget');
57
- process.exit(1);
58
- }
59
- const url = 'https://penguins-eggs.net/versions/all/' + utils_1.default.eggsArch() + '/';
60
- const res = await axios_1.default.get(url, { httpsAgent: agent });
61
- const data = res.data;
62
- // Ordino le versioni
63
- data.sort((a, b) => (a.version < b.version ? 1 : b.version < a.version ? -1 : 0));
64
- const versions = [];
65
- for (let i = 0; i < data.length && i <= 3; i++) {
66
- versions.push(data[i]);
67
- }
68
- /**
69
- * choose the version
70
- */
71
- const inquirer = require('inquirer');
72
- const choices = ['abort'];
73
- choices.push(new inquirer.Separator('exit without update.'));
74
- for (const version of versions) {
75
- choices.push(version.version);
76
- choices.push(new inquirer.Separator(version.changelog));
77
- }
78
- const questions = [
79
- {
80
- type: 'list',
81
- message: 'select version ',
82
- name: 'selected',
83
- choices: choices
84
- }
85
- ];
86
- const answer = await inquirer.prompt(questions);
87
- if (answer.selected === 'abort') {
88
- process.exit(0);
89
- }
90
- const deb = 'eggs_' + answer.selected + '-1_' + utils_1.default.eggsArch() + '.deb';
91
- const download = 'https://sourceforge.net/projects/penguins-eggs/files/packages-deb/' + deb;
92
- /**
93
- * downloading
94
- */
95
- utils_1.default.titles(`downloading ${deb}`);
96
- if (await utils_1.default.customConfirm(`Want to download ${deb}`)) {
97
- process.chdir('/tmp');
98
- if (fs.existsSync(deb)) {
99
- fs.unlinkSync(deb);
100
- }
101
- /**
102
- * Installing
103
- */
104
- await (0, utils_2.exec)(`wget ${download}`);
105
- utils_1.default.titles(`install ${deb}`);
106
- if (await utils_1.default.customConfirm(`Want to install ${deb}`)) {
107
- await (0, utils_2.exec)('apt-get -y purge eggs > /dev/null');
108
- await (0, utils_2.exec)('rm /usr/lib/penguins-eggs -rf');
109
- await (0, utils_2.exec)(`dpkg -i ${deb}`);
110
- }
111
- }
112
- }
113
- }
114
- exports.default = Basket;
@@ -1,14 +0,0 @@
1
- /**
2
- * penguins-eggs-v8
3
- * author: Piero Proietti
4
- * email: piero.proietti@gmail.com
5
- * license: MIT
6
- */
7
- import { Command } from '@oclif/core';
8
- export default class Bro extends Command {
9
- static description: string;
10
- static flags: {
11
- help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
12
- };
13
- run(): Promise<void>;
14
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /**
5
- * penguins-eggs-v8
6
- * author: Piero Proietti
7
- * email: piero.proietti@gmail.com
8
- * license: MIT
9
- */
10
- const core_1 = require("@oclif/core");
11
- const node_path_1 = (0, tslib_1.__importDefault)(require("node:path"));
12
- const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
13
- const utils_2 = require("../lib/utils");
14
- class Bro extends core_1.Command {
15
- async run() {
16
- utils_1.default.titles(this.id + ' ' + this.argv);
17
- const { args, flags } = await this.parse(Bro);
18
- // No sudo!
19
- if (process.getuid && process.getuid() === 0) {
20
- utils_1.default.warning('You must to be kind with your bro, call him without sudo');
21
- process.exit(0);
22
- }
23
- const cmd = node_path_1.default.resolve(__dirname, '../../scripts/bros/waydroid-helper.sh');
24
- await (0, utils_2.exec)(cmd);
25
- }
26
- }
27
- exports.default = Bro;
28
- Bro.description = 'bro: waydroid helper';
29
- Bro.flags = {
30
- help: core_1.Flags.help({ char: 'h' })
31
- };