1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-19 20:31:46 +02:00

Tools: Auto-generate Linux icons

This commit is contained in:
Laurent Cozic 2022-11-27 21:01:36 +01:00
parent cb563f7e60
commit fc813715d7
14 changed files with 85 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 B

After

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

View File

@ -46,6 +46,18 @@
"9_2f78dde9d15370ae6adc7d1a0879ed4b_Assets/WebsiteAssets/images/home-top-img-cn-2x.webp_2388_1456__": true,
"9_2f78dde9d15370ae6adc7d1a0879ed4b_Assets/WebsiteAssets/images/home-top-img-cn.png_1205_734__": true,
"9_2f78dde9d15370ae6adc7d1a0879ed4b_Assets/WebsiteAssets/images/home-top-img-cn.webp_1205_734__": true,
"icns_to_icon_set_0b9e402f9c5127284d98d78c7b604123_f69848e65692758af4ac5a05007d5142_e439c7e591993f33597ab18b1dd8f6a8_277cfac6c9cdea99f30717a0e6dadfe2_f69848e65692758af4ac5a05007d5142_ae8c5643f968c45dabe2d663f88d387f_277cfac6c9cdea99f30717a0e6dadfe2_886337d6356057de4c915734b85a87fd_ae8c5643f968c45dabe2d663f88d387f_e8639f50b47004f35aa92edff2142741": true
"icns_to_icon_set_0b9e402f9c5127284d98d78c7b604123_f69848e65692758af4ac5a05007d5142_e439c7e591993f33597ab18b1dd8f6a8_277cfac6c9cdea99f30717a0e6dadfe2_f69848e65692758af4ac5a05007d5142_ae8c5643f968c45dabe2d663f88d387f_277cfac6c9cdea99f30717a0e6dadfe2_886337d6356057de4c915734b85a87fd_ae8c5643f968c45dabe2d663f88d387f_e8639f50b47004f35aa92edff2142741": true,
"2_980ab814dfce30eb15adf0a90d85bb1a_Assets/LinuxIcons/16x16.png_16_16__": true,
"3_a7fed49fa153dc9f4e58f038011bce4d_Assets/LinuxIcons/24x24.png_24_24__": true,
"3_a7fed49fa153dc9f4e58f038011bce4d_Assets/LinuxIcons/32x32.png_32_32__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/48x48.png_48_48__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/72x72.png_72_72__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/96x96.png_96_96__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/128x128.png_128_128__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/144x144.png_144_144__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/256x256.png_256_256__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/512x512.png_512_512__": true,
"7_a088bffc3266cee9cf14dcb575533df2_Assets/LinuxIcons/1024x1024.png_1024_1024__": true,
"icns_to_icon_set_89ddfe84307b49fa96580655b5d7c045_216bb492f34224f24aabacb5f98c3620_fe652082bfb7427cd5c74566ecc24322_ebf1ccaf3f5b77b01ff690b763a411f9_216bb492f34224f24aabacb5f98c3620_950b970a784b14c329e09e78af827a77_ebf1ccaf3f5b77b01ff690b763a411f9_d33dafc8081155149dd1d8c1713bf03f_950b970a784b14c329e09e78af827a77_94949c497e46ed0c67082175f5bb22f8": true
}
}

View File

@ -249,6 +249,77 @@ const operations: Operation[] = [
height: 1024,
},
// ============================================================================
// Linux icons
// ============================================================================
{
source: 2,
dest: 'Assets/LinuxIcons/16x16.png',
width: 16,
height: 16,
},
{
source: 3,
dest: 'Assets/LinuxIcons/24x24.png',
width: 24,
height: 24,
},
{
source: 3,
dest: 'Assets/LinuxIcons/32x32.png',
width: 32,
height: 32,
},
{
source: 7,
dest: 'Assets/LinuxIcons/48x48.png',
width: 48,
height: 48,
},
{
source: 7,
dest: 'Assets/LinuxIcons/72x72.png',
width: 72,
height: 72,
},
{
source: 7,
dest: 'Assets/LinuxIcons/96x96.png',
width: 96,
height: 96,
},
{
source: 7,
dest: 'Assets/LinuxIcons/128x128.png',
width: 128,
height: 128,
},
{
source: 7,
dest: 'Assets/LinuxIcons/144x144.png',
width: 144,
height: 144,
},
{
source: 7,
dest: 'Assets/LinuxIcons/256x256.png',
width: 256,
height: 256,
},
{
source: 7,
dest: 'Assets/LinuxIcons/512x512.png',
width: 512,
height: 512,
},
{
source: 7,
dest: 'Assets/LinuxIcons/1024x1024.png',
width: 1024,
height: 1024,
},
// ============================================================================
// PortableApps launcher
// ============================================================================
@ -428,6 +499,7 @@ async function main() {
const operationKey = await makeOperationKey(source, sourcePath, operation);
if (results.done[operationKey]) {
console.info(`Skipping: ${operation.dest} (Already done)`);
continue;
} else {
console.info(`Processing: ${operation.dest}`);
}