UNPKG

penguins-eggs

Version:

A remaster system tool, compatible with Arch, Debian, Devuan, Ubuntu and others

42 lines (41 loc) 1.85 kB
/** * ./src/classes/ovary.d/finished.ts * penguins-eggs v.10.0.0 / ecmascript 2020 * author: Piero Proietti * email: piero.proietti@gmail.com * license: MIT */ import chalk from 'chalk'; // interfaces // libraries // classes import Utils from './../utils.js'; // _dirname /** * finished = show the results * @param scriptOnly */ export function finished(scriptOnly = false) { Utils.titles('produce'); if (scriptOnly) { console.log('eggs is finished!\n\nYou can find the scripts to build iso: ' + chalk.cyanBright(this.settings.isoFilename) + '\nin the ovarium: ' + chalk.cyanBright(this.settings.config.snapshot_dir) + '.'); console.log('usage'); console.log(chalk.cyanBright(`cd ${this.settings.config.snapshot_dir}`)); console.log(chalk.cyanBright('sudo ./bind')); console.log('Make all yours modifications in the directories filesystem.squashfs and iso.'); console.log('After when you are ready:'); console.log(chalk.cyanBright('sudo ./mksquashfs')); console.log(chalk.cyanBright('sudo ./mkisofs')); console.log(chalk.cyanBright('sudo ./ubind')); console.log('happy hacking!'); } else { console.log('eggs is finished!\n\nYou can find the file iso: ' + chalk.cyanBright(this.settings.isoFilename) + '\nin the nest: ' + chalk.cyanBright(this.settings.config.snapshot_dir) + '.'); } console.log(); console.log('Remember, on liveCD user = ' + chalk.cyanBright(this.settings.config.user_opt) + '/' + chalk.cyanBright(this.settings.config.user_opt_passwd)); console.log(' root = ' + chalk.cyanBright('root') + '/' + chalk.cyanBright(this.settings.config.root_passwd)); if (this.genisoimage) { console.log(`Note: format UDF, generated by ${chalk.cyanBright('genisoimage')}`); } }