mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-23 18:53:33 +03:00
39ce652329
* chore(monorepo): cleanup * fix(tauri-cli): build errors * fix(tauri:build.rs): dont' panic if env missing * fix(finalize): setup for crates * npm publish on release actual publish currently disabled * cargo publish on release actual publish currently disabled * update PR tests for new folder structure * doesn't like the period on job name? * fail on cargo warnings otherwise we would assume green arrow is all good * green on warnings for now
93 lines
1.9 KiB
JavaScript
93 lines
1.9 KiB
JavaScript
exports.options = {
|
|
// folder determines in which path to drop the generated file
|
|
// prefix is the first part of the generated file's name
|
|
// infix adds e.g. '44x44' based on the size in sizes to the generated file's name
|
|
// suffix adds a file-ending to the generated file's name
|
|
// sizes determines the pixel width and height to use
|
|
background_color: '#000074',
|
|
theme_color: '#02aa9b',
|
|
sharp: 'kernel: sharp.kernel.lanczos3', // one of [nearest|cubic|lanczos2|lanczos3]
|
|
minify: {
|
|
batch: false,
|
|
overwrite: true,
|
|
available: ['pngquant', 'optipng', 'zopfli'],
|
|
type: 'pngquant',
|
|
pngcrushOptions: {
|
|
reduce: true
|
|
},
|
|
pngquantOptions: {
|
|
quality: [0.6, 0.8],
|
|
floyd: 0.1, // 0.1 - 1
|
|
speed: 10 // 1 - 10
|
|
},
|
|
optipngOptions: {
|
|
optimizationLevel: 4,
|
|
bitDepthReduction: true,
|
|
colorTypeReduction: true,
|
|
paletteReduction: true
|
|
},
|
|
zopfliOptions: {
|
|
transparent: true,
|
|
more: true
|
|
}
|
|
},
|
|
splash_type: 'generate',
|
|
tauri: {
|
|
linux: {
|
|
folder: '.',
|
|
prefix: '',
|
|
infix: true,
|
|
suffix: '.png',
|
|
sizes: [
|
|
32, 128
|
|
]
|
|
},
|
|
linux_2x: {
|
|
folder: '.',
|
|
prefix: '128x128@2x',
|
|
infix: false,
|
|
suffix: '.png',
|
|
sizes: [
|
|
256
|
|
]
|
|
},
|
|
defaults: {
|
|
folder: '.',
|
|
prefix: 'icon',
|
|
infix: false,
|
|
suffix: '.png',
|
|
sizes: [
|
|
512
|
|
]
|
|
},
|
|
appx_logo: {
|
|
folder: '.',
|
|
prefix: 'StoreLogo',
|
|
infix: false,
|
|
suffix: '.png',
|
|
sizes: [
|
|
50
|
|
]
|
|
},
|
|
appx_square: {
|
|
folder: '.',
|
|
prefix: 'Square',
|
|
infix: true,
|
|
suffix: 'Logo.png',
|
|
sizes: [
|
|
30,
|
|
44,
|
|
71,
|
|
89,
|
|
107,
|
|
142,
|
|
150,
|
|
284,
|
|
310
|
|
]
|
|
}
|
|
// todo: look at capacitor and cordova for insight into what icons
|
|
// we need for those distribution targets
|
|
}
|
|
}
|