penguins-eggs 9.0.35 → 9.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +136 -71
- package/assets/leaves.svg +1 -0
- package/assets/live-installer/com.github.pieroproietti.penguins-eggs.policy +25 -0
- package/assets/live-installer/filesystem.packages-remove +49 -0
- package/assets/penguins-live-installer.desktop +27 -0
- package/conf/distros/buster/calamares/modules/bootloader.yml +3 -1
- package/conf/eggs.yaml +9 -2
- package/lib/classes/bleach.js +2 -2
- package/lib/classes/compressors.js +1 -1
- package/lib/classes/daddy.js +28 -28
- package/lib/classes/distro.d.ts +1 -1
- package/lib/classes/distro.js +18 -4
- package/lib/classes/family/archlinux.js +4 -4
- package/lib/classes/family/debian.d.ts +4 -0
- package/lib/classes/family/debian.js +11 -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.d.ts +6 -0
- package/lib/classes/ovary.js +38 -24
- 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 +13 -16
- package/lib/classes/sources_list.d.ts +27 -0
- package/lib/classes/sources_list.js +103 -0
- package/lib/classes/systemctl.js +1 -1
- package/lib/classes/tailor.d.ts +41 -0
- package/lib/classes/tailor.js +356 -0
- package/lib/classes/tools.js +4 -4
- package/lib/classes/users.js +1 -1
- package/lib/classes/utils.d.ts +10 -0
- package/lib/classes/utils.js +39 -19
- package/lib/classes/xdg.d.ts +2 -1
- package/lib/classes/xdg.js +52 -111
- package/lib/classes/yolk.js +5 -5
- package/lib/commands/adapt.d.ts +0 -1
- package/lib/commands/adapt.js +2 -2
- package/lib/commands/analyze.js +6 -3
- package/lib/commands/calamares.js +4 -4
- package/lib/commands/config.d.ts +0 -1
- package/lib/commands/config.js +12 -7
- package/lib/commands/dad.js +5 -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 +2 -2
- package/lib/commands/install.d.ts +0 -1
- package/lib/commands/install.js +11 -8
- package/lib/commands/kill.js +6 -3
- package/lib/commands/mom.js +2 -2
- package/lib/commands/produce.d.ts +0 -1
- package/lib/commands/produce.js +13 -10
- package/lib/commands/remove.js +5 -2
- package/lib/commands/syncfrom.d.ts +0 -1
- package/lib/commands/syncfrom.js +6 -3
- package/lib/commands/syncto.d.ts +0 -1
- package/lib/commands/syncto.js +7 -4
- package/lib/commands/tools/clean.d.ts +0 -1
- package/lib/commands/tools/clean.js +11 -6
- package/lib/commands/tools/locales.js +12 -4
- package/lib/commands/tools/skel.d.ts +0 -1
- package/lib/commands/tools/skel.js +6 -3
- package/lib/commands/tools/stat.d.ts +0 -1
- package/lib/commands/tools/stat.js +4 -4
- package/lib/commands/tools/yolk.js +7 -4
- package/lib/commands/update.d.ts +0 -2
- package/lib/commands/update.js +12 -58
- package/lib/commands/wardrobe/get.d.ts +17 -0
- package/lib/commands/wardrobe/get.js +43 -0
- package/lib/commands/wardrobe/ironing.d.ts +15 -0
- package/lib/commands/wardrobe/ironing.js +125 -0
- package/lib/commands/wardrobe/list.d.ts +17 -0
- package/lib/commands/wardrobe/list.js +81 -0
- package/lib/commands/wardrobe/show.d.ts +19 -0
- package/lib/commands/wardrobe/show.js +71 -0
- package/lib/commands/wardrobe/wear.d.ts +20 -0
- package/lib/commands/wardrobe/wear.js +79 -0
- package/lib/components/elements/information.js +29 -25
- package/lib/components/elements/steps.js +1 -1
- package/lib/components/elements/title.js +5 -4
- package/lib/components/finished.js +6 -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 +6 -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 +7 -7
- package/lib/interfaces/i-costume.d.ts +27 -0
- package/lib/interfaces/i-costume.js +2 -0
- package/lib/interfaces/i-krill.d.ts +1 -0
- package/lib/interfaces/i-materia.d.ts +32 -0
- package/lib/interfaces/i-materia.js +2 -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 +2 -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 +19 -20
- package/scripts/_eggs +54 -16
- package/scripts/eggs.bash +9 -5
- package/scripts/mom-cli.sh +66 -0
- package/scripts/resy.sh +8 -0
- package/assets/penguins-clinstaller.desktop +0 -24
- package/assets/penguins-minstall.desktop +0 -95
- 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/basket.d.ts +0 -22
- package/lib/classes/basket.js +0 -114
- package/lib/commands/bro.d.ts +0 -14
- package/lib/commands/bro.js +0 -31
package/lib/classes/basket.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* penguins-eggs-v7
|
|
3
|
-
* author: Piero Proietti
|
|
4
|
-
* email: piero.proietti@gmail.com
|
|
5
|
-
* license: MIT
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Basket
|
|
9
|
-
*/
|
|
10
|
-
export default class Basket {
|
|
11
|
-
lastVersion: string;
|
|
12
|
-
constructor();
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
last(): Promise<string>;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @param aptVersion
|
|
20
|
-
*/
|
|
21
|
-
get(): Promise<void>;
|
|
22
|
-
}
|
package/lib/classes/basket.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* penguins-eggs-v7
|
|
4
|
-
* author: Piero Proietti
|
|
5
|
-
* email: piero.proietti@gmail.com
|
|
6
|
-
* license: MIT
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const tslib_1 = require("tslib");
|
|
10
|
-
const fs = require("fs");
|
|
11
|
-
const pacman_1 = (0, tslib_1.__importDefault)(require("../classes/pacman"));
|
|
12
|
-
const utils_1 = (0, tslib_1.__importDefault)(require("./utils"));
|
|
13
|
-
const axios_1 = (0, tslib_1.__importDefault)(require("axios"));
|
|
14
|
-
const node_https_1 = (0, tslib_1.__importDefault)(require("node:https"));
|
|
15
|
-
const agent = new node_https_1.default.Agent({
|
|
16
|
-
rejectUnauthorized: false
|
|
17
|
-
});
|
|
18
|
-
const utils_2 = require("../lib/utils");
|
|
19
|
-
const config_file = '/etc/penguins-eggs.d/eggs.yaml';
|
|
20
|
-
const config_tools = '/etc/penguins-eggs.d/tools.yaml';
|
|
21
|
-
/**
|
|
22
|
-
* Basket
|
|
23
|
-
*/
|
|
24
|
-
class Basket {
|
|
25
|
-
constructor() {
|
|
26
|
-
this.lastVersion = '';
|
|
27
|
-
this.lastVersion = '';
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
async last() {
|
|
33
|
-
if (this.lastVersion === '') {
|
|
34
|
-
const url = 'https://penguins-eggs.net/versions/all/' + utils_1.default.eggsArch() + '/';
|
|
35
|
-
try {
|
|
36
|
-
const res = await axios_1.default.get(url, { httpsAgent: agent });
|
|
37
|
-
// const res = await axios.get(url)
|
|
38
|
-
const data = res.data;
|
|
39
|
-
// Ordino le versioni
|
|
40
|
-
data.sort((a, b) => (a.version < b.version ? 1 : b.version < a.version ? -1 : 0));
|
|
41
|
-
this.lastVersion = data[0].version;
|
|
42
|
-
}
|
|
43
|
-
catch {
|
|
44
|
-
console.log("cannot reach eggs's basket");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return this.lastVersion;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @param aptVersion
|
|
52
|
-
*/
|
|
53
|
-
async get() {
|
|
54
|
-
if (!pacman_1.default.packageIsInstalled('wget')) {
|
|
55
|
-
utils_1.default.titles('Update from internet');
|
|
56
|
-
console.log('To download eggs from basket, You need to install wget!\nUse: sudo apt install wget');
|
|
57
|
-
process.exit(1);
|
|
58
|
-
}
|
|
59
|
-
const url = 'https://penguins-eggs.net/versions/all/' + utils_1.default.eggsArch() + '/';
|
|
60
|
-
const res = await axios_1.default.get(url, { httpsAgent: agent });
|
|
61
|
-
const data = res.data;
|
|
62
|
-
// Ordino le versioni
|
|
63
|
-
data.sort((a, b) => (a.version < b.version ? 1 : b.version < a.version ? -1 : 0));
|
|
64
|
-
const versions = [];
|
|
65
|
-
for (let i = 0; i < data.length && i <= 3; i++) {
|
|
66
|
-
versions.push(data[i]);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* choose the version
|
|
70
|
-
*/
|
|
71
|
-
const inquirer = require('inquirer');
|
|
72
|
-
const choices = ['abort'];
|
|
73
|
-
choices.push(new inquirer.Separator('exit without update.'));
|
|
74
|
-
for (const version of versions) {
|
|
75
|
-
choices.push(version.version);
|
|
76
|
-
choices.push(new inquirer.Separator(version.changelog));
|
|
77
|
-
}
|
|
78
|
-
const questions = [
|
|
79
|
-
{
|
|
80
|
-
type: 'list',
|
|
81
|
-
message: 'select version ',
|
|
82
|
-
name: 'selected',
|
|
83
|
-
choices: choices
|
|
84
|
-
}
|
|
85
|
-
];
|
|
86
|
-
const answer = await inquirer.prompt(questions);
|
|
87
|
-
if (answer.selected === 'abort') {
|
|
88
|
-
process.exit(0);
|
|
89
|
-
}
|
|
90
|
-
const deb = 'eggs_' + answer.selected + '-1_' + utils_1.default.eggsArch() + '.deb';
|
|
91
|
-
const download = 'https://sourceforge.net/projects/penguins-eggs/files/packages-deb/' + deb;
|
|
92
|
-
/**
|
|
93
|
-
* downloading
|
|
94
|
-
*/
|
|
95
|
-
utils_1.default.titles(`downloading ${deb}`);
|
|
96
|
-
if (await utils_1.default.customConfirm(`Want to download ${deb}`)) {
|
|
97
|
-
process.chdir('/tmp');
|
|
98
|
-
if (fs.existsSync(deb)) {
|
|
99
|
-
fs.unlinkSync(deb);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Installing
|
|
103
|
-
*/
|
|
104
|
-
await (0, utils_2.exec)(`wget ${download}`);
|
|
105
|
-
utils_1.default.titles(`install ${deb}`);
|
|
106
|
-
if (await utils_1.default.customConfirm(`Want to install ${deb}`)) {
|
|
107
|
-
await (0, utils_2.exec)('apt-get -y purge eggs > /dev/null');
|
|
108
|
-
await (0, utils_2.exec)('rm /usr/lib/penguins-eggs -rf');
|
|
109
|
-
await (0, utils_2.exec)(`dpkg -i ${deb}`);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
exports.default = Basket;
|
package/lib/commands/bro.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* penguins-eggs-v8
|
|
3
|
-
* author: Piero Proietti
|
|
4
|
-
* email: piero.proietti@gmail.com
|
|
5
|
-
* license: MIT
|
|
6
|
-
*/
|
|
7
|
-
import { Command } from '@oclif/core';
|
|
8
|
-
export default class Bro extends Command {
|
|
9
|
-
static description: string;
|
|
10
|
-
static flags: {
|
|
11
|
-
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
12
|
-
};
|
|
13
|
-
run(): Promise<void>;
|
|
14
|
-
}
|
package/lib/commands/bro.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
/**
|
|
5
|
-
* penguins-eggs-v8
|
|
6
|
-
* author: Piero Proietti
|
|
7
|
-
* email: piero.proietti@gmail.com
|
|
8
|
-
* license: MIT
|
|
9
|
-
*/
|
|
10
|
-
const core_1 = require("@oclif/core");
|
|
11
|
-
const node_path_1 = (0, tslib_1.__importDefault)(require("node:path"));
|
|
12
|
-
const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
|
|
13
|
-
const utils_2 = require("../lib/utils");
|
|
14
|
-
class Bro extends core_1.Command {
|
|
15
|
-
async run() {
|
|
16
|
-
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
17
|
-
const { args, flags } = await this.parse(Bro);
|
|
18
|
-
// No sudo!
|
|
19
|
-
if (process.getuid && process.getuid() === 0) {
|
|
20
|
-
utils_1.default.warning('You must to be kind with your bro, call him without sudo');
|
|
21
|
-
process.exit(0);
|
|
22
|
-
}
|
|
23
|
-
const cmd = node_path_1.default.resolve(__dirname, '../../scripts/bros/waydroid-helper.sh');
|
|
24
|
-
await (0, utils_2.exec)(cmd);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = Bro;
|
|
28
|
-
Bro.description = 'bro: waydroid helper';
|
|
29
|
-
Bro.flags = {
|
|
30
|
-
help: core_1.Flags.help({ char: 'h' })
|
|
31
|
-
};
|