Penguin's eggs are generated and new birds are ready to fly... https://penguins-eggs.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

branding.ts 2.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * penguins-eggs: buster/branding.ts
  3. *
  4. * author: Piero Proietti
  5. * mail: piero.proietti@gmail.com
  6. */
  7. import yaml = require('js-yaml')
  8. import { IRemix, IDistro } from '../../interfaces'
  9. import Ovary from '../ovary'
  10. /**
  11. *
  12. * @param remix
  13. * @param oses
  14. * @param verbose
  15. */
  16. export function branding(remix: IRemix, distro: IDistro, brand = '', verbose = false): string {
  17. const versionLike: string = distro.versionLike
  18. const homeUrl: string = distro.homeUrl
  19. const supportUrl: string = distro.supportUrl
  20. const bugReportUrl: string = distro.bugReportUrl
  21. const productName = `Debian`
  22. const shortProductName = remix.name
  23. const version = remix.versionNumber + ' ( ' + remix.versionName + ')'
  24. const shortVersion = remix.versionNumber
  25. const versionedName = remix.name
  26. const shortVersionedName = remix.versionName
  27. const bootloaderEntryName = productName
  28. const productUrl = homeUrl
  29. const releaseNotesUrl = 'https://github.com/pieroproietti/penguins-eggs'
  30. const productLogo = `${remix.branding}-logo.png`
  31. const productIcon = `${remix.branding}-logo.png`
  32. const productWelcome = 'welcome.png'
  33. const slideshow = 'show.qml'
  34. const branding = {
  35. componentName: remix.branding,
  36. welcomeStyleCalamares: true,
  37. strings: {
  38. productName: productName,
  39. shortProductName: shortProductName,
  40. version: version,
  41. shortVersion: shortVersion,
  42. versionedName: versionedName,
  43. shortVersionedName: shortVersionedName,
  44. bootloaderEntryName: bootloaderEntryName,
  45. productUrl: productUrl,
  46. supportUrl: supportUrl,
  47. releaseNotesUrl: releaseNotesUrl
  48. },
  49. images: {
  50. productLogo: productLogo,
  51. productIcon: productIcon,
  52. productWelcome: productWelcome
  53. },
  54. slideshowAPI: 1,
  55. slideshow: slideshow,
  56. style: {
  57. sidebarBackground: '#2c3133',
  58. sidebarText: '#FFFFFF',
  59. sidebarTextSelect: '#4d7079'
  60. }
  61. }
  62. //console.log(branding)
  63. return yaml.safeDump(branding)
  64. }