penguins-eggs 9.0.25 → 9.0.48

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 (163) hide show
  1. package/README.md +448 -22
  2. package/addons/telos/theme/applications/install-debian.desktop +28 -0
  3. package/addons/telos/theme/artwork/install-debian.png +0 -0
  4. package/addons/telos/theme/calamares/branding/banner.png +0 -0
  5. package/addons/telos/theme/calamares/branding/branding.desc +25 -0
  6. package/addons/telos/theme/calamares/branding/show.qml +51 -0
  7. package/addons/telos/theme/calamares/branding/slide1.png +0 -0
  8. package/addons/telos/theme/calamares/branding/telos-logo.png +0 -0
  9. package/addons/telos/theme/calamares/branding/welcome.png +0 -0
  10. package/addons/telos/theme/calamares/modules/partition.yml +233 -0
  11. package/addons/telos/theme/livecd/grub.theme.cfg +43 -0
  12. package/addons/telos/theme/livecd/isolinux.theme.cfg +45 -0
  13. package/addons/telos/theme/livecd/splash.png +0 -0
  14. package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +57 -38
  15. package/conf/distros/buster/calamares/modules/bootloader.yml +3 -1
  16. package/conf/eggs.yaml +9 -2
  17. package/lib/classes/basket.js +4 -4
  18. package/lib/classes/bleach.js +2 -2
  19. package/lib/classes/compressors.js +1 -1
  20. package/lib/classes/daddy.js +13 -13
  21. package/lib/classes/distro.d.ts +4 -2
  22. package/lib/classes/distro.js +77 -79
  23. package/lib/classes/family/archlinux.js +4 -4
  24. package/lib/classes/family/debian.js +6 -6
  25. package/lib/classes/family/fedora.js +4 -4
  26. package/lib/classes/family/suse.js +4 -4
  27. package/lib/classes/i18n.d.ts +28 -4
  28. package/lib/classes/i18n.js +112 -84
  29. package/lib/classes/incubation/branding.js +13 -7
  30. package/lib/classes/incubation/distros/bionic.js +1 -1
  31. package/lib/classes/incubation/distros/buster.js +1 -1
  32. package/lib/classes/incubation/distros/focal.js +1 -1
  33. package/lib/classes/incubation/distros/jessie.js +1 -1
  34. package/lib/classes/incubation/distros/rolling.js +1 -1
  35. package/lib/classes/incubation/fisherman-helper/displaymanager.js +1 -1
  36. package/lib/classes/incubation/fisherman-helper/packages.js +2 -2
  37. package/lib/classes/incubation/fisherman.js +5 -5
  38. package/lib/classes/incubation/incubator.js +5 -5
  39. package/lib/classes/incubation/installer.d.ts +1 -1
  40. package/lib/classes/incubation/installer.js +4 -4
  41. package/lib/classes/initrd.js +2 -2
  42. package/lib/classes/keyboards.d.ts +45 -0
  43. package/lib/classes/keyboards.js +196 -0
  44. package/lib/classes/krill_install.d.ts +12 -1
  45. package/lib/classes/krill_install.js +300 -312
  46. package/lib/classes/krill_prepare.d.ts +4 -0
  47. package/lib/classes/krill_prepare.js +81 -83
  48. package/lib/classes/locales.d.ts +14 -0
  49. package/lib/classes/locales.js +54 -0
  50. package/lib/classes/n8.js +1 -1
  51. package/lib/classes/ovary.d.ts +27 -27
  52. package/lib/classes/ovary.js +356 -387
  53. package/lib/classes/pacman.d.ts +1 -1
  54. package/lib/classes/pacman.js +40 -40
  55. package/lib/classes/pve-live.js +12 -16
  56. package/lib/classes/settings.d.ts +6 -0
  57. package/lib/classes/settings.js +11 -13
  58. package/lib/classes/systemctl.d.ts +36 -7
  59. package/lib/classes/systemctl.js +63 -28
  60. package/lib/classes/tailor.d.ts +20 -0
  61. package/lib/classes/tailor.js +460 -0
  62. package/lib/classes/tools.js +4 -4
  63. package/lib/classes/users.js +1 -1
  64. package/lib/classes/utils.d.ts +14 -3
  65. package/lib/classes/utils.js +75 -28
  66. package/lib/classes/xdg.js +23 -39
  67. package/lib/classes/yolk.d.ts +12 -10
  68. package/lib/classes/yolk.js +54 -56
  69. package/lib/commands/adapt.js +1 -1
  70. package/lib/commands/analyze.js +2 -2
  71. package/lib/commands/bro.js +2 -2
  72. package/lib/commands/calamares.js +4 -4
  73. package/lib/commands/config.js +4 -4
  74. package/lib/commands/dad.js +2 -2
  75. package/lib/commands/export/deb.js +2 -2
  76. package/lib/commands/export/docs.js +2 -2
  77. package/lib/commands/export/iso.js +2 -2
  78. package/lib/commands/info.js +1 -1
  79. package/lib/commands/install.js +5 -5
  80. package/lib/commands/kill.js +2 -2
  81. package/lib/commands/mom.js +2 -2
  82. package/lib/commands/produce.js +11 -11
  83. package/lib/commands/remove.js +2 -2
  84. package/lib/commands/syncfrom.d.ts +9 -3
  85. package/lib/commands/syncfrom.js +39 -32
  86. package/lib/commands/syncto.d.ts +26 -6
  87. package/lib/commands/syncto.js +73 -50
  88. package/lib/commands/tools/clean.js +2 -2
  89. package/lib/commands/tools/locales.js +9 -4
  90. package/lib/commands/tools/skel.js +2 -2
  91. package/lib/commands/tools/stat.js +3 -3
  92. package/lib/commands/tools/yolk.js +4 -4
  93. package/lib/commands/update.js +5 -5
  94. package/lib/commands/wardrobe/ironing.d.ts +14 -0
  95. package/lib/commands/wardrobe/ironing.js +123 -0
  96. package/lib/commands/wardrobe/list.d.ts +13 -0
  97. package/lib/commands/wardrobe/list.js +46 -0
  98. package/lib/commands/wardrobe/show.d.ts +15 -0
  99. package/lib/commands/wardrobe/show.js +55 -0
  100. package/lib/commands/wardrobe/wear.d.ts +11 -0
  101. package/lib/commands/wardrobe/wear.js +42 -0
  102. package/lib/components/elements/information.js +37 -18
  103. package/lib/components/elements/steps.js +1 -1
  104. package/lib/components/elements/title.js +2 -2
  105. package/lib/components/finished.js +5 -5
  106. package/lib/components/install.js +5 -5
  107. package/lib/components/keyboard.js +5 -8
  108. package/lib/components/location.js +5 -5
  109. package/lib/components/network.js +5 -5
  110. package/lib/components/partitions.js +5 -5
  111. package/lib/components/summary.js +5 -5
  112. package/lib/components/users.js +5 -5
  113. package/lib/components/welcome.js +6 -6
  114. package/lib/interfaces/i-costume.d.ts +43 -0
  115. package/lib/interfaces/i-costume.js +2 -0
  116. package/lib/interfaces/i-distro.d.ts +4 -2
  117. package/lib/interfaces/i-installer.d.ts +1 -1
  118. package/lib/interfaces/i-krill.d.ts +1 -0
  119. package/lib/interfaces/i-packages.d.ts +13 -0
  120. package/lib/interfaces/i-packages.js +2 -0
  121. package/lib/interfaces/i-xkb-model.d.ts +17 -0
  122. package/lib/interfaces/i-xkb-model.js +2 -0
  123. package/lib/interfaces/index.d.ts +1 -0
  124. package/lib/lib/cli-autologin.js +3 -3
  125. package/lib/lib/select_address_type.js +1 -1
  126. package/lib/lib/select_filesystem_type.js +2 -2
  127. package/lib/lib/select_installation_device.js +2 -1
  128. package/lib/lib/select_interface.js +1 -1
  129. package/lib/lib/select_keyboard_layout.d.ts +1 -28
  130. package/lib/lib/select_keyboard_layout.js +18 -33
  131. package/lib/lib/select_keyboard_model.d.ts +4 -0
  132. package/lib/lib/select_keyboard_model.js +36 -0
  133. package/lib/lib/select_keyboard_option.d.ts +4 -0
  134. package/lib/lib/select_keyboard_option.js +36 -0
  135. package/lib/lib/select_keyboard_variant.d.ts +1 -5
  136. package/lib/lib/select_keyboard_variant.js +32 -5
  137. package/lib/lib/select_languages.d.ts +1 -1
  138. package/lib/lib/select_languages.js +8 -7
  139. package/lib/lib/select_regions.d.ts +1 -1
  140. package/lib/lib/select_regions.js +2 -2
  141. package/lib/lib/select_user_swap_choice.js +2 -2
  142. package/oclif.manifest.json +1 -1
  143. package/package.json +6 -5
  144. package/scripts/_eggs +43 -2
  145. package/scripts/bros/waydroid-helper.sh +1 -1
  146. package/scripts/eggs.bash +6 -2
  147. package/scripts/{not-used/install-eggs-ppa.sh → install-eggs-ppa.sh} +1 -0
  148. package/scripts/mom-cli.sh +1 -1
  149. package/scripts/pve-live.sh +2 -6
  150. package/scripts/resy.sh +8 -0
  151. package/scripts/userexist.sh +6 -0
  152. package/wardrobe.d/external.yml +7 -0
  153. package/wardrobe.d/hen/control.template +10 -0
  154. package/wardrobe.d/hen/index.yml +212 -0
  155. package/wardrobe.d/kde/index.yml +41 -0
  156. package/wardrobe.d/lamp/index.yml +35 -0
  157. package/wardrobe.d/xfce4/index.yml +53 -0
  158. package/conf/distros/buster/locales/locale.gen.template +0 -10
  159. package/conf/distros/buster/locales/locale.template +0 -11
  160. package/conf/distros/focal/locale.gen.template +0 -8
  161. package/scripts/not-used/eggs-cleanup.sh +0 -7
  162. package/scripts/not-used/mkinitramfs +0 -469
  163. package/scripts/update-initramfs +0 -94
@@ -7,13 +7,13 @@ const tslib_1 = require("tslib");
7
7
  * email: piero.proietti@gmail.com
8
8
  * license: MIT
9
9
  */
10
- const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
11
- const pacman_1 = (0, tslib_1.__importDefault)(require("../classes/pacman"));
12
- const settings_1 = (0, tslib_1.__importDefault)(require("../classes/settings"));
13
- const ovary_1 = (0, tslib_1.__importDefault)(require("../classes/ovary"));
14
- const compressors_1 = (0, tslib_1.__importDefault)(require("../classes/compressors"));
10
+ const utils_1 = tslib_1.__importDefault(require("../classes/utils"));
11
+ const pacman_1 = tslib_1.__importDefault(require("../classes/pacman"));
12
+ const settings_1 = tslib_1.__importDefault(require("../classes/settings"));
13
+ const ovary_1 = tslib_1.__importDefault(require("../classes/ovary"));
14
+ const compressors_1 = tslib_1.__importDefault(require("../classes/compressors"));
15
15
  const inquirer = require("inquirer");
16
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
16
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
17
17
  const utils_2 = require("../lib/utils");
18
18
  class Daddy {
19
19
  constructor() {
@@ -46,7 +46,7 @@ class Daddy {
46
46
  }
47
47
  else {
48
48
  if (config.snapshot_prefix === '') {
49
- config.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.versionId);
49
+ config.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
50
50
  config.compression = 'fast';
51
51
  }
52
52
  jsonConf = JSON.stringify(config);
@@ -114,21 +114,21 @@ class Daddy {
114
114
  * produce
115
115
  */
116
116
  if (loadDefault) {
117
- flags += ' --verbose';
118
- verbose = true;
117
+ verbose = false;
119
118
  }
120
119
  flags += ' --' + newConf.compression;
121
- flags += ' --theme=' + config.theme;
120
+ flags += ' --addons adapt';
122
121
  utils_1.default.titles('produce' + ' ' + flags);
123
122
  console.log(chalk_1.default.cyan('Daddy, what else did you leave for me?'));
124
123
  const myAddons = {};
124
+ myAddons.adapt = true;
125
125
  const backup = false;
126
126
  const scriptOnly = false;
127
127
  const yolkRenew = false;
128
128
  const final = false;
129
- const ovary = new ovary_1.default(config.snapshot_prefix, config.snapshot_basename, config.theme, config.compression);
129
+ const ovary = new ovary_1.default();
130
130
  utils_1.default.warning('Produce an egg...');
131
- if (await ovary.fertilization()) {
131
+ if (await ovary.fertilization(config.snapshot_prefix, config.snapshot_basename, config.theme, config.compression)) {
132
132
  await ovary.produce(backup, scriptOnly, yolkRenew, final, myAddons, verbose);
133
133
  ovary.finished(scriptOnly);
134
134
  }
@@ -148,7 +148,7 @@ class Daddy {
148
148
  compressionOpt = 2;
149
149
  }
150
150
  if (c.snapshot_prefix === '') {
151
- c.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.versionId);
151
+ c.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
152
152
  }
153
153
  return new Promise(function (resolve) {
154
154
  const questions = [
@@ -12,8 +12,10 @@ declare class Distro implements IDistro {
12
12
  familyId: string;
13
13
  distroId: string;
14
14
  distroLike: string;
15
- versionId: string;
16
- versionLike: string;
15
+ codenameId: string;
16
+ codenameLikeId: string;
17
+ releaseId: string;
18
+ releaseLike: string;
17
19
  usrLibPath: string;
18
20
  isolinuxPath: string;
19
21
  syslinuxPath: string;
@@ -31,8 +31,8 @@
31
31
  'use strict';
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
33
  const tslib_1 = require("tslib");
34
- const node_fs_1 = (0, tslib_1.__importDefault)(require("node:fs"));
35
- const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
34
+ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
35
+ const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
36
36
  /**
37
37
  * Classe
38
38
  */
@@ -41,8 +41,10 @@ class Distro {
41
41
  this.familyId = 'debian';
42
42
  this.distroId = '';
43
43
  this.distroLike = '';
44
- this.versionId = '';
45
- this.versionLike = '';
44
+ this.codenameId = '';
45
+ this.codenameLikeId = '';
46
+ this.releaseId = '';
47
+ this.releaseLike = '';
46
48
  this.usrLibPath = '/usr/lib';
47
49
  this.isolinuxPath = '';
48
50
  this.syslinuxPath = '';
@@ -79,172 +81,156 @@ class Distro {
79
81
  }
80
82
  }
81
83
  /**
82
- * lsb_release -cs per versione ed lsb_release -is per distribuzione
84
+ * lsb_release -cs per codename (version)
85
+ * lsb_release -is per distribuzione
86
+ * lsb_release -rs per release
83
87
  */
84
- this.versionId = shelljs_1.default.exec('lsb_release -cs', { silent: true }).stdout.toString().trim();
88
+ this.codenameId = shelljs_1.default.exec('lsb_release -cs', { silent: true }).stdout.toString().trim();
89
+ this.releaseId = shelljs_1.default.exec('lsb_release -rs', { silent: true }).stdout.toString().trim();
85
90
  this.distroId = shelljs_1.default.exec('lsb_release -is', { silent: true }).stdout.toString().trim();
86
91
  /**
87
- * Per casi equivoci conviene normalizzare versionId
92
+ * releaseLike = releaseId
88
93
  */
89
- switch (this.versionId) {
90
- case 'n/a': {
91
- // può essere Deepin apricot
92
- if (this.distroId === 'Deepin') {
93
- this.versionId = 'apricot';
94
- }
95
- else if (node_fs_1.default.existsSync('/etc/debian_version')) {
96
- // bookworm?
97
- const debianVersion = node_fs_1.default.readFileSync('/etc/debian_version', 'utf8');
98
- if (debianVersion.trim() === 'bookworm/sid') {
99
- this.versionId = 'bookworm';
100
- }
101
- }
102
- break;
103
- }
104
- case 'sid': {
105
- // sinora ho trovato solo siduction
106
- if (node_fs_1.default.existsSync('/etc/debian_version')) {
107
- const debianVersion = node_fs_1.default.readFileSync('/etc/debian_version', 'utf8');
108
- if (debianVersion.trim() === 'bullseye/sid') {
109
- this.versionId = 'siduction';
110
- }
111
- }
112
- break;
113
- }
114
- case 'testing': {
115
- if (this.distroId === 'Netrunner') {
116
- this.versionId = 'buster/sid';
117
- }
118
- break;
119
- }
120
- // No default
94
+ this.releaseLike = this.releaseId;
95
+ /**
96
+ * Per casi equivoci conviene normalizzare codenameId
97
+ * -i, --id show distributor ID
98
+ * -r, --release show release number of this distribution
99
+ * -c, --codename show code name of this distribution
100
+ */
101
+ if (this.distroId === 'Debian' && this.releaseId === 'unstable' && this.codenameId === 'sid') {
102
+ this.codenameId = 'bookworm';
103
+ }
104
+ else if (this.distroId === 'Debian' && this.releaseId === 'testing/unstable') {
105
+ this.codenameId = 'bookworm';
106
+ this.releaseLike = 'unstable';
121
107
  }
122
- // Procedo analizzanto solo versionId...
123
- // prima Debian, Devuan ed Ubuntu
124
- switch (this.versionId) {
108
+ /**
109
+ * Procedo analizzanto: codenameId, prima Debian, Devuan ed Ubuntu poi gli altri
110
+ */
111
+ switch (this.codenameId) {
125
112
  case 'jessie': {
126
113
  // Debian 8 jessie
127
114
  this.distroLike = 'Debian';
128
- this.versionLike = 'jessie';
115
+ this.codenameLikeId = 'jessie';
129
116
  break;
130
117
  }
131
118
  case 'stretch': {
132
119
  // Debian 9 stretch
133
120
  this.distroLike = 'Debian';
134
- this.versionLike = 'stretch';
121
+ this.codenameLikeId = 'stretch';
135
122
  break;
136
123
  }
137
124
  case 'buster': {
138
125
  // Debian 10 buster
139
126
  this.distroLike = 'Debian';
140
- this.versionLike = 'buster';
127
+ this.codenameLikeId = 'buster';
141
128
  break;
142
129
  }
143
130
  case 'bullseye': {
144
131
  // Debian 11 bullseye
145
132
  this.distroLike = 'Debian';
146
- this.versionLike = 'bullseye';
133
+ this.codenameLikeId = 'bullseye';
147
134
  break;
148
135
  }
149
136
  case 'bookworm': {
150
137
  // Debian 11 bullseye
151
138
  this.distroLike = 'Debian';
152
- this.versionLike = 'bookworm';
139
+ this.codenameLikeId = 'bookworm';
153
140
  break;
154
141
  }
155
142
  case 'beowulf': {
156
143
  this.distroLike = 'Devuan';
157
- this.versionLike = 'beowulf';
144
+ this.codenameLikeId = 'beowulf';
158
145
  break;
159
146
  }
160
147
  case 'chimaera': {
161
148
  this.distroLike = 'Devuan';
162
- this.versionLike = 'chimaera';
149
+ this.codenameLikeId = 'chimaera';
163
150
  break;
164
151
  }
165
152
  case 'daedalus': {
166
153
  this.distroLike = 'Devuan';
167
- this.versionLike = 'daedalus';
154
+ this.codenameLikeId = 'daedalus';
168
155
  break;
169
156
  }
170
157
  case 'xenial': {
171
158
  // Ubuntu xenial
172
159
  this.distroLike = 'Ubuntu';
173
- this.versionLike = 'xenial';
160
+ this.codenameLikeId = 'xenial';
174
161
  break;
175
162
  }
176
163
  case 'bionic': {
177
164
  // Ubuntu 18.04 bionic LTS eol aprile 2023
178
165
  this.distroLike = 'Ubuntu';
179
- this.versionLike = 'bionic';
166
+ this.codenameLikeId = 'bionic';
180
167
  break;
181
168
  }
182
169
  case 'focal': {
183
170
  // Ubuntu 20.04 focal LTS
184
171
  this.distroLike = 'Ubuntu';
185
- this.versionLike = 'focal';
172
+ this.codenameLikeId = 'focal';
186
173
  break;
187
174
  }
188
175
  case 'groovy': {
189
176
  // Ubuntu 20.10 groovy
190
177
  this.distroLike = 'Ubuntu';
191
- this.versionLike = 'groovy';
178
+ this.codenameLikeId = 'groovy';
192
179
  break;
193
180
  }
194
181
  case 'hirsute': {
195
182
  // Ubuntu 21.04 hirsute
196
183
  this.distroLike = 'Ubuntu';
197
- this.versionLike = 'hirsute';
184
+ this.codenameLikeId = 'hirsute';
198
185
  break;
199
186
  }
200
187
  case 'impish': {
201
188
  // Ubuntu 21.10 impish
202
189
  this.distroLike = 'Ubuntu';
203
- this.versionLike = 'impish';
190
+ this.codenameLikeId = 'impish';
204
191
  break;
205
192
  }
206
193
  case 'jammy': {
207
194
  // Ubuntu 22.04 jammy
208
195
  this.distroLike = 'Ubuntu';
209
- this.versionLike = 'jammy';
196
+ this.codenameLikeId = 'jammy';
210
197
  // quindi le derivate...
211
198
  break;
212
199
  }
213
200
  case 'kali-rolling': {
214
201
  // Kali
215
202
  this.distroLike = 'Debian';
216
- this.versionLike = 'bookworm';
217
- // UfficioZero roma
203
+ this.codenameLikeId = 'bookworm';
218
204
  break;
219
205
  }
220
206
  case `jolnir`: {
221
207
  // Elementary
222
208
  this.distroLike = 'Ubuntu';
223
- this.versionLike = 'focal';
209
+ this.codenameLikeId = 'focal';
224
210
  break;
225
211
  }
226
212
  case 'roma': {
227
213
  // UfficioZero roma
228
214
  this.distroLike = 'Devuan';
229
- this.versionLike = 'beowulf';
215
+ this.codenameLikeId = 'beowulf';
230
216
  break;
231
217
  }
232
218
  case 'tropea': {
233
219
  // UfficioZero tropea
234
220
  this.distroLike = 'Ubuntu';
235
- this.versionLike = 'focal';
221
+ this.codenameLikeId = 'focal';
236
222
  break;
237
223
  }
238
224
  case 'vieste': {
239
225
  // UfficioZero tropea
240
226
  this.distroLike = 'Ubuntu';
241
- this.versionLike = 'bionic';
227
+ this.codenameLikeId = 'bionic';
242
228
  break;
243
229
  }
244
230
  case 'siena': {
245
231
  // UfficioZero siena
246
232
  this.distroLike = 'Debian';
247
- this.versionLike = 'buster';
233
+ this.codenameLikeId = 'buster';
248
234
  break;
249
235
  }
250
236
  case 'tara':
@@ -253,7 +239,7 @@ class Distro {
253
239
  case 'tricia': {
254
240
  // LinuxMint 19.x
255
241
  this.distroLike = 'Ubuntu';
256
- this.versionLike = 'bionic';
242
+ this.codenameLikeId = 'bionic';
257
243
  break;
258
244
  }
259
245
  case 'ulyana':
@@ -262,37 +248,49 @@ class Distro {
262
248
  case 'una': {
263
249
  // LinuxMint 20.x
264
250
  this.distroLike = 'Ubuntu';
265
- this.versionLike = 'focal';
251
+ this.codenameLikeId = 'focal';
266
252
  break;
267
253
  }
268
254
  case 'debbie': {
269
255
  // LMDE 4 debbie
270
256
  this.distroLike = 'Debian';
271
- this.versionLike = 'buster';
257
+ this.codenameLikeId = 'buster';
272
258
  break;
273
259
  }
274
260
  case 'elsie': {
275
261
  // LMDE 5 elsie
276
262
  this.distroLike = 'Debian';
277
- this.versionLike = 'bullseye';
263
+ this.codenameLikeId = 'bullseye';
278
264
  break;
279
265
  }
280
266
  case 'apricot': {
281
267
  // Deepin 20 apricot
282
268
  this.distroLike = 'Debian';
283
- this.versionLike = 'bullseye';
269
+ this.codenameLikeId = 'bullseye';
270
+ break;
271
+ }
272
+ case 'mierda': {
273
+ // Caraco
274
+ this.distroLike = 'Debian';
275
+ this.codenameLikeId = 'bullseye';
276
+ break;
277
+ }
278
+ case 'filadelfia': {
279
+ // SysLinuxOS
280
+ this.distroLike = 'Debian';
281
+ this.codenameLikeId = 'bullseye';
284
282
  break;
285
283
  }
286
284
  case 'siduction': {
287
285
  // Debian 11 Siduction
288
286
  this.distroLike = 'Debian';
289
- this.versionLike = 'bullseye';
287
+ this.codenameLikeId = 'bullseye';
290
288
  break;
291
289
  }
292
290
  case 'buster/sid': {
293
291
  // Netrunner
294
292
  this.distroLike = 'Debian';
295
- this.versionLike = 'buster';
293
+ this.codenameLikeId = 'buster';
296
294
  /**
297
295
  * ArchLinux
298
296
  */
@@ -304,13 +302,13 @@ class Distro {
304
302
  case 'Harpy-Eagle': {
305
303
  this.familyId = 'archlinux';
306
304
  this.distroLike = 'Arch';
307
- this.versionLike = 'rolling';
305
+ this.codenameLikeId = 'rolling';
308
306
  break;
309
307
  }
310
308
  case 'White-tailed-eagle': {
311
309
  this.familyId = 'archlinux';
312
310
  this.distroLike = 'Arch';
313
- this.versionLike = 'rolling';
311
+ this.codenameLikeId = 'rolling';
314
312
  break;
315
313
  }
316
314
  /**
@@ -319,7 +317,7 @@ class Distro {
319
317
  case 'Qonos': {
320
318
  this.familyId = 'archlinux';
321
319
  this.distroLike = 'Arch';
322
- this.versionLike = 'rolling';
320
+ this.codenameLikeId = 'rolling';
323
321
  break;
324
322
  /**
325
323
  * Fedora
@@ -328,7 +326,7 @@ class Distro {
328
326
  case 'ThirtyFive': {
329
327
  this.familyId = 'fedora';
330
328
  this.distroLike = 'Fedora';
331
- this.versionLike = 'thirtyfive';
329
+ this.codenameLikeId = 'thirtyfive';
332
330
  break;
333
331
  /**
334
332
  * openSuse
@@ -337,8 +335,8 @@ class Distro {
337
335
  case 'tumbleweed': {
338
336
  this.familyId = 'suse';
339
337
  this.distroLike = 'SUSE';
340
- this.versionId = 'tumbleweed';
341
- this.versionLike = 'tumbleweed';
338
+ this.codenameId = 'tumbleweed';
339
+ this.codenameLikeId = 'tumbleweed';
342
340
  break;
343
341
  }
344
342
  default: {
@@ -347,13 +345,13 @@ class Distro {
347
345
  */
348
346
  console.log("This distro is not yet recognized, I'll try Debian buster");
349
347
  this.distroLike = 'Debian';
350
- this.versionLike = 'buster';
348
+ this.codenameLikeId = 'buster';
351
349
  }
352
350
  }
353
351
  /**
354
352
  * Selezione il mountpoint per squashfs
355
353
  */
356
- if (this.versionLike === 'jessie' || this.versionLike === 'stretch' || this.versionLike === 'bionic' || this.versionLike === 'xenial') {
354
+ if (this.codenameLikeId === 'jessie' || this.codenameLikeId === 'stretch' || this.codenameLikeId === 'bionic' || this.codenameLikeId === 'xenial') {
357
355
  this.mountpointSquashFs = '/lib/live/mount/medium/live/filesystem.squashfs';
358
356
  }
359
357
  else {
@@ -7,10 +7,10 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  const tslib_1 = require("tslib");
10
- const node_fs_1 = (0, tslib_1.__importDefault)(require("node:fs"));
11
- const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
12
- const utils_1 = (0, tslib_1.__importDefault)(require("../utils"));
13
- const pacman_1 = (0, tslib_1.__importDefault)(require("../pacman"));
10
+ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
11
+ const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
12
+ const utils_1 = tslib_1.__importDefault(require("../utils"));
13
+ const pacman_1 = tslib_1.__importDefault(require("../pacman"));
14
14
  const dependencies_1 = require("../../lib/dependencies");
15
15
  const utils_2 = require("../../lib/utils");
16
16
  /**
@@ -7,10 +7,10 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  const tslib_1 = require("tslib");
10
- const node_fs_1 = (0, tslib_1.__importDefault)(require("node:fs"));
11
- const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
12
- const utils_1 = (0, tslib_1.__importDefault)(require("../utils"));
13
- const pacman_1 = (0, tslib_1.__importDefault)(require("../pacman"));
10
+ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
11
+ const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
12
+ const utils_1 = tslib_1.__importDefault(require("../utils"));
13
+ const pacman_1 = tslib_1.__importDefault(require("../pacman"));
14
14
  const utils_2 = require("../../lib/utils");
15
15
  const dependencies_1 = require("../../lib/dependencies");
16
16
  /**
@@ -24,7 +24,7 @@ class Debian {
24
24
  */
25
25
  static isInstalledXorg() {
26
26
  let test = 'xserver-xorg-core';
27
- if (pacman_1.default.distro().versionLike === 'bionic') {
27
+ if (pacman_1.default.distro().codenameLikeId === 'bionic') {
28
28
  /**
29
29
  * BUT_ on Ubuntu bionic we have:
30
30
  * xserver-xorg-core-hwe-18.04
@@ -69,7 +69,7 @@ class Debian {
69
69
  }
70
70
  }
71
71
  // Version e initType da controllare
72
- const version = pacman_1.default.distro().versionLike;
72
+ const version = pacman_1.default.distro().codenameLikeId;
73
73
  for (const dep of dependencies_1.depVersions) {
74
74
  if (dep.versions.includes(version)) {
75
75
  if (!this.packageIsInstalled(dep.package)) {
@@ -7,10 +7,10 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  const tslib_1 = require("tslib");
10
- const node_fs_1 = (0, tslib_1.__importDefault)(require("node:fs"));
11
- const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
12
- const utils_1 = (0, tslib_1.__importDefault)(require("../utils"));
13
- const pacman_1 = (0, tslib_1.__importDefault)(require("../pacman"));
10
+ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
11
+ const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
12
+ const utils_1 = tslib_1.__importDefault(require("../utils"));
13
+ const pacman_1 = tslib_1.__importDefault(require("../pacman"));
14
14
  const dependencies_1 = require("../../lib/dependencies");
15
15
  const utils_2 = require("../../lib/utils");
16
16
  /**
@@ -7,10 +7,10 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  const tslib_1 = require("tslib");
10
- const node_fs_1 = (0, tslib_1.__importDefault)(require("node:fs"));
11
- const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
12
- const utils_1 = (0, tslib_1.__importDefault)(require("../utils"));
13
- const pacman_1 = (0, tslib_1.__importDefault)(require("../pacman"));
10
+ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
11
+ const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
12
+ const utils_1 = tslib_1.__importDefault(require("../utils"));
13
+ const pacman_1 = tslib_1.__importDefault(require("../pacman"));
14
14
  const dependencies_1 = require("../../lib/dependencies");
15
15
  const utils_2 = require("../../lib/utils");
16
16
  /**
@@ -1,14 +1,38 @@
1
+ /**
2
+ * penguins-eggs:
3
+ * author: Piero Proietti
4
+ * mail: piero.proietti@gmail.com
5
+ *
6
+ */
1
7
  import Settings from './settings';
2
8
  /**
3
- * Ovary:
9
+ * I18n
4
10
  */
5
11
  export default class I18n {
6
12
  verbose: boolean;
13
+ echo: {};
14
+ toNull: string;
15
+ chroot: string;
7
16
  settings: Settings;
8
- constructor(verbose?: boolean);
17
+ constructor(chroot?: string, verbose?: boolean);
18
+ /**
19
+ * reinstall
20
+ */
21
+ reinstall(): Promise<void>;
9
22
  /**
10
23
  *
11
- * @param reinstall
12
24
  */
13
- generate(reinstall?: boolean): void;
25
+ generate(fromSettings?: boolean, defaultLocale?: string, locales?: string[]): Promise<void>;
26
+ /**
27
+ * localeGen
28
+ */
29
+ private localeGen;
30
+ /**
31
+ * /etc/locale.conf
32
+ */
33
+ private localeConf;
34
+ /**
35
+ * /etc/default/locale
36
+ */
37
+ private defaultLocale;
14
38
  }