penguins-eggs 9.3.27 → 9.3.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.
Files changed (127) hide show
  1. package/.oclif.manifest.json +1 -1
  2. package/dist/classes/bleach.js +26 -24
  3. package/dist/classes/compressors.js +4 -2
  4. package/dist/classes/daddy.js +30 -28
  5. package/dist/classes/distro.js +7 -5
  6. package/dist/classes/family/archlinux.js +21 -19
  7. package/dist/classes/family/debian.js +28 -26
  8. package/dist/classes/family/fedora.js +19 -17
  9. package/dist/classes/family/suse.js +19 -17
  10. package/dist/classes/incubation/branding.js +4 -2
  11. package/dist/classes/incubation/distros/bionic.js +5 -3
  12. package/dist/classes/incubation/distros/buster.js +5 -3
  13. package/dist/classes/incubation/distros/focal.js +5 -3
  14. package/dist/classes/incubation/distros/jessie.js +5 -3
  15. package/dist/classes/incubation/distros/rolling.js +5 -3
  16. package/dist/classes/incubation/fisherman-helper/displaymanager.js +5 -3
  17. package/dist/classes/incubation/fisherman-helper/packages.js +9 -7
  18. package/dist/classes/incubation/fisherman.js +14 -12
  19. package/dist/classes/incubation/incubator.js +30 -28
  20. package/dist/classes/incubation/installer.js +8 -6
  21. package/dist/classes/initrd.js +5 -3
  22. package/dist/classes/keyboards.js +9 -7
  23. package/dist/classes/locales.js +10 -8
  24. package/dist/classes/n8.js +4 -2
  25. package/dist/classes/network.js +4 -2
  26. package/dist/classes/ovary.js +248 -233
  27. package/dist/classes/pacman.js +127 -125
  28. package/dist/classes/pve-live.js +7 -5
  29. package/dist/classes/pxe.js +66 -63
  30. package/dist/classes/settings.js +32 -30
  31. package/dist/classes/sources_list.js +12 -10
  32. package/dist/classes/systemctl.js +14 -12
  33. package/dist/classes/tailor.js +64 -62
  34. package/dist/classes/tools.js +7 -5
  35. package/dist/classes/users.js +6 -4
  36. package/dist/classes/utils.js +22 -20
  37. package/dist/classes/xdg.js +44 -42
  38. package/dist/classes/yolk.js +32 -30
  39. package/dist/commands/adapt.js +18 -10
  40. package/dist/commands/analyze.js +16 -14
  41. package/dist/commands/calamares.js +22 -20
  42. package/dist/commands/config.js +71 -69
  43. package/dist/commands/cuckoo.js +11 -9
  44. package/dist/commands/dad.js +12 -10
  45. package/dist/commands/export/deb.js +12 -10
  46. package/dist/commands/export/iso.js +11 -9
  47. package/dist/commands/install.js +16 -14
  48. package/dist/commands/kill.js +14 -13
  49. package/dist/commands/mom.js +9 -7
  50. package/dist/commands/produce.js +21 -19
  51. package/dist/commands/status.js +5 -3
  52. package/dist/commands/syncfrom.js +39 -37
  53. package/dist/commands/syncto.js +47 -45
  54. package/dist/commands/tools/clean.js +10 -8
  55. package/dist/commands/tools/ppa.js +21 -19
  56. package/dist/commands/tools/skel.js +15 -13
  57. package/dist/commands/tools/stat.js +7 -5
  58. package/dist/commands/tools/yolk.js +11 -9
  59. package/dist/commands/update.js +25 -23
  60. package/dist/commands/wardrobe/get.js +16 -8
  61. package/dist/commands/wardrobe/list.js +18 -10
  62. package/dist/commands/wardrobe/show.js +17 -12
  63. package/dist/commands/wardrobe/wear.js +22 -14
  64. package/dist/components/elements/information.js +21 -19
  65. package/dist/components/elements/steps.js +4 -2
  66. package/dist/components/elements/title.js +4 -2
  67. package/dist/components/finished.js +10 -8
  68. package/dist/components/install.js +10 -8
  69. package/dist/components/keyboard.js +10 -8
  70. package/dist/components/location.js +10 -8
  71. package/dist/components/network.js +10 -8
  72. package/dist/components/partitions.js +10 -8
  73. package/dist/components/summary.js +10 -8
  74. package/dist/components/users.js +33 -8
  75. package/dist/components/welcome.js +10 -8
  76. package/dist/krill/krill-prepare.js +92 -90
  77. package/dist/krill/krill-sequence.js +148 -145
  78. package/dist/krill/modules/add-user.js +9 -7
  79. package/dist/krill/modules/bootloader-config-ubuntu.js +24 -22
  80. package/dist/krill/modules/bootloader.js +9 -7
  81. package/dist/krill/modules/change-password.js +2 -2
  82. package/dist/krill/modules/del-live-user.js +8 -6
  83. package/dist/krill/modules/fstab.js +14 -12
  84. package/dist/krill/modules/grubcfg.js +7 -5
  85. package/dist/krill/modules/hostname.js +4 -2
  86. package/dist/krill/modules/initramfs-cfg.js +6 -4
  87. package/dist/krill/modules/initramfs.js +13 -11
  88. package/dist/krill/modules/locale-cfg.js +4 -2
  89. package/dist/krill/modules/locale.js +7 -5
  90. package/dist/krill/modules/m-keyboard.js +13 -11
  91. package/dist/krill/modules/m-timezone.js +7 -5
  92. package/dist/krill/modules/machine-id.js +7 -5
  93. package/dist/krill/modules/mkfs.js +6 -6
  94. package/dist/krill/modules/mount-fs.js +17 -15
  95. package/dist/krill/modules/mount-vfs.js +12 -12
  96. package/dist/krill/modules/network-cfg.js +8 -6
  97. package/dist/krill/modules/packages.js +15 -13
  98. package/dist/krill/modules/partition.js +74 -72
  99. package/dist/krill/modules/remove-installer-link.js +4 -2
  100. package/dist/krill/modules/umount.js +9 -7
  101. package/dist/krill/modules/unpackfs.js +7 -5
  102. package/dist/lib/cli-autologin.js +163 -163
  103. package/dist/lib/get_address.js +4 -2
  104. package/dist/lib/get_dns.js +4 -2
  105. package/dist/lib/get_domain.js +4 -2
  106. package/dist/lib/get_gateway.js +4 -2
  107. package/dist/lib/get_hostname.js +4 -2
  108. package/dist/lib/get_netmask.js +4 -2
  109. package/dist/lib/get_password.js +4 -2
  110. package/dist/lib/get_root_password.js +4 -2
  111. package/dist/lib/get_userfullname.js +4 -2
  112. package/dist/lib/get_username.js +4 -2
  113. package/dist/lib/select_address_type.js +4 -2
  114. package/dist/lib/select_filesystem_type.js +6 -4
  115. package/dist/lib/select_installation_device.js +5 -3
  116. package/dist/lib/select_installation_mode.js +4 -2
  117. package/dist/lib/select_interface.js +4 -2
  118. package/dist/lib/select_keyboard_layout.js +6 -4
  119. package/dist/lib/select_keyboard_model.js +6 -4
  120. package/dist/lib/select_keyboard_option.js +6 -4
  121. package/dist/lib/select_keyboard_variant.js +6 -4
  122. package/dist/lib/select_languages.js +6 -4
  123. package/dist/lib/select_regions.js +4 -2
  124. package/dist/lib/select_user_swap_choice.js +6 -4
  125. package/dist/lib/select_zones.js +4 -2
  126. package/package.json +6 -5
  127. package/dist/types/etrick.js +0 -1
@@ -5,14 +5,16 @@
5
5
  * email: piero.proietti@gmail.com
6
6
  * license: MIT
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
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
- const utils_2 = require("../../lib/utils");
15
- const dependencies_1 = require("../../lib/dependencies");
12
+ const node_fs_1 = __importDefault(require("node:fs"));
13
+ const shelljs_1 = __importDefault(require("shelljs"));
14
+ const utils_js_1 = __importDefault(require("../utils.js"));
15
+ const pacman_js_1 = __importDefault(require("../pacman.js"));
16
+ const utils_js_2 = require("../../lib/utils.js");
17
+ const dependencies_js_1 = require("../../lib/dependencies.js");
16
18
  /**
17
19
  * Utils: general porpourse utils
18
20
  * @remarks all the utilities
@@ -47,7 +49,7 @@ class Debian {
47
49
  let packages = [];
48
50
  const toInstall = [];
49
51
  const toRemove = [];
50
- for (const elem of dependencies_1.depCommon) {
52
+ for (const elem of dependencies_js_1.depCommon) {
51
53
  if (!this.packageIsInstalled(elem)) {
52
54
  toInstall.push(elem);
53
55
  }
@@ -55,8 +57,8 @@ class Debian {
55
57
  toRemove.push(elem);
56
58
  }
57
59
  }
58
- const arch = utils_1.default.machineArch();
59
- for (const dep of dependencies_1.depArch) {
60
+ const arch = utils_js_1.default.machineArch();
61
+ for (const dep of dependencies_js_1.depArch) {
60
62
  if (dep.arch.includes(arch)) {
61
63
  if (!this.packageIsInstalled(dep.package)) {
62
64
  toInstall.push(dep.package);
@@ -67,7 +69,7 @@ class Debian {
67
69
  }
68
70
  }
69
71
  const initType = shelljs_1.default.exec('ps --no-headers -o comm 1', { silent: !verbose }).trim();
70
- for (const dep of dependencies_1.depInit) {
72
+ for (const dep of dependencies_js_1.depInit) {
71
73
  if (dep.init.includes(initType)) {
72
74
  if (!this.packageIsInstalled(dep.package)) {
73
75
  toInstall.push(dep.package);
@@ -87,10 +89,10 @@ class Debian {
87
89
  *
88
90
  */
89
91
  static async prerequisitesInstall(verbose = true) {
90
- const echo = utils_1.default.setEcho(verbose);
92
+ const echo = utils_js_1.default.setEcho(verbose);
91
93
  const retVal = false;
92
- await (0, utils_2.exec)(`apt-get install --yes ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
93
- if (!pacman_1.default.isInstalledGui()) {
94
+ await (0, utils_js_2.exec)(`apt-get install --yes ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
95
+ if (!pacman_js_1.default.isInstalledGui()) {
94
96
  /**
95
97
  * live-config-getty-generator
96
98
  *
@@ -103,7 +105,7 @@ class Debian {
103
105
  */
104
106
  const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
105
107
  if (node_fs_1.default.existsSync(fileToRemove)) {
106
- await (0, utils_2.exec)(`rm ${fileToRemove}`);
108
+ await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
107
109
  }
108
110
  }
109
111
  return retVal;
@@ -126,24 +128,24 @@ class Debian {
126
128
  */
127
129
  static async liveInstallerPolicies() {
128
130
  const policyFile = '/usr/share/polkit-1/actions/com.github.pieroproietti.penguins-eggs.policy';
129
- await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
131
+ await (0, utils_js_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
130
132
  }
131
133
  /**
132
134
  *
133
135
  */
134
136
  static async calamaresInstall(verbose = true) {
135
- const echo = utils_1.default.setEcho(verbose);
137
+ const echo = utils_js_1.default.setEcho(verbose);
136
138
  try {
137
- await (0, utils_2.exec)('apt-get update --yes', echo);
139
+ await (0, utils_js_2.exec)('apt-get update --yes', echo);
138
140
  }
139
141
  catch {
140
- utils_1.default.error('Debian.calamaresInstall() apt-get update --yes '); // + e.error as string)
142
+ utils_js_1.default.error('Debian.calamaresInstall() apt-get update --yes '); // + e.error as string)
141
143
  }
142
144
  try {
143
- await (0, utils_2.exec)(`apt-get install --yes ${(0, dependencies_1.array2spaced)(this.debs4calamares)}`, echo);
145
+ await (0, utils_js_2.exec)(`apt-get install --yes ${(0, dependencies_js_1.array2spaced)(this.debs4calamares)}`, echo);
144
146
  }
145
147
  catch {
146
- utils_1.default.error(`Debian.calamaresInstall() apt-get install --yes ${(0, dependencies_1.array2spaced)(this.debs4calamares)}`); // + e.error)
148
+ utils_js_1.default.error(`Debian.calamaresInstall() apt-get install --yes ${(0, dependencies_js_1.array2spaced)(this.debs4calamares)}`); // + e.error)
147
149
  }
148
150
  }
149
151
  /**
@@ -151,19 +153,19 @@ class Debian {
151
153
  */
152
154
  static async calamaresPolicies() {
153
155
  const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
154
- await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
156
+ await (0, utils_js_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
155
157
  }
156
158
  /**
157
159
  *
158
160
  */
159
161
  static async calamaresRemove(verbose = true) {
160
- const echo = utils_1.default.setEcho(verbose);
162
+ const echo = utils_js_1.default.setEcho(verbose);
161
163
  const retVal = false;
162
164
  if (node_fs_1.default.existsSync('/etc/calamares')) {
163
- await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
165
+ await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
164
166
  }
165
- await (0, utils_2.exec)('apt-get remove --purge --yes calamares', echo);
166
- await (0, utils_2.exec)('apt-get autoremove --yes', echo);
167
+ await (0, utils_js_2.exec)('apt-get remove --purge --yes calamares', echo);
168
+ await (0, utils_js_2.exec)('apt-get autoremove --yes', echo);
167
169
  return retVal;
168
170
  }
169
171
  /**
@@ -5,14 +5,16 @@
5
5
  * email: piero.proietti@gmail.com
6
6
  * license: MIT
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
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
- const dependencies_1 = require("../../lib/dependencies");
15
- const utils_2 = require("../../lib/utils");
12
+ const node_fs_1 = __importDefault(require("node:fs"));
13
+ const shelljs_1 = __importDefault(require("shelljs"));
14
+ const utils_js_1 = __importDefault(require("../utils.js"));
15
+ const pacman_js_1 = __importDefault(require("../pacman.js"));
16
+ const dependencies_js_1 = require("../../lib/dependencies.js");
17
+ const utils_js_2 = require("../../lib/utils.js");
16
18
  /**
17
19
  * Utils: general porpourse utils
18
20
  * @remarks all the utilities
@@ -57,10 +59,10 @@ class Fedora {
57
59
  *
58
60
  */
59
61
  static async prerequisitesInstall(verbose = true) {
60
- const echo = utils_1.default.setEcho(verbose);
62
+ const echo = utils_js_1.default.setEcho(verbose);
61
63
  const retVal = false;
62
- await (0, utils_2.exec)(`dnf install ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
63
- if (!pacman_1.default.isInstalledGui()) {
64
+ await (0, utils_js_2.exec)(`dnf install ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
65
+ if (!pacman_js_1.default.isInstalledGui()) {
64
66
  /**
65
67
  * live-config-getty-generator
66
68
  *
@@ -73,7 +75,7 @@ class Fedora {
73
75
  */
74
76
  const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
75
77
  if (node_fs_1.default.existsSync(fileToRemove)) {
76
- await (0, utils_2.exec)(`rm ${fileToRemove}`);
78
+ await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
77
79
  }
78
80
  }
79
81
  return retVal;
@@ -95,12 +97,12 @@ class Fedora {
95
97
  *
96
98
  */
97
99
  static async calamaresInstall(verbose = true) {
98
- const echo = utils_1.default.setEcho(verbose);
100
+ const echo = utils_js_1.default.setEcho(verbose);
99
101
  try {
100
- await (0, utils_2.exec)(`dnf install ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`, echo);
102
+ await (0, utils_js_2.exec)(`dnf install ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`, echo);
101
103
  }
102
104
  catch {
103
- utils_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`); // + e.error)
105
+ utils_js_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`); // + e.error)
104
106
  }
105
107
  }
106
108
  /**
@@ -117,12 +119,12 @@ class Fedora {
117
119
  *
118
120
  */
119
121
  static async calamaresRemove(verbose = true) {
120
- const echo = utils_1.default.setEcho(verbose);
122
+ const echo = utils_js_1.default.setEcho(verbose);
121
123
  const retVal = false;
122
124
  if (node_fs_1.default.existsSync('/etc/calamares')) {
123
- await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
125
+ await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
124
126
  }
125
- await (0, utils_2.exec)('yay -Rns calamares', echo);
127
+ await (0, utils_js_2.exec)('yay -Rns calamares', echo);
126
128
  return retVal;
127
129
  }
128
130
  /**
@@ -5,14 +5,16 @@
5
5
  * email: piero.proietti@gmail.com
6
6
  * license: MIT
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
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
- const dependencies_1 = require("../../lib/dependencies");
15
- const utils_2 = require("../../lib/utils");
12
+ const node_fs_1 = __importDefault(require("node:fs"));
13
+ const shelljs_1 = __importDefault(require("shelljs"));
14
+ const utils_js_1 = __importDefault(require("../utils.js"));
15
+ const pacman_js_1 = __importDefault(require("../pacman.js"));
16
+ const dependencies_js_1 = require("../../lib/dependencies.js");
17
+ const utils_js_2 = require("../../lib/utils.js");
16
18
  /**
17
19
  * Utils: general porpourse utils
18
20
  * @remarks all the utilities
@@ -57,10 +59,10 @@ class Suse {
57
59
  *
58
60
  */
59
61
  static async prerequisitesInstall(verbose = true) {
60
- const echo = utils_1.default.setEcho(verbose);
62
+ const echo = utils_js_1.default.setEcho(verbose);
61
63
  const retVal = false;
62
- await (0, utils_2.exec)(`dnf install ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
63
- if (!pacman_1.default.isInstalledGui()) {
64
+ await (0, utils_js_2.exec)(`dnf install ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
65
+ if (!pacman_js_1.default.isInstalledGui()) {
64
66
  /**
65
67
  * live-config-getty-generator
66
68
  *
@@ -73,7 +75,7 @@ class Suse {
73
75
  */
74
76
  const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
75
77
  if (node_fs_1.default.existsSync(fileToRemove)) {
76
- await (0, utils_2.exec)(`rm ${fileToRemove}`);
78
+ await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
77
79
  }
78
80
  }
79
81
  return retVal;
@@ -95,12 +97,12 @@ class Suse {
95
97
  *
96
98
  */
97
99
  static async calamaresInstall(verbose = true) {
98
- const echo = utils_1.default.setEcho(verbose);
100
+ const echo = utils_js_1.default.setEcho(verbose);
99
101
  try {
100
- await (0, utils_2.exec)(`zypper install ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`, echo);
102
+ await (0, utils_js_2.exec)(`zypper install ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`, echo);
101
103
  }
102
104
  catch {
103
- utils_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`); // + e.error)
105
+ utils_js_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`); // + e.error)
104
106
  }
105
107
  }
106
108
  /**
@@ -117,12 +119,12 @@ class Suse {
117
119
  *
118
120
  */
119
121
  static async calamaresRemove(verbose = true) {
120
- const echo = utils_1.default.setEcho(verbose);
122
+ const echo = utils_js_1.default.setEcho(verbose);
121
123
  const retVal = false;
122
124
  if (node_fs_1.default.existsSync('/etc/calamares')) {
123
- await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
125
+ await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
124
126
  }
125
- await (0, utils_2.exec)('zypper remove calamares', echo);
127
+ await (0, utils_js_2.exec)('zypper remove calamares', echo);
126
128
  return retVal;
127
129
  }
128
130
  /**
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.branding = void 0;
4
- const tslib_1 = require("tslib");
5
7
  /**
6
8
  * penguins-eggs: buster/branding.ts
7
9
  *
8
10
  * author: Piero Proietti
9
11
  * mail: piero.proietti@gmail.com
10
12
  */
11
- const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
13
+ const js_yaml_1 = __importDefault(require("js-yaml"));
12
14
  /**
13
15
  *
14
16
  * @param remix
@@ -5,10 +5,12 @@
5
5
  * author: Piero Proietti
6
6
  * mail: piero.proietti@gmail.com
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
12
  exports.Bionic = void 0;
10
- const tslib_1 = require("tslib");
11
- const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
13
+ const fisherman_js_1 = __importDefault(require("../fisherman.js"));
12
14
  /**
13
15
  *
14
16
  */
@@ -34,7 +36,7 @@ class Bionic {
34
36
  * locale, partitions, users can come from themes
35
37
  */
36
38
  async create() {
37
- const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
39
+ const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
38
40
  await fisherman.settings(this.remix.branding);
39
41
  await fisherman.buildModule('partition', this.remix.branding);
40
42
  await fisherman.buildModule('mount');
@@ -7,10 +7,12 @@
7
7
  * author: Piero Proietti
8
8
  * mail: piero.proietti@gmail.com
9
9
  */
10
+ var __importDefault = (this && this.__importDefault) || function (mod) {
11
+ return (mod && mod.__esModule) ? mod : { "default": mod };
12
+ };
10
13
  Object.defineProperty(exports, "__esModule", { value: true });
11
14
  exports.Buster = void 0;
12
- const tslib_1 = require("tslib");
13
- const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
15
+ const fisherman_js_1 = __importDefault(require("../fisherman.js"));
14
16
  /**
15
17
  *
16
18
  */
@@ -37,7 +39,7 @@ class Buster {
37
39
  * locale, partitions, users can come from themes
38
40
  */
39
41
  async create() {
40
- const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
42
+ const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
41
43
  await fisherman.settings(this.theme);
42
44
  await fisherman.buildModule('partition', this.theme);
43
45
  await fisherman.buildModule('mount');
@@ -5,10 +5,12 @@
5
5
  * author: Piero Proietti
6
6
  * mail: piero.proietti@gmail.com
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
12
  exports.Focal = void 0;
10
- const tslib_1 = require("tslib");
11
- const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
13
+ const fisherman_js_1 = __importDefault(require("../fisherman.js"));
12
14
  /**
13
15
  *
14
16
  */
@@ -35,7 +37,7 @@ class Focal {
35
37
  * locale, partitions, users can come from themes
36
38
  */
37
39
  async create() {
38
- const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
40
+ const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
39
41
  await fisherman.settings(this.remix.branding);
40
42
  await fisherman.buildModule('partition', this.theme);
41
43
  await fisherman.buildModule('mount');
@@ -7,10 +7,12 @@
7
7
  * author: Piero Proietti
8
8
  * mail: piero.proietti@gmail.com
9
9
  */
10
+ var __importDefault = (this && this.__importDefault) || function (mod) {
11
+ return (mod && mod.__esModule) ? mod : { "default": mod };
12
+ };
10
13
  Object.defineProperty(exports, "__esModule", { value: true });
11
14
  exports.Jessie = void 0;
12
- const tslib_1 = require("tslib");
13
- const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
15
+ const fisherman_js_1 = __importDefault(require("../fisherman.js"));
14
16
  /**
15
17
  *
16
18
  */
@@ -36,7 +38,7 @@ class Jessie {
36
38
  * partitions can come from themes
37
39
  */
38
40
  async create() {
39
- const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
41
+ const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
40
42
  await fisherman.settings(this.remix.branding);
41
43
  await fisherman.buildModule('partition', this.remix.branding);
42
44
  await fisherman.buildCalamaresModule('sources-yolk', true);
@@ -7,10 +7,12 @@
7
7
  * author: Piero Proietti
8
8
  * mail: piero.proietti@gmail.com
9
9
  */
10
+ var __importDefault = (this && this.__importDefault) || function (mod) {
11
+ return (mod && mod.__esModule) ? mod : { "default": mod };
12
+ };
10
13
  Object.defineProperty(exports, "__esModule", { value: true });
11
14
  exports.Rolling = void 0;
12
- const tslib_1 = require("tslib");
13
- const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
15
+ const fisherman_js_1 = __importDefault(require("../fisherman.js"));
14
16
  /**
15
17
  *
16
18
  */
@@ -36,7 +38,7 @@ class Rolling {
36
38
  * locale, partitions, users can come from themes
37
39
  */
38
40
  async create() {
39
- const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
41
+ const fisherman = new fisherman_js_1.default(this.distro, this.installer, this.verbose);
40
42
  await fisherman.settings(this.remix.branding);
41
43
  await fisherman.buildModule('partition', this.remix.branding);
42
44
  await fisherman.buildModule('mount');
@@ -2,10 +2,12 @@
2
2
  /**
3
3
  *
4
4
  */
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
5
8
  Object.defineProperty(exports, "__esModule", { value: true });
6
9
  exports.displaymanager = void 0;
7
- const tslib_1 = require("tslib");
8
- const pacman_1 = tslib_1.__importDefault(require("../../pacman"));
10
+ const pacman_js_1 = __importDefault(require("../../pacman.js"));
9
11
  /**
10
12
  * restituisce displaymanagers in uso
11
13
  */
@@ -27,7 +29,7 @@ exports.displaymanager = displaymanager;
27
29
  */
28
30
  function addIfExist(package2check) {
29
31
  let content = '';
30
- if (pacman_1.default.packageIsInstalled(package2check)) {
32
+ if (pacman_js_1.default.packageIsInstalled(package2check)) {
31
33
  let displayManager = package2check;
32
34
  if (package2check === 'gdm3') {
33
35
  // gdm3 is treat as gdm
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.tryInstall = exports.remove = void 0;
4
- const tslib_1 = require("tslib");
5
- const pacman_1 = tslib_1.__importDefault(require("../../pacman"));
7
+ const pacman_js_1 = __importDefault(require("../../pacman.js"));
6
8
  /**
7
9
  *
8
10
  * @param distro
@@ -40,20 +42,20 @@ function tryInstall(distro) {
40
42
  yaml += ' - language-pack-$LOCALE\n';
41
43
  }
42
44
  // Da localizzare se presenti
43
- if (pacman_1.default.packageIsInstalled('hunspell')) {
45
+ if (pacman_js_1.default.packageIsInstalled('hunspell')) {
44
46
  yaml += ' - hunspell-$LOCALE\n';
45
47
  }
46
- if (pacman_1.default.packageIsInstalled('libreoffice-base-core')) {
48
+ if (pacman_js_1.default.packageIsInstalled('libreoffice-base-core')) {
47
49
  yaml += ' - libreoffice-l10n-$LOCALE\n';
48
50
  yaml += ' - libreoffice-help-$LOCALE\n';
49
51
  }
50
- if (pacman_1.default.packageIsInstalled('firefox-esr')) {
52
+ if (pacman_js_1.default.packageIsInstalled('firefox-esr')) {
51
53
  yaml += ' - firefox-esr-$LOCALE\n';
52
54
  }
53
- if (pacman_1.default.packageIsInstalled('firefox')) {
55
+ if (pacman_js_1.default.packageIsInstalled('firefox')) {
54
56
  yaml += ' - firefox-$LOCALE\n';
55
57
  }
56
- if (pacman_1.default.packageIsInstalled('thunderbird')) {
58
+ if (pacman_js_1.default.packageIsInstalled('thunderbird')) {
57
59
  yaml += ' - thunderbird-locale-$LOCALE\n';
58
60
  }
59
61
  if (yaml !== '') {
@@ -5,15 +5,17 @@
5
5
  * author: Piero Proietti
6
6
  * mail: piero.proietti@gmail.com
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
10
- const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
11
- const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
12
- const node_path_1 = tslib_1.__importDefault(require("node:path"));
13
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
14
- const utils_1 = tslib_1.__importDefault(require("../utils"));
15
- const displaymanager_1 = require("./fisherman-helper/displaymanager");
16
- const utils_2 = require("../../lib/utils");
12
+ const node_fs_1 = __importDefault(require("node:fs"));
13
+ const shelljs_1 = __importDefault(require("shelljs"));
14
+ const node_path_1 = __importDefault(require("node:path"));
15
+ const chalk_1 = __importDefault(require("chalk"));
16
+ const utils_js_1 = __importDefault(require("../utils.js"));
17
+ const displaymanager_js_1 = require("./fisherman-helper/displaymanager.js");
18
+ const utils_js_2 = require("../../lib/utils.js");
17
19
  class Fisherman {
18
20
  constructor(distro, installer, verbose = false) {
19
21
  this.installer = {};
@@ -33,7 +35,7 @@ class Fisherman {
33
35
  const settings = this.installer.configuration + 'settings.conf';
34
36
  shelljs_1.default.cp(this.installer.template + 'settings.yml', settings);
35
37
  let hasSystemd = '# ';
36
- if (utils_1.default.isSystemd()) {
38
+ if (utils_js_1.default.isSystemd()) {
37
39
  hasSystemd = '- ';
38
40
  }
39
41
  /**
@@ -44,7 +46,7 @@ class Fisherman {
44
46
  let createUsers = '# ';
45
47
  if (!node_fs_1.default.existsSync(is_clone)) {
46
48
  createUsers = '- ';
47
- if ((0, displaymanager_1.displaymanager)() !== '') {
49
+ if ((0, displaymanager_js_1.displaymanager)() !== '') {
48
50
  hasDisplaymanager = '- ';
49
51
  }
50
52
  }
@@ -149,7 +151,7 @@ class Fisherman {
149
151
  shelljs_1.default.cp(`${moduleTemplate}/module.yml`, `${moduleDest}/module.desc`);
150
152
  if (isScript) {
151
153
  shelljs_1.default.cp(`${moduleTemplate}/${name}.sh`, moduleScript);
152
- await (0, utils_2.exec)(`chmod +x ${moduleScript}`);
154
+ await (0, utils_js_2.exec)(`chmod +x ${moduleScript}`);
153
155
  }
154
156
  return moduleScript;
155
157
  }
@@ -168,7 +170,7 @@ class Fisherman {
168
170
  shelljs_1.default.cp(`${moduleSource}/module.yml`, `${moduleDest}/module.desc`);
169
171
  shelljs_1.default.cp(`${moduleSource}/${name}.yml`, `${moduleDest}/${name}.conf`);
170
172
  shelljs_1.default.cp(`${moduleSource}/main.py`, moduleDest);
171
- await (0, utils_2.exec)(`chmod +x ${moduleSource}/main.py`);
173
+ await (0, utils_js_2.exec)(`chmod +x ${moduleSource}/main.py`);
172
174
  }
173
175
  /**
174
176
  *