tauricon.config.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. exports.options = {
  2. // folder determines in which path to drop the generated file
  3. // prefix is the first part of the generated file's name
  4. // infix adds e.g. '44x44' based on the size in sizes to the generated file's name
  5. // suffix adds a file-ending to the generated file's name
  6. // sizes determines the pixel width and height to use
  7. background_color: '#000074',
  8. theme_color: '#02aa9b',
  9. sharp: 'kernel: sharp.kernel.lanczos3', // one of [nearest|cubic|lanczos2|lanczos3]
  10. minify: {
  11. batch: false,
  12. overwrite: true,
  13. available: ['pngquant', 'optipng', 'zopfli'],
  14. type: 'pngquant',
  15. pngcrushOptions: {
  16. reduce: true
  17. },
  18. pngquantOptions: {
  19. quality: [0.6, 0.8],
  20. floyd: 0.1, // 0.1 - 1
  21. speed: 10 // 1 - 10
  22. },
  23. optipngOptions: {
  24. optimizationLevel: 4,
  25. bitDepthReduction: true,
  26. colorTypeReduction: true,
  27. paletteReduction: true
  28. },
  29. zopfliOptions: {
  30. transparent: true,
  31. more: true
  32. }
  33. },
  34. splash_type: 'generate',
  35. tauri: {
  36. linux: {
  37. folder: '.',
  38. prefix: '',
  39. infix: true,
  40. suffix: '.png',
  41. sizes: [
  42. 32, 128
  43. ]
  44. },
  45. linux_2x: {
  46. folder: '.',
  47. prefix: '128x128@2x',
  48. infix: false,
  49. suffix: '.png',
  50. sizes: [
  51. 256
  52. ]
  53. },
  54. defaults: {
  55. folder: '.',
  56. prefix: 'icon',
  57. infix: false,
  58. suffix: '.png',
  59. sizes: [
  60. 512
  61. ]
  62. },
  63. appx_logo: {
  64. folder: '.',
  65. prefix: 'StoreLogo',
  66. infix: false,
  67. suffix: '.png',
  68. sizes: [
  69. 50
  70. ]
  71. },
  72. appx_square: {
  73. folder: '.',
  74. prefix: 'Square',
  75. infix: true,
  76. suffix: 'Logo.png',
  77. sizes: [
  78. 30,
  79. 44,
  80. 71,
  81. 89,
  82. 107,
  83. 142,
  84. 150,
  85. 284,
  86. 310
  87. ]
  88. }
  89. // todo: look at capacitor and cordova for insight into what icons
  90. // we need for those distribution targets
  91. }
  92. }