penguins-eggs 9.0.35 → 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.
- package/README.md +442 -17
- package/conf/distros/buster/calamares/modules/bootloader.yml +3 -1
- package/conf/eggs.yaml +9 -2
- package/lib/classes/basket.js +4 -4
- package/lib/classes/bleach.js +2 -2
- package/lib/classes/compressors.js +1 -1
- package/lib/classes/daddy.js +6 -6
- package/lib/classes/distro.js +17 -3
- package/lib/classes/family/archlinux.js +4 -4
- package/lib/classes/family/debian.js +4 -4
- package/lib/classes/family/fedora.js +4 -4
- package/lib/classes/family/suse.js +4 -4
- package/lib/classes/i18n.d.ts +28 -4
- package/lib/classes/i18n.js +112 -84
- package/lib/classes/incubation/branding.js +13 -7
- package/lib/classes/incubation/distros/bionic.js +1 -1
- package/lib/classes/incubation/distros/buster.js +1 -1
- package/lib/classes/incubation/distros/focal.js +1 -1
- package/lib/classes/incubation/distros/jessie.js +1 -1
- package/lib/classes/incubation/distros/rolling.js +1 -1
- package/lib/classes/incubation/fisherman-helper/displaymanager.js +1 -1
- package/lib/classes/incubation/fisherman-helper/packages.js +1 -1
- package/lib/classes/incubation/fisherman.js +5 -5
- package/lib/classes/incubation/incubator.js +4 -4
- package/lib/classes/incubation/installer.js +2 -2
- package/lib/classes/initrd.js +2 -2
- package/lib/classes/keyboards.d.ts +45 -0
- package/lib/classes/keyboards.js +196 -0
- package/lib/classes/krill_install.d.ts +4 -0
- package/lib/classes/krill_install.js +28 -10
- package/lib/classes/krill_prepare.d.ts +4 -0
- package/lib/classes/krill_prepare.js +56 -77
- package/lib/classes/locales.d.ts +14 -0
- package/lib/classes/locales.js +54 -0
- package/lib/classes/n8.js +1 -1
- package/lib/classes/ovary.js +17 -17
- package/lib/classes/pacman.js +19 -19
- package/lib/classes/pve-live.js +3 -3
- package/lib/classes/settings.d.ts +6 -0
- package/lib/classes/settings.js +11 -13
- package/lib/classes/systemctl.js +1 -1
- package/lib/classes/tailor.d.ts +20 -0
- package/lib/classes/tailor.js +460 -0
- package/lib/classes/tools.js +4 -4
- package/lib/classes/users.js +1 -1
- package/lib/classes/utils.js +9 -9
- package/lib/classes/xdg.js +5 -5
- package/lib/classes/yolk.js +5 -5
- package/lib/commands/adapt.js +1 -1
- package/lib/commands/analyze.js +2 -2
- package/lib/commands/bro.js +2 -2
- package/lib/commands/calamares.js +4 -4
- package/lib/commands/config.js +4 -4
- package/lib/commands/dad.js +2 -2
- package/lib/commands/export/deb.js +2 -2
- package/lib/commands/export/docs.js +2 -2
- package/lib/commands/export/iso.js +2 -2
- package/lib/commands/info.js +1 -1
- package/lib/commands/install.js +5 -5
- package/lib/commands/kill.js +2 -2
- package/lib/commands/mom.js +2 -2
- package/lib/commands/produce.js +8 -8
- package/lib/commands/remove.js +2 -2
- package/lib/commands/syncfrom.js +1 -1
- package/lib/commands/syncto.js +2 -2
- package/lib/commands/tools/clean.js +2 -2
- package/lib/commands/tools/locales.js +9 -4
- package/lib/commands/tools/skel.js +2 -2
- package/lib/commands/tools/stat.js +3 -3
- package/lib/commands/tools/yolk.js +4 -4
- package/lib/commands/update.js +5 -5
- package/lib/commands/wardrobe/ironing.d.ts +14 -0
- package/lib/commands/wardrobe/ironing.js +123 -0
- package/lib/commands/wardrobe/list.d.ts +13 -0
- package/lib/commands/wardrobe/list.js +46 -0
- package/lib/commands/wardrobe/show.d.ts +15 -0
- package/lib/commands/wardrobe/show.js +55 -0
- package/lib/commands/wardrobe/wear.d.ts +11 -0
- package/lib/commands/wardrobe/wear.js +42 -0
- package/lib/components/elements/information.js +6 -6
- package/lib/components/elements/steps.js +1 -1
- package/lib/components/elements/title.js +2 -2
- package/lib/components/finished.js +5 -5
- package/lib/components/install.js +5 -5
- package/lib/components/keyboard.js +5 -8
- package/lib/components/location.js +5 -5
- package/lib/components/network.js +5 -5
- package/lib/components/partitions.js +5 -5
- package/lib/components/summary.js +5 -5
- package/lib/components/users.js +5 -5
- package/lib/components/welcome.js +6 -6
- package/lib/interfaces/i-costume.d.ts +43 -0
- package/lib/interfaces/i-costume.js +2 -0
- package/lib/interfaces/i-krill.d.ts +1 -0
- package/lib/interfaces/i-packages.d.ts +13 -0
- package/lib/interfaces/i-packages.js +2 -0
- package/lib/interfaces/i-xkb-model.d.ts +17 -0
- package/lib/interfaces/i-xkb-model.js +2 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/lib/cli-autologin.js +3 -3
- package/lib/lib/select_address_type.js +1 -1
- package/lib/lib/select_filesystem_type.js +2 -2
- package/lib/lib/select_installation_device.js +1 -1
- package/lib/lib/select_interface.js +1 -1
- package/lib/lib/select_keyboard_layout.d.ts +1 -28
- package/lib/lib/select_keyboard_layout.js +18 -33
- package/lib/lib/select_keyboard_model.d.ts +4 -0
- package/lib/lib/select_keyboard_model.js +36 -0
- package/lib/lib/select_keyboard_option.d.ts +4 -0
- package/lib/lib/select_keyboard_option.js +36 -0
- package/lib/lib/select_keyboard_variant.d.ts +1 -5
- package/lib/lib/select_keyboard_variant.js +32 -5
- package/lib/lib/select_languages.d.ts +1 -1
- package/lib/lib/select_languages.js +8 -7
- package/lib/lib/select_regions.d.ts +1 -1
- package/lib/lib/select_regions.js +2 -2
- package/lib/lib/select_user_swap_choice.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -2
- package/scripts/_eggs +43 -2
- package/scripts/eggs.bash +6 -2
- package/scripts/resy.sh +8 -0
- package/wardrobe.d/external.yml +7 -0
- package/wardrobe.d/hen/control.template +10 -0
- package/wardrobe.d/hen/index.yml +212 -0
- package/wardrobe.d/kde/index.yml +41 -0
- package/wardrobe.d/lamp/index.yml +35 -0
- package/wardrobe.d/xfce4/index.yml +53 -0
- package/conf/distros/buster/locales/locale.gen.template +0 -10
- package/conf/distros/buster/locales/locale.template +0 -11
- package/conf/distros/focal/locale.gen.template +0 -8
package/lib/classes/daddy.js
CHANGED
|
@@ -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 =
|
|
11
|
-
const pacman_1 =
|
|
12
|
-
const settings_1 =
|
|
13
|
-
const ovary_1 =
|
|
14
|
-
const compressors_1 =
|
|
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 =
|
|
16
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
17
17
|
const utils_2 = require("../lib/utils");
|
|
18
18
|
class Daddy {
|
|
19
19
|
constructor() {
|
package/lib/classes/distro.js
CHANGED
|
@@ -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 =
|
|
35
|
-
const shelljs_1 =
|
|
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
|
*/
|
|
@@ -81,7 +81,9 @@ class Distro {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* lsb_release -cs per
|
|
84
|
+
* lsb_release -cs per codename (version)
|
|
85
|
+
* lsb_release -is per distribuzione
|
|
86
|
+
* lsb_release -rs per release
|
|
85
87
|
*/
|
|
86
88
|
this.codenameId = shelljs_1.default.exec('lsb_release -cs', { silent: true }).stdout.toString().trim();
|
|
87
89
|
this.releaseId = shelljs_1.default.exec('lsb_release -rs', { silent: true }).stdout.toString().trim();
|
|
@@ -267,6 +269,18 @@ class Distro {
|
|
|
267
269
|
this.codenameLikeId = 'bullseye';
|
|
268
270
|
break;
|
|
269
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';
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
270
284
|
case 'siduction': {
|
|
271
285
|
// Debian 11 Siduction
|
|
272
286
|
this.distroLike = 'Debian';
|
|
@@ -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 =
|
|
11
|
-
const shelljs_1 =
|
|
12
|
-
const utils_1 =
|
|
13
|
-
const pacman_1 =
|
|
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 =
|
|
11
|
-
const shelljs_1 =
|
|
12
|
-
const utils_1 =
|
|
13
|
-
const pacman_1 =
|
|
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
|
/**
|
|
@@ -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 =
|
|
11
|
-
const shelljs_1 =
|
|
12
|
-
const utils_1 =
|
|
13
|
-
const pacman_1 =
|
|
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 =
|
|
11
|
-
const shelljs_1 =
|
|
12
|
-
const utils_1 =
|
|
13
|
-
const pacman_1 =
|
|
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
|
/**
|
package/lib/classes/i18n.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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(
|
|
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
|
}
|
package/lib/classes/i18n.js
CHANGED
|
@@ -1,110 +1,138 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* eslint-disable valid-jsdoc */
|
|
3
|
-
/* eslint-disable no-console */
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
2
|
/**
|
|
7
|
-
* penguins-eggs:
|
|
3
|
+
* penguins-eggs:
|
|
8
4
|
* author: Piero Proietti
|
|
9
5
|
* mail: piero.proietti@gmail.com
|
|
10
6
|
*
|
|
11
7
|
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
12
10
|
// packages
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
// interfaces
|
|
11
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
12
|
+
const mustache_1 = tslib_1.__importDefault(require("mustache"));
|
|
13
|
+
const settings_1 = tslib_1.__importDefault(require("./settings"));
|
|
14
|
+
const utils_1 = tslib_1.__importDefault(require("./utils"));
|
|
18
15
|
// libraries
|
|
19
|
-
|
|
20
|
-
const settings_1 = (0, tslib_1.__importDefault)(require("./settings"));
|
|
16
|
+
const utils_2 = require("../lib/utils");
|
|
21
17
|
/**
|
|
22
|
-
*
|
|
18
|
+
* I18n
|
|
23
19
|
*/
|
|
24
20
|
class I18n {
|
|
25
|
-
constructor(verbose = false) {
|
|
21
|
+
constructor(chroot = '/', verbose = false) {
|
|
26
22
|
this.verbose = false;
|
|
23
|
+
this.echo = {};
|
|
24
|
+
this.toNull = '';
|
|
25
|
+
this.chroot = '/';
|
|
27
26
|
this.settings = {};
|
|
28
27
|
this.verbose = verbose;
|
|
28
|
+
this.echo = utils_1.default.setEcho(verbose);
|
|
29
|
+
if (this.verbose) {
|
|
30
|
+
this.toNull = ' > /dev/null 2>&1';
|
|
31
|
+
}
|
|
29
32
|
this.settings = new settings_1.default();
|
|
33
|
+
this.chroot = chroot;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* reinstall
|
|
37
|
+
*/
|
|
38
|
+
async reinstall() {
|
|
39
|
+
utils_1.default.warning('reinstalling locales');
|
|
40
|
+
await (0, utils_2.exec)('apt-get purge locales --yes', this.echo);
|
|
41
|
+
await (0, utils_2.exec)('apt-get reinstall locales --yes', this.echo);
|
|
42
|
+
process.exit();
|
|
30
43
|
}
|
|
31
44
|
/**
|
|
32
45
|
*
|
|
33
|
-
* @param reinstall
|
|
34
46
|
*/
|
|
35
|
-
generate(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* /etc/default/locale
|
|
45
|
-
*/
|
|
46
|
-
if (this.verbose) {
|
|
47
|
-
console.log('creating /etc/default.locale');
|
|
48
|
-
}
|
|
49
|
-
const src = node_path_1.default.resolve(__dirname, `../../conf/distros/${this.settings.distro.codenameId}/locales/locale.template`);
|
|
50
|
-
const dest = '/etc/default/locale';
|
|
51
|
-
const template = node_fs_1.default.readFileSync(src, 'utf8');
|
|
52
|
-
const view = {
|
|
53
|
-
locale: this.settings.config.locales_default
|
|
54
|
-
};
|
|
55
|
-
node_fs_1.default.writeFileSync(dest, mustache_1.default.render(template, view));
|
|
56
|
-
/**
|
|
57
|
-
* /etc/locale.gen
|
|
58
|
-
*/
|
|
59
|
-
if (this.verbose) {
|
|
60
|
-
console.log('creating /etc/locale.gen');
|
|
47
|
+
async generate(fromSettings = true, defaultLocale = 'en_EN.UTF-8', locales = ['en_EN.UTF-8']) {
|
|
48
|
+
if (fromSettings) {
|
|
49
|
+
this.settings.load();
|
|
50
|
+
utils_1.default.warning("Configuring locales from /etc/penguins-eggs.d/eggs.yml");
|
|
51
|
+
defaultLocale = this.settings.config.locales_default;
|
|
52
|
+
locales = [];
|
|
53
|
+
for (let i = 0; i < this.settings.config.locales.length; i++) {
|
|
54
|
+
locales.push(this.settings.config.locales[i]);
|
|
55
|
+
}
|
|
61
56
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const templateLocales = node_fs_1.default.readFileSync(srcLocales, 'utf8');
|
|
65
|
-
const viewLocales = { locales: [{}] };
|
|
66
|
-
for (let i = 0; i < this.settings.config.locales.length; i++) {
|
|
67
|
-
viewLocales.locales.push({ locale: this.settings.config.locales[i] + ' UTF-8' });
|
|
57
|
+
else {
|
|
58
|
+
utils_1.default.warning("Configuring locales from krill");
|
|
68
59
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*/
|
|
74
|
-
console.log('reinstall package locales');
|
|
75
|
-
shelljs_1.default.exec('apt-get reinstall locales --yes');
|
|
76
|
-
// Eseguire localepurge file /etc/locale.nopurge
|
|
77
|
-
// rimangono però i task task-italian, polish, etc che dipendono da task-sel
|
|
60
|
+
console.log(`default: ${defaultLocale}`);
|
|
61
|
+
console.log('create locales:');
|
|
62
|
+
for (let i = 0; i < locales.length; i++) {
|
|
63
|
+
console.log(`- ${locales[i]}`);
|
|
78
64
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
65
|
+
await this.localeGen(locales);
|
|
66
|
+
await this.defaultLocale(defaultLocale);
|
|
67
|
+
await this.localeConf(defaultLocale);
|
|
68
|
+
await (0, utils_2.exec)(`chroot ${this.chroot} /usr/sbin/locale-gen`, this.echo);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* localeGen
|
|
72
|
+
*/
|
|
73
|
+
async localeGen(locales) {
|
|
74
|
+
let lgt = '';
|
|
75
|
+
lgt += '# File generated by penguins-eggs\n';
|
|
76
|
+
lgt += '# This file lists locales that you wish to have built. You can find a list\n';
|
|
77
|
+
lgt += '# of valid supported locales at /usr/share/i18n/SUPPORTED, and you can add\n';
|
|
78
|
+
lgt += '# user defined locales to /usr/local/share/i18n/SUPPORTED. If you change\n';
|
|
79
|
+
lgt += '# this file, you need to rerun locale-gen.\n';
|
|
80
|
+
lgt += '{{#locales}}\n';
|
|
81
|
+
lgt += '{{{locale}}}\n';
|
|
82
|
+
lgt += '{{/locales}}\n';
|
|
83
|
+
const viewGen = { locales: [{}] };
|
|
84
|
+
for (let i = 0; i < locales.length; i++) {
|
|
85
|
+
viewGen.locales.push({ locale: locales[i] + ' UTF-8' });
|
|
84
86
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
87
|
+
const destGen = `${this.chroot}/etc/locale.gen`;
|
|
88
|
+
// console.log(mustache.render(lgt, viewGen))
|
|
89
|
+
fs_1.default.writeFileSync(destGen, mustache_1.default.render(lgt, viewGen));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* /etc/locale.conf
|
|
93
|
+
*/
|
|
94
|
+
async localeConf(defaultLocale) {
|
|
95
|
+
let lct = '';
|
|
96
|
+
lct += '# File generated by penguins-eggs\n';
|
|
97
|
+
lct += 'LANG={{{locale}}}\n';
|
|
98
|
+
lct += 'LC_ADDRESS={{{locale}}}\n';
|
|
99
|
+
lct += 'LC_IDENTIFICATION={{{locale}}}\n';
|
|
100
|
+
lct += 'LC_MEASUREMENT={{{locale}}}\n';
|
|
101
|
+
lct += 'LC_MONETARY={{{locale}}}\n';
|
|
102
|
+
lct += 'LC_NAME={{{locale}}}\n';
|
|
103
|
+
lct += 'LC_NUMERIC={{{locale}}}\n';
|
|
104
|
+
lct += 'LC_PAPER={{{locale}}}\n';
|
|
105
|
+
lct += 'LC_TELEPHONE={{{locale}}}\n';
|
|
106
|
+
lct += 'LC_TIME={{{locale}}}\n';
|
|
107
|
+
const destConf = `${this.chroot}/etc/locale.conf`;
|
|
108
|
+
const view = {
|
|
109
|
+
locale: defaultLocale
|
|
110
|
+
};
|
|
111
|
+
// console.log(mustache.render(lct, view))
|
|
112
|
+
fs_1.default.writeFileSync(destConf, mustache_1.default.render(lct, view));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* /etc/default/locale
|
|
116
|
+
*/
|
|
117
|
+
async defaultLocale(defaultLocale) {
|
|
118
|
+
let lct = '';
|
|
119
|
+
lct += '# File generated by penguins-eggs\n';
|
|
120
|
+
lct += 'LANG={{{locale}}}\n';
|
|
121
|
+
lct += 'LC_ADDRESS={{{locale}}}\n';
|
|
122
|
+
lct += 'LC_IDENTIFICATION={{{locale}}}\n';
|
|
123
|
+
lct += 'LC_MEASUREMENT={{{locale}}}\n';
|
|
124
|
+
lct += 'LC_MONETARY={{{locale}}}\n';
|
|
125
|
+
lct += 'LC_NAME={{{locale}}}\n';
|
|
126
|
+
lct += 'LC_NUMERIC={{{locale}}}\n';
|
|
127
|
+
lct += 'LC_PAPER={{{locale}}}\n';
|
|
128
|
+
lct += 'LC_TELEPHONE={{{locale}}}\n';
|
|
129
|
+
lct += 'LC_TIME={{{locale}}}\n';
|
|
130
|
+
const destConf = `${this.chroot}/etc/default/locale`;
|
|
131
|
+
const view = {
|
|
132
|
+
locale: defaultLocale
|
|
133
|
+
};
|
|
134
|
+
// console.log(mustache.render(lct, view))
|
|
135
|
+
fs_1.default.writeFileSync(destConf, mustache_1.default.render(lct, view));
|
|
108
136
|
}
|
|
109
137
|
}
|
|
110
138
|
exports.default = I18n;
|
|
@@ -8,7 +8,7 @@ const tslib_1 = require("tslib");
|
|
|
8
8
|
* author: Piero Proietti
|
|
9
9
|
* mail: piero.proietti@gmail.com
|
|
10
10
|
*/
|
|
11
|
-
const js_yaml_1 =
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @param remix
|
|
@@ -30,12 +30,18 @@ function branding(remix, distro, brand = '', verbose = false) {
|
|
|
30
30
|
const versionedName = remix.fullname + ' (' + version + ')'; // Questa la mette nella descrizione andrebbe aggiunta la versione dal nome della iso
|
|
31
31
|
const shortVersionedName = remix.versionName + ' ' + version;
|
|
32
32
|
let bootloaderEntryName = distro.distroId;
|
|
33
|
-
// Necessario: Devuan
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
// Necessario: Devuan, LMDE, caraco, syslinuxos devono avere EFI=Debian altrimenti non funziona EFI
|
|
34
|
+
switch (distro.distroId.toLowerCase()) {
|
|
35
|
+
case 'caraco':
|
|
36
|
+
case 'devuan':
|
|
37
|
+
case 'lmde':
|
|
38
|
+
case 'syslinuxos': {
|
|
39
|
+
bootloaderEntryName = 'Debian';
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
default: {
|
|
43
|
+
bootloaderEntryName = distro.distroId;
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
const productUrl = homeUrl;
|
|
41
47
|
const releaseNotesUrl = 'https://github.com/pieroproietti/penguins-eggs/changelog.md';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Bionic = void 0;
|
|
10
10
|
const tslib_1 = require("tslib");
|
|
11
|
-
const fisherman_1 =
|
|
11
|
+
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.Buster = void 0;
|
|
12
12
|
const tslib_1 = require("tslib");
|
|
13
|
-
const fisherman_1 =
|
|
13
|
+
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Focal = void 0;
|
|
10
10
|
const tslib_1 = require("tslib");
|
|
11
|
-
const fisherman_1 =
|
|
11
|
+
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.Jessie = void 0;
|
|
12
12
|
const tslib_1 = require("tslib");
|
|
13
|
-
const fisherman_1 =
|
|
13
|
+
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.Rolling = void 0;
|
|
12
12
|
const tslib_1 = require("tslib");
|
|
13
|
-
const fisherman_1 =
|
|
13
|
+
const fisherman_1 = tslib_1.__importDefault(require("../fisherman"));
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.displaymanager = void 0;
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
const pacman_1 =
|
|
8
|
+
const pacman_1 = tslib_1.__importDefault(require("../../pacman"));
|
|
9
9
|
/**
|
|
10
10
|
* restituisce displaymanagers in uso
|
|
11
11
|
*/
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const tslib_1 = require("tslib");
|
|
10
|
-
const node_fs_1 =
|
|
11
|
-
const shelljs_1 =
|
|
12
|
-
const node_path_1 =
|
|
13
|
-
const chalk_1 =
|
|
14
|
-
const utils_1 =
|
|
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
15
|
const displaymanager_1 = require("./fisherman-helper/displaymanager");
|
|
16
16
|
const utils_2 = require("../../lib/utils");
|
|
17
17
|
class Fisherman {
|
|
@@ -7,10 +7,10 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
* author: Piero Proietti
|
|
8
8
|
* mail: piero.proietti@gmail.com
|
|
9
9
|
*/
|
|
10
|
-
const node_fs_1 =
|
|
11
|
-
const node_path_1 =
|
|
12
|
-
const shelljs_1 =
|
|
13
|
-
const utils_1 =
|
|
10
|
+
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
11
|
+
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
12
|
+
const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
|
|
13
|
+
const utils_1 = tslib_1.__importDefault(require("../utils"));
|
|
14
14
|
const jessie_1 = require("./distros/jessie");
|
|
15
15
|
const buster_1 = require("./distros/buster");
|
|
16
16
|
const focal_1 = require("./distros/focal");
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.installer = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const distro_1 =
|
|
6
|
-
const pacman_1 =
|
|
5
|
+
const distro_1 = tslib_1.__importDefault(require("../../classes/distro"));
|
|
6
|
+
const pacman_1 = tslib_1.__importDefault(require("../../classes/pacman"));
|
|
7
7
|
function installer() {
|
|
8
8
|
const installer = {};
|
|
9
9
|
if (pacman_1.default.packageIsInstalled('calamares')) {
|
package/lib/classes/initrd.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
const tslib_1 = require("tslib");
|
|
12
12
|
// packages
|
|
13
|
-
const node_fs_1 =
|
|
14
|
-
const shelljs_1 =
|
|
13
|
+
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
14
|
+
const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
|
|
15
15
|
/**
|
|
16
16
|
* initrd
|
|
17
17
|
* Controlla e rimuove, se necessario cryptroot, resume
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IXkbModel, IXkbLayout, IXkbVariant, IXkbOption } from '../interfaces/i-xkb-model';
|
|
2
|
+
/**
|
|
3
|
+
* /usr/share/X11/xkb/rules/xorg.lst
|
|
4
|
+
*/
|
|
5
|
+
export default class Keyboard {
|
|
6
|
+
models: string[];
|
|
7
|
+
layouts: string[];
|
|
8
|
+
variants: string[];
|
|
9
|
+
options: string[];
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
getModels(): IXkbModel[];
|
|
16
|
+
/**
|
|
17
|
+
* 012345678901234567890123456789
|
|
18
|
+
* us English (US)
|
|
19
|
+
*/
|
|
20
|
+
getLayouts(): IXkbLayout[];
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
getVariants(layout: string): IXkbVariant[];
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
getOptions(): IXkbOption[];
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
getVariant(): Promise<string>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
getLayout(): Promise<string>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
getModel(): Promise<string>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
getOption(): Promise<string>;
|
|
45
|
+
}
|