penguins-eggs 9.3.28 → 9.3.30
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/.oclif.manifest.json +1 -1
- package/dist/classes/bleach.js +22 -22
- package/dist/classes/daddy.js +25 -25
- package/dist/classes/family/archlinux.js +16 -16
- package/dist/classes/family/debian.js +23 -23
- package/dist/classes/family/fedora.js +14 -14
- package/dist/classes/family/suse.js +14 -14
- package/dist/classes/incubation/distros/bionic.js +5 -4
- package/dist/classes/incubation/distros/buster.js +5 -4
- package/dist/classes/incubation/distros/focal.js +5 -4
- package/dist/classes/incubation/distros/jessie.js +2 -2
- package/dist/classes/incubation/distros/rolling.js +6 -4
- package/dist/classes/incubation/fisherman-helper/displaymanager.js +2 -2
- package/dist/classes/incubation/fisherman-helper/packages.js +6 -6
- package/dist/classes/incubation/fisherman.js +13 -17
- package/dist/classes/incubation/incubator.js +26 -25
- package/dist/classes/incubation/installer.js +5 -5
- package/dist/classes/keyboards.js +5 -5
- package/dist/classes/locales.js +6 -6
- package/dist/classes/n8.js +1 -1
- package/dist/classes/network.js +6 -0
- package/dist/classes/ovary.js +235 -225
- package/dist/classes/pacman.js +121 -121
- package/dist/classes/pve-live.js +2 -2
- package/dist/classes/pxe.js +32 -32
- package/dist/classes/settings.js +24 -24
- package/dist/classes/sources_list.js +8 -8
- package/dist/classes/systemctl.js +11 -11
- package/dist/classes/tailor.js +57 -57
- package/dist/classes/tools.js +2 -2
- package/dist/classes/users.js +2 -2
- package/dist/classes/utils.js +12 -12
- package/dist/classes/xdg.js +38 -38
- package/dist/classes/yolk.js +27 -27
- package/dist/commands/adapt.js +15 -9
- package/dist/commands/analyze.js +11 -11
- package/dist/commands/calamares.js +19 -19
- package/dist/commands/config.js +67 -67
- package/dist/commands/cuckoo.js +8 -8
- package/dist/commands/dad.js +8 -8
- package/dist/commands/export/deb.js +9 -9
- package/dist/commands/export/iso.js +8 -8
- package/dist/commands/install.js +8 -8
- package/dist/commands/kill.js +11 -12
- package/dist/commands/mom.js +5 -5
- package/dist/commands/produce.js +15 -15
- package/dist/commands/status.js +2 -2
- package/dist/commands/syncfrom.js +34 -34
- package/dist/commands/syncto.js +42 -42
- package/dist/commands/tools/clean.js +7 -7
- package/dist/commands/tools/ppa.js +17 -17
- package/dist/commands/tools/skel.js +11 -11
- package/dist/commands/tools/stat.js +2 -2
- package/dist/commands/tools/yolk.js +6 -6
- package/dist/commands/update.js +21 -21
- package/dist/commands/wardrobe/get.js +13 -7
- package/dist/commands/wardrobe/list.js +11 -5
- package/dist/commands/wardrobe/show.js +10 -7
- package/dist/commands/wardrobe/wear.js +16 -10
- package/dist/components/elements/information.js +16 -16
- package/dist/components/finished.js +4 -4
- package/dist/components/install.js +4 -4
- package/dist/components/keyboard.js +4 -4
- package/dist/components/location.js +4 -4
- package/dist/components/network.js +4 -4
- package/dist/components/partitions.js +4 -4
- package/dist/components/summary.js +4 -4
- package/dist/components/users.js +4 -4
- package/dist/components/welcome.js +4 -4
- package/dist/krill/krill-prepare.js +84 -84
- package/dist/krill/krill-sequence.js +140 -140
- package/dist/krill/modules/add-user.js +6 -6
- package/dist/krill/modules/bootloader-config-ubuntu.js +21 -21
- package/dist/krill/modules/bootloader.js +6 -6
- package/dist/krill/modules/change-password.js +2 -2
- package/dist/krill/modules/del-live-user.js +5 -5
- package/dist/krill/modules/fstab.js +10 -10
- package/dist/krill/modules/grubcfg.js +3 -3
- package/dist/krill/modules/initramfs-cfg.js +3 -3
- package/dist/krill/modules/initramfs.js +9 -9
- package/dist/krill/modules/locale.js +4 -4
- package/dist/krill/modules/m-keyboard.js +9 -9
- package/dist/krill/modules/m-timezone.js +3 -3
- package/dist/krill/modules/machine-id.js +3 -3
- package/dist/krill/modules/mkfs.js +6 -6
- package/dist/krill/modules/mount-fs.js +13 -13
- package/dist/krill/modules/mount-vfs.js +12 -12
- package/dist/krill/modules/network-cfg.js +5 -5
- package/dist/krill/modules/packages.js +10 -10
- package/dist/krill/modules/partition.js +69 -69
- package/dist/krill/modules/umount.js +6 -6
- package/dist/krill/modules/unpackfs.js +4 -4
- package/dist/lib/cli-autologin.js +12 -12
- package/dist/lib/select_keyboard_layout.js +2 -2
- package/dist/lib/select_keyboard_model.js +2 -2
- package/dist/lib/select_keyboard_option.js +2 -2
- package/dist/lib/select_keyboard_variant.js +2 -2
- package/dist/lib/select_languages.js +2 -2
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
13
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
14
|
+
const utils_1 = __importDefault(require("../utils"));
|
|
15
|
+
const pacman_1 = __importDefault(require("../pacman"));
|
|
16
|
+
const dependencies_1 = require("../../lib/dependencies");
|
|
17
|
+
const utils_2 = require("../../lib/utils");
|
|
18
18
|
/**
|
|
19
19
|
* Utils: general porpourse utils
|
|
20
20
|
* @remarks all the utilities
|
|
@@ -59,10 +59,10 @@ class Fedora {
|
|
|
59
59
|
*
|
|
60
60
|
*/
|
|
61
61
|
static async prerequisitesInstall(verbose = true) {
|
|
62
|
-
const echo =
|
|
62
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
63
63
|
const retVal = false;
|
|
64
|
-
await (0,
|
|
65
|
-
if (!
|
|
64
|
+
await (0, utils_2.exec)(`dnf install ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
65
|
+
if (!pacman_1.default.isInstalledGui()) {
|
|
66
66
|
/**
|
|
67
67
|
* live-config-getty-generator
|
|
68
68
|
*
|
|
@@ -75,7 +75,7 @@ class Fedora {
|
|
|
75
75
|
*/
|
|
76
76
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
77
77
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
78
|
-
await (0,
|
|
78
|
+
await (0, utils_2.exec)(`rm ${fileToRemove}`);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
return retVal;
|
|
@@ -97,12 +97,12 @@ class Fedora {
|
|
|
97
97
|
*
|
|
98
98
|
*/
|
|
99
99
|
static async calamaresInstall(verbose = true) {
|
|
100
|
-
const echo =
|
|
100
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
101
101
|
try {
|
|
102
|
-
await (0,
|
|
102
|
+
await (0, utils_2.exec)(`dnf install ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`, echo);
|
|
103
103
|
}
|
|
104
104
|
catch {
|
|
105
|
-
|
|
105
|
+
utils_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`); // + e.error)
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
@@ -119,12 +119,12 @@ class Fedora {
|
|
|
119
119
|
*
|
|
120
120
|
*/
|
|
121
121
|
static async calamaresRemove(verbose = true) {
|
|
122
|
-
const echo =
|
|
122
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
123
123
|
const retVal = false;
|
|
124
124
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
125
|
-
await (0,
|
|
125
|
+
await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
|
|
126
126
|
}
|
|
127
|
-
await (0,
|
|
127
|
+
await (0, utils_2.exec)('yay -Rns calamares', echo);
|
|
128
128
|
return retVal;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
@@ -11,10 +11,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
13
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
14
|
+
const utils_1 = __importDefault(require("../utils"));
|
|
15
|
+
const pacman_1 = __importDefault(require("../pacman"));
|
|
16
|
+
const dependencies_1 = require("../../lib/dependencies");
|
|
17
|
+
const utils_2 = require("../../lib/utils");
|
|
18
18
|
/**
|
|
19
19
|
* Utils: general porpourse utils
|
|
20
20
|
* @remarks all the utilities
|
|
@@ -59,10 +59,10 @@ class Suse {
|
|
|
59
59
|
*
|
|
60
60
|
*/
|
|
61
61
|
static async prerequisitesInstall(verbose = true) {
|
|
62
|
-
const echo =
|
|
62
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
63
63
|
const retVal = false;
|
|
64
|
-
await (0,
|
|
65
|
-
if (!
|
|
64
|
+
await (0, utils_2.exec)(`dnf install ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
|
|
65
|
+
if (!pacman_1.default.isInstalledGui()) {
|
|
66
66
|
/**
|
|
67
67
|
* live-config-getty-generator
|
|
68
68
|
*
|
|
@@ -75,7 +75,7 @@ class Suse {
|
|
|
75
75
|
*/
|
|
76
76
|
const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
|
|
77
77
|
if (node_fs_1.default.existsSync(fileToRemove)) {
|
|
78
|
-
await (0,
|
|
78
|
+
await (0, utils_2.exec)(`rm ${fileToRemove}`);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
return retVal;
|
|
@@ -97,12 +97,12 @@ class Suse {
|
|
|
97
97
|
*
|
|
98
98
|
*/
|
|
99
99
|
static async calamaresInstall(verbose = true) {
|
|
100
|
-
const echo =
|
|
100
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
101
101
|
try {
|
|
102
|
-
await (0,
|
|
102
|
+
await (0, utils_2.exec)(`zypper install ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`, echo);
|
|
103
103
|
}
|
|
104
104
|
catch {
|
|
105
|
-
|
|
105
|
+
utils_1.default.error(`Fedora.calamaresInstall() pacman -Sy ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`); // + e.error)
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
@@ -119,12 +119,12 @@ class Suse {
|
|
|
119
119
|
*
|
|
120
120
|
*/
|
|
121
121
|
static async calamaresRemove(verbose = true) {
|
|
122
|
-
const echo =
|
|
122
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
123
123
|
const retVal = false;
|
|
124
124
|
if (node_fs_1.default.existsSync('/etc/calamares')) {
|
|
125
|
-
await (0,
|
|
125
|
+
await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
|
|
126
126
|
}
|
|
127
|
-
await (0,
|
|
127
|
+
await (0, utils_2.exec)('zypper remove calamares', echo);
|
|
128
128
|
return retVal;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Bionic = void 0;
|
|
13
|
-
const
|
|
13
|
+
const fisherman_1 = __importDefault(require("../fisherman"));
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
@@ -21,7 +21,7 @@ class Bionic {
|
|
|
21
21
|
* @param release
|
|
22
22
|
* @param verbose
|
|
23
23
|
*/
|
|
24
|
-
constructor(installer, remix, distro, user_opt, release = false, verbose = false) {
|
|
24
|
+
constructor(installer, remix, distro, user_opt, release = false, isClone = false, verbose = false) {
|
|
25
25
|
this.verbose = false;
|
|
26
26
|
this.installer = {};
|
|
27
27
|
this.release = false;
|
|
@@ -31,13 +31,14 @@ class Bionic {
|
|
|
31
31
|
this.user_opt = user_opt;
|
|
32
32
|
this.verbose = verbose;
|
|
33
33
|
this.release = release;
|
|
34
|
+
this.isClone = isClone;
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* locale, partitions, users can come from themes
|
|
37
38
|
*/
|
|
38
39
|
async create() {
|
|
39
|
-
const fisherman = new
|
|
40
|
-
await fisherman.settings(this.remix.branding);
|
|
40
|
+
const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
|
|
41
|
+
await fisherman.settings(this.remix.branding, this.isClone);
|
|
41
42
|
await fisherman.buildModule('partition', this.remix.branding);
|
|
42
43
|
await fisherman.buildModule('mount');
|
|
43
44
|
await fisherman.moduleUnpackfs(); //
|
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.Buster = void 0;
|
|
15
|
-
const
|
|
15
|
+
const fisherman_1 = __importDefault(require("../fisherman"));
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -23,7 +23,7 @@ class Buster {
|
|
|
23
23
|
* @param displaymanager
|
|
24
24
|
* @param verbose
|
|
25
25
|
*/
|
|
26
|
-
constructor(installer, remix, distro, user_opt, release = false, theme = 'eggs', verbose = false) {
|
|
26
|
+
constructor(installer, remix, distro, user_opt, release = false, theme = 'eggs', isClone = false, verbose = false) {
|
|
27
27
|
this.verbose = false;
|
|
28
28
|
this.installer = {};
|
|
29
29
|
this.release = false;
|
|
@@ -34,13 +34,14 @@ class Buster {
|
|
|
34
34
|
this.verbose = verbose;
|
|
35
35
|
this.release = release;
|
|
36
36
|
this.theme = theme;
|
|
37
|
+
this.isClone = isClone;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* locale, partitions, users can come from themes
|
|
40
41
|
*/
|
|
41
42
|
async create() {
|
|
42
|
-
const fisherman = new
|
|
43
|
-
await fisherman.settings(this.theme);
|
|
43
|
+
const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
|
|
44
|
+
await fisherman.settings(this.theme, this.isClone);
|
|
44
45
|
await fisherman.buildModule('partition', this.theme);
|
|
45
46
|
await fisherman.buildModule('mount');
|
|
46
47
|
await fisherman.moduleUnpackfs();
|
|
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Focal = void 0;
|
|
13
|
-
const
|
|
13
|
+
const fisherman_1 = __importDefault(require("../fisherman"));
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
@@ -21,7 +21,7 @@ class Focal {
|
|
|
21
21
|
* @param displaymanager
|
|
22
22
|
* @param verbose
|
|
23
23
|
*/
|
|
24
|
-
constructor(installer, remix, distro, user_opt, release = false, theme = 'eggs', verbose = false) {
|
|
24
|
+
constructor(installer, remix, distro, user_opt, release = false, theme = 'eggs', isClone = false, verbose = false) {
|
|
25
25
|
this.verbose = false;
|
|
26
26
|
this.installer = {};
|
|
27
27
|
this.release = false;
|
|
@@ -32,13 +32,14 @@ class Focal {
|
|
|
32
32
|
this.verbose = verbose;
|
|
33
33
|
this.release = release;
|
|
34
34
|
this.theme = theme;
|
|
35
|
+
this.isClone = isClone;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* locale, partitions, users can come from themes
|
|
38
39
|
*/
|
|
39
40
|
async create() {
|
|
40
|
-
const fisherman = new
|
|
41
|
-
await fisherman.settings(this.remix.branding);
|
|
41
|
+
const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
|
|
42
|
+
await fisherman.settings(this.remix.branding, this.isClone);
|
|
42
43
|
await fisherman.buildModule('partition', this.theme);
|
|
43
44
|
await fisherman.buildModule('mount');
|
|
44
45
|
await fisherman.moduleUnpackfs();
|
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.Jessie = void 0;
|
|
15
|
-
const
|
|
15
|
+
const fisherman_1 = __importDefault(require("../fisherman"));
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -38,7 +38,7 @@ class Jessie {
|
|
|
38
38
|
* partitions can come from themes
|
|
39
39
|
*/
|
|
40
40
|
async create() {
|
|
41
|
-
const fisherman = new
|
|
41
|
+
const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
|
|
42
42
|
await fisherman.settings(this.remix.branding);
|
|
43
43
|
await fisherman.buildModule('partition', this.remix.branding);
|
|
44
44
|
await fisherman.buildCalamaresModule('sources-yolk', true);
|
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.Rolling = void 0;
|
|
15
|
-
const
|
|
15
|
+
const fisherman_1 = __importDefault(require("../fisherman"));
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -23,23 +23,25 @@ class Rolling {
|
|
|
23
23
|
* @param displaymanager
|
|
24
24
|
* @param verbose
|
|
25
25
|
*/
|
|
26
|
-
constructor(installer, remix, distro, user_opt, release = false, verbose = false) {
|
|
26
|
+
constructor(installer, remix, distro, user_opt, release = false, isClone = false, verbose = false) {
|
|
27
27
|
this.installer = {};
|
|
28
28
|
this.release = false;
|
|
29
29
|
this.verbose = false;
|
|
30
|
+
this.isClone = false;
|
|
30
31
|
this.installer = installer;
|
|
31
32
|
this.remix = remix;
|
|
32
33
|
this.distro = distro;
|
|
33
34
|
this.user_opt = user_opt;
|
|
34
35
|
this.verbose = verbose;
|
|
35
36
|
this.release = release;
|
|
37
|
+
this.isClone = isClone;
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* locale, partitions, users can come from themes
|
|
39
41
|
*/
|
|
40
42
|
async create() {
|
|
41
|
-
const fisherman = new
|
|
42
|
-
await fisherman.settings(this.remix.branding);
|
|
43
|
+
const fisherman = new fisherman_1.default(this.distro, this.installer, this.verbose);
|
|
44
|
+
await fisherman.settings(this.remix.branding, this.isClone);
|
|
43
45
|
await fisherman.buildModule('partition', this.remix.branding);
|
|
44
46
|
await fisherman.buildModule('mount');
|
|
45
47
|
await fisherman.moduleUnpackfs();
|
|
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.displaymanager = void 0;
|
|
10
|
-
const
|
|
10
|
+
const pacman_1 = __importDefault(require("../../pacman"));
|
|
11
11
|
/**
|
|
12
12
|
* restituisce displaymanagers in uso
|
|
13
13
|
*/
|
|
@@ -29,7 +29,7 @@ exports.displaymanager = displaymanager;
|
|
|
29
29
|
*/
|
|
30
30
|
function addIfExist(package2check) {
|
|
31
31
|
let content = '';
|
|
32
|
-
if (
|
|
32
|
+
if (pacman_1.default.packageIsInstalled(package2check)) {
|
|
33
33
|
let displayManager = package2check;
|
|
34
34
|
if (package2check === 'gdm3') {
|
|
35
35
|
// gdm3 is treat as gdm
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.tryInstall = exports.remove = void 0;
|
|
7
|
-
const
|
|
7
|
+
const pacman_1 = __importDefault(require("../../pacman"));
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param distro
|
|
@@ -42,20 +42,20 @@ function tryInstall(distro) {
|
|
|
42
42
|
yaml += ' - language-pack-$LOCALE\n';
|
|
43
43
|
}
|
|
44
44
|
// Da localizzare se presenti
|
|
45
|
-
if (
|
|
45
|
+
if (pacman_1.default.packageIsInstalled('hunspell')) {
|
|
46
46
|
yaml += ' - hunspell-$LOCALE\n';
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
48
|
+
if (pacman_1.default.packageIsInstalled('libreoffice-base-core')) {
|
|
49
49
|
yaml += ' - libreoffice-l10n-$LOCALE\n';
|
|
50
50
|
yaml += ' - libreoffice-help-$LOCALE\n';
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (pacman_1.default.packageIsInstalled('firefox-esr')) {
|
|
53
53
|
yaml += ' - firefox-esr-$LOCALE\n';
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
55
|
+
if (pacman_1.default.packageIsInstalled('firefox')) {
|
|
56
56
|
yaml += ' - firefox-$LOCALE\n';
|
|
57
57
|
}
|
|
58
|
-
if (
|
|
58
|
+
if (pacman_1.default.packageIsInstalled('thunderbird')) {
|
|
59
59
|
yaml += ' - thunderbird-locale-$LOCALE\n';
|
|
60
60
|
}
|
|
61
61
|
if (yaml !== '') {
|
|
@@ -13,9 +13,9 @@ const node_fs_1 = __importDefault(require("node:fs"));
|
|
|
13
13
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
14
14
|
const node_path_1 = __importDefault(require("node:path"));
|
|
15
15
|
const chalk_1 = __importDefault(require("chalk"));
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
16
|
+
const utils_1 = __importDefault(require("../utils"));
|
|
17
|
+
const displaymanager_1 = require("./fisherman-helper/displaymanager");
|
|
18
|
+
const utils_2 = require("../../lib/utils");
|
|
19
19
|
class Fisherman {
|
|
20
20
|
constructor(distro, installer, verbose = false) {
|
|
21
21
|
this.installer = {};
|
|
@@ -27,7 +27,7 @@ class Fisherman {
|
|
|
27
27
|
/**
|
|
28
28
|
* write setting
|
|
29
29
|
*/
|
|
30
|
-
async settings(vendor = 'eggs') {
|
|
30
|
+
async settings(vendor = 'eggs', isClone = false) {
|
|
31
31
|
let branding = vendor;
|
|
32
32
|
if (vendor !== 'eggs' && vendor.includes('/')) {
|
|
33
33
|
branding = vendor.slice(Math.max(0, vendor.lastIndexOf('/')));
|
|
@@ -35,20 +35,16 @@ class Fisherman {
|
|
|
35
35
|
const settings = this.installer.configuration + 'settings.conf';
|
|
36
36
|
shelljs_1.default.cp(this.installer.template + 'settings.yml', settings);
|
|
37
37
|
let hasSystemd = '# ';
|
|
38
|
-
if (
|
|
38
|
+
if (utils_1.default.isSystemd()) {
|
|
39
39
|
hasSystemd = '- ';
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
let createUsers = '- ';
|
|
42
|
+
if (isClone) {
|
|
43
|
+
createUsers = '# ';
|
|
44
|
+
}
|
|
45
45
|
let hasDisplaymanager = '# ';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
createUsers = '- ';
|
|
49
|
-
if ((0, displaymanager_js_1.displaymanager)() !== '') {
|
|
50
|
-
hasDisplaymanager = '- ';
|
|
51
|
-
}
|
|
46
|
+
if ((0, displaymanager_1.displaymanager)() !== '') {
|
|
47
|
+
hasDisplaymanager = '- ';
|
|
52
48
|
}
|
|
53
49
|
shelljs_1.default.sed('-i', '{{hasSystemd}}', hasSystemd, settings);
|
|
54
50
|
shelljs_1.default.sed('-i', '{{hasDisplaymanager}}', hasDisplaymanager, settings);
|
|
@@ -151,7 +147,7 @@ class Fisherman {
|
|
|
151
147
|
shelljs_1.default.cp(`${moduleTemplate}/module.yml`, `${moduleDest}/module.desc`);
|
|
152
148
|
if (isScript) {
|
|
153
149
|
shelljs_1.default.cp(`${moduleTemplate}/${name}.sh`, moduleScript);
|
|
154
|
-
await (0,
|
|
150
|
+
await (0, utils_2.exec)(`chmod +x ${moduleScript}`);
|
|
155
151
|
}
|
|
156
152
|
return moduleScript;
|
|
157
153
|
}
|
|
@@ -170,7 +166,7 @@ class Fisherman {
|
|
|
170
166
|
shelljs_1.default.cp(`${moduleSource}/module.yml`, `${moduleDest}/module.desc`);
|
|
171
167
|
shelljs_1.default.cp(`${moduleSource}/${name}.yml`, `${moduleDest}/${name}.conf`);
|
|
172
168
|
shelljs_1.default.cp(`${moduleSource}/main.py`, moduleDest);
|
|
173
|
-
await (0,
|
|
169
|
+
await (0, utils_2.exec)(`chmod +x ${moduleSource}/main.py`);
|
|
174
170
|
}
|
|
175
171
|
/**
|
|
176
172
|
*
|
|
@@ -12,14 +12,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
13
13
|
const node_path_1 = __importDefault(require("node:path"));
|
|
14
14
|
const shelljs_1 = __importDefault(require("shelljs"));
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
15
|
+
const utils_1 = __importDefault(require("../utils"));
|
|
16
|
+
const jessie_1 = require("./distros/jessie");
|
|
17
|
+
const buster_1 = require("./distros/buster");
|
|
18
|
+
const focal_1 = require("./distros/focal");
|
|
19
|
+
const bionic_1 = require("./distros/bionic");
|
|
20
|
+
const rolling_1 = require("./distros/rolling");
|
|
21
|
+
const installer_1 = require("./installer");
|
|
22
|
+
const utils_2 = require("../../lib/utils");
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
@@ -30,16 +30,17 @@ class Incubator {
|
|
|
30
30
|
* @param distro
|
|
31
31
|
* @param verbose
|
|
32
32
|
*/
|
|
33
|
-
constructor(remix, distro, user_opt = 'live', theme = 'eggs', verbose = false) {
|
|
33
|
+
constructor(remix, distro, user_opt = 'live', theme = 'eggs', isClone = false, verbose = false) {
|
|
34
34
|
this.verbose = false;
|
|
35
35
|
this.installer = {};
|
|
36
|
-
this.installer = (0,
|
|
36
|
+
this.installer = (0, installer_1.installer)();
|
|
37
37
|
this.remix = remix;
|
|
38
38
|
this.distro = distro;
|
|
39
39
|
this.user_opt = user_opt;
|
|
40
40
|
this.theme = theme;
|
|
41
41
|
this.verbose = verbose;
|
|
42
42
|
this.remix.branding = theme;
|
|
43
|
+
this.isClone = isClone;
|
|
43
44
|
if (theme.includes('/')) {
|
|
44
45
|
this.remix.branding = theme.slice(Math.max(0, theme.lastIndexOf('/') + 1));
|
|
45
46
|
}
|
|
@@ -49,32 +50,32 @@ class Incubator {
|
|
|
49
50
|
*/
|
|
50
51
|
async config(release = false) {
|
|
51
52
|
const verbose = true;
|
|
52
|
-
const echo =
|
|
53
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
53
54
|
this.createInstallerDirs();
|
|
54
55
|
// DEBIAN
|
|
55
56
|
switch (this.distro.codenameLikeId) {
|
|
56
57
|
case 'jessie': {
|
|
57
|
-
const jessie = new
|
|
58
|
+
const jessie = new jessie_1.Jessie(this.installer, this.remix, this.distro, this.user_opt, release, this.verbose);
|
|
58
59
|
await jessie.create();
|
|
59
60
|
break;
|
|
60
61
|
}
|
|
61
62
|
case 'stretch': {
|
|
62
|
-
const stretch = new
|
|
63
|
+
const stretch = new jessie_1.Jessie(this.installer, this.remix, this.distro, this.user_opt, release, this.verbose);
|
|
63
64
|
await stretch.create();
|
|
64
65
|
break;
|
|
65
66
|
}
|
|
66
67
|
case 'buster': {
|
|
67
|
-
const buster = new
|
|
68
|
+
const buster = new buster_1.Buster(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
68
69
|
await buster.create();
|
|
69
70
|
break;
|
|
70
71
|
}
|
|
71
72
|
case 'bullseye': {
|
|
72
|
-
const bullseye = new
|
|
73
|
+
const bullseye = new buster_1.Buster(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
73
74
|
await bullseye.create();
|
|
74
75
|
break;
|
|
75
76
|
}
|
|
76
77
|
case 'bookworm': {
|
|
77
|
-
const bookworm = new
|
|
78
|
+
const bookworm = new buster_1.Buster(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
78
79
|
await bookworm.create();
|
|
79
80
|
// DEVUAN
|
|
80
81
|
break;
|
|
@@ -83,17 +84,17 @@ class Incubator {
|
|
|
83
84
|
* DEVUAN
|
|
84
85
|
*/
|
|
85
86
|
case 'beowulf': {
|
|
86
|
-
const beowulf = new
|
|
87
|
+
const beowulf = new buster_1.Buster(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
87
88
|
await beowulf.create();
|
|
88
89
|
break;
|
|
89
90
|
}
|
|
90
91
|
case 'chimaera': {
|
|
91
|
-
const chimaera = new
|
|
92
|
+
const chimaera = new buster_1.Buster(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
92
93
|
await chimaera.create();
|
|
93
94
|
break;
|
|
94
95
|
}
|
|
95
96
|
case 'daedalus': {
|
|
96
|
-
const daedalus = new
|
|
97
|
+
const daedalus = new buster_1.Buster(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
97
98
|
await daedalus.create();
|
|
98
99
|
break;
|
|
99
100
|
}
|
|
@@ -101,22 +102,22 @@ class Incubator {
|
|
|
101
102
|
* UBUNTU
|
|
102
103
|
*/
|
|
103
104
|
case 'bionic': {
|
|
104
|
-
const bionic = new
|
|
105
|
+
const bionic = new bionic_1.Bionic(this.installer, this.remix, this.distro, this.user_opt, release, this.isClone, this.verbose);
|
|
105
106
|
await bionic.create();
|
|
106
107
|
break;
|
|
107
108
|
}
|
|
108
109
|
case 'focal': {
|
|
109
|
-
const focal = new
|
|
110
|
+
const focal = new focal_1.Focal(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
110
111
|
await focal.create();
|
|
111
112
|
break;
|
|
112
113
|
}
|
|
113
114
|
case 'jammy': {
|
|
114
|
-
const jammy = new
|
|
115
|
+
const jammy = new focal_1.Focal(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
115
116
|
await jammy.create();
|
|
116
117
|
break;
|
|
117
118
|
}
|
|
118
119
|
case 'kinetic': {
|
|
119
|
-
const kinetic = new
|
|
120
|
+
const kinetic = new focal_1.Focal(this.installer, this.remix, this.distro, this.user_opt, release, this.theme, this.isClone, this.verbose);
|
|
120
121
|
await kinetic.create();
|
|
121
122
|
break;
|
|
122
123
|
}
|
|
@@ -124,7 +125,7 @@ class Incubator {
|
|
|
124
125
|
* Arch
|
|
125
126
|
*/
|
|
126
127
|
case 'rolling': {
|
|
127
|
-
const rolling = new
|
|
128
|
+
const rolling = new rolling_1.Rolling(this.installer, this.remix, this.distro, this.user_opt, release, this.isClone, this.verbose);
|
|
128
129
|
await rolling.create();
|
|
129
130
|
break;
|
|
130
131
|
}
|
|
@@ -273,7 +274,7 @@ class Incubator {
|
|
|
273
274
|
const scriptFile = scriptDir + 'install-debian';
|
|
274
275
|
const scriptContent = scriptInstallDebian();
|
|
275
276
|
write(scriptFile, scriptContent, this.verbose);
|
|
276
|
-
await (0,
|
|
277
|
+
await (0, utils_2.exec)(`chmod +x ${scriptFile}`);
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
280
|
exports.default = Incubator;
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.installer = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const distro_1 = __importDefault(require("../../classes/distro"));
|
|
8
|
+
const pacman_1 = __importDefault(require("../../classes/pacman"));
|
|
9
9
|
function installer() {
|
|
10
10
|
const installer = {};
|
|
11
|
-
if (
|
|
11
|
+
if (pacman_1.default.packageIsInstalled('calamares')) {
|
|
12
12
|
installer.name = 'calamares';
|
|
13
13
|
installer.configuration = '/etc/calamares/';
|
|
14
14
|
installer.multiarch = multiarch() + 'calamares/';
|
|
@@ -24,7 +24,7 @@ function installer() {
|
|
|
24
24
|
* i template nelle versioni isCalamaresAvailable sono QUELLI di calamares
|
|
25
25
|
*/
|
|
26
26
|
const remix = {};
|
|
27
|
-
const distro = new
|
|
27
|
+
const distro = new distro_1.default(remix);
|
|
28
28
|
if (distro.isCalamaresAvailable) {
|
|
29
29
|
installer.template = '/etc/penguins-eggs.d/distros/' + distro.codenameLikeId + '/calamares/';
|
|
30
30
|
installer.templateModules = installer.template + 'modules/';
|
|
@@ -43,5 +43,5 @@ exports.installer = installer;
|
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
45
|
function multiarch() {
|
|
46
|
-
return
|
|
46
|
+
return pacman_1.default.distro().usrLibPath;
|
|
47
47
|
}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const utils_1 = require("../lib/utils");
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
// XkbModel - name of the model of your keyboard type
|
|
9
9
|
// XkbLayout - layout(s) you intend to use
|
|
@@ -138,7 +138,7 @@ class Keyboard {
|
|
|
138
138
|
const cmd = `grep XKBMODEL < ${file} |cut -f2 -d= | cut -f2 "-d\\""`;
|
|
139
139
|
let keyboardModel = 'pc105';
|
|
140
140
|
if (fs_1.default.existsSync(file)) {
|
|
141
|
-
const result = await (0,
|
|
141
|
+
const result = await (0, utils_1.exec)(cmd, { capture: true, echo: false, ignore: false });
|
|
142
142
|
if (result.code === 0) {
|
|
143
143
|
keyboardModel = result.data.trim();
|
|
144
144
|
}
|
|
@@ -153,7 +153,7 @@ class Keyboard {
|
|
|
153
153
|
const cmd = 'grep XKBLAYOUT < /etc/default/keyboard | cut -f2 -d= | cut -f2 "-d\\""';
|
|
154
154
|
let keyboardLayout = 'us';
|
|
155
155
|
if (fs_1.default.existsSync(file)) {
|
|
156
|
-
const result = await (0,
|
|
156
|
+
const result = await (0, utils_1.exec)(cmd, { capture: true, echo: false, ignore: false });
|
|
157
157
|
if (result.code === 0) {
|
|
158
158
|
keyboardLayout = result.data.trim();
|
|
159
159
|
}
|
|
@@ -168,7 +168,7 @@ class Keyboard {
|
|
|
168
168
|
const cmd = `grep XKBVARIANT < ${file} | cut -f2 -d=|cut -f2 "-d\\""`;
|
|
169
169
|
let keyboardVariant = '';
|
|
170
170
|
if (fs_1.default.existsSync(file)) {
|
|
171
|
-
const result = await (0,
|
|
171
|
+
const result = await (0, utils_1.exec)(cmd, { capture: true, echo: false, ignore: false });
|
|
172
172
|
if (result.code === 0) {
|
|
173
173
|
keyboardVariant = result.data.trim();
|
|
174
174
|
}
|
|
@@ -183,7 +183,7 @@ class Keyboard {
|
|
|
183
183
|
const cmd = `grep XKBOPTIONS < ${file} | cut -f2 -d= | cut -f2 "-d\\""`;
|
|
184
184
|
let keyboardOption = '';
|
|
185
185
|
if (fs_1.default.existsSync(file)) {
|
|
186
|
-
const result = await (0,
|
|
186
|
+
const result = await (0, utils_1.exec)(cmd, { capture: true, echo: false, ignore: false });
|
|
187
187
|
if (result.code === 0) {
|
|
188
188
|
keyboardOption = result.data.trim();
|
|
189
189
|
}
|