tauricon.config.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // Copyright 2019-2021 Tauri Programme within The Commons Conservancy
  2. // SPDX-License-Identifier: Apache-2.0
  3. // SPDX-License-Identifier: MIT
  4. export const options = {
  5. // folder determines in which path to drop the generated file
  6. // prefix is the first part of the generated file's name
  7. // infix adds e.g. '44x44' based on the size in sizes to the generated file's name
  8. // suffix adds a file-ending to the generated file's name
  9. // sizes determines the pixel width and height to use
  10. background_color: '#000074',
  11. theme_color: '#02aa9b',
  12. sharp: 'kernel: sharp.kernel.lanczos3', // one of [nearest|cubic|lanczos2|lanczos3]
  13. minify: {
  14. batch: false,
  15. overwrite: true,
  16. available: ['optipng', 'zopfli'],
  17. type: 'optipng',
  18. optipngOptions: {
  19. optimizationLevel: 4,
  20. paletteReduction: true
  21. },
  22. zopfliOptions: {
  23. transparent: true,
  24. more: true
  25. }
  26. },
  27. splash_type: 'generate',
  28. tauri: {
  29. linux: {
  30. folder: '.',
  31. prefix: '',
  32. infix: true,
  33. suffix: '.png',
  34. sizes: [32, 128]
  35. },
  36. linux_2x: {
  37. folder: '.',
  38. prefix: '128x128@2x',
  39. infix: false,
  40. suffix: '.png',
  41. sizes: [256]
  42. },
  43. defaults: {
  44. folder: '.',
  45. prefix: 'icon',
  46. infix: false,
  47. suffix: '.png',
  48. sizes: [512]
  49. },
  50. appx_logo: {
  51. folder: '.',
  52. prefix: 'StoreLogo',
  53. infix: false,
  54. suffix: '.png',
  55. sizes: [50]
  56. },
  57. appx_square: {
  58. folder: '.',
  59. prefix: 'Square',
  60. infix: true,
  61. suffix: 'Logo.png',
  62. sizes: [30, 44, 71, 89, 107, 142, 150, 284, 310]
  63. }
  64. // todo: look at capacitor and cordova for insight into what icons
  65. // we need for those distribution targets
  66. }
  67. }