Mercurial > games > semicongine
comparison tools/export_steam_assets.sh @ 1086:4fc591930015
add: steam-assets tooling
author | sam <sam@basx.dev> |
---|---|
date | Fri, 05 Apr 2024 21:41:15 +0700 |
parents | |
children | d01d318c90f0 |
comparison
equal
deleted
inserted
replaced
1085:15d6eead8e73 | 1086:4fc591930015 |
---|---|
1 # krita --new-image RGBA,U8,200,200 | |
2 | |
3 # CAPSULES | |
4 # header_capsule: 460x215, png | |
5 # small_capsule: 231x87, png | |
6 # main_capsule: 616x353, png | |
7 # vertical_capsule: 374x448, png | |
8 # library_capsule: 600x900, png | |
9 | |
10 # library_header: 460x215, png, same as header capsule | |
11 # library_hero: 3840x1240, png, no text | |
12 # library_logo: 1280x720, png, only logo text, transparent background | |
13 | |
14 | |
15 # ICONS | |
16 # Community Icon: 184x184, jpg, 1 | |
17 # Client Image: 16x16, tga, 1 | |
18 # Client Icon Windows: 32x32, ico, 1 | |
19 # Client Icon MacOS: 32x32, icns, 1 | |
20 # Client Icon Linux: 16x16,24x24,32x32,64x64,96x96, zip, 1 | |
21 | |
22 # OTHER | |
23 # trailer: mp4, 1920x1080 60Hz, 5000+ Kbps | |
24 # screenshots: 5 images, 1920x1080, png | |
25 | |
26 OUTPUT_DIR=$PWD/$1 | |
27 INPUT_DIR=$2 | |
28 | |
29 rm -rf $OUTPUT_DIR | |
30 mkdir -p $OUTPUT_DIR | |
31 | |
32 # capsule images | |
33 krita --export --export-filename $OUTPUT_DIR/header_capsule.png $INPUT_DIR/header_capsule.kra | |
34 krita --export --export-filename $OUTPUT_DIR/small_capsule.png $INPUT_DIR/small_capsule.kra | |
35 krita --export --export-filename $OUTPUT_DIR/main_capsule.png $INPUT_DIR/main_capsule.kra | |
36 krita --export --export-filename $OUTPUT_DIR/vertical_capsule.png $INPUT_DIR/vertical_capsule.kra | |
37 krita --export --export-filename $OUTPUT_DIR/library_capsule.png $INPUT_DIR/library_capsule.kra | |
38 | |
39 # library images | |
40 krita --export --export-filename $OUTPUT_DIR/library_header.png $INPUT_DIR/library_header.kra | |
41 krita --export --export-filename $OUTPUT_DIR/library_hero.png $INPUT_DIR/library_hero.kra | |
42 krita --export --export-filename $OUTPUT_DIR/library_logo.png $INPUT_DIR/library_logo.kra | |
43 | |
44 # community image | |
45 krita --export --export-filename $OUTPUT_DIR/community_icon.png $INPUT_DIR/icon.kra | |
46 convert $OUTPUT_DIR/community_icon.png $OUTPUT_DIR/community_icon.jpg | |
47 | |
48 # client images | |
49 convert $OUTPUT_DIR/community_icon.png -resize 16x16 $OUTPUT_DIR/client_image.tga | |
50 convert $OUTPUT_DIR/community_icon.png -resize 32x32 $OUTPUT_DIR/client_icon_windows.ico | |
51 convert $OUTPUT_DIR/community_icon.png -resize 32x32 $OUTPUT_DIR/client_icon_macos.icns | |
52 convert $OUTPUT_DIR/community_icon.png -resize 16x16 $OUTPUT_DIR/client_icon_linux_16.png | |
53 convert $OUTPUT_DIR/community_icon.png -resize 24x24 $OUTPUT_DIR/client_icon_linux_24.png | |
54 convert $OUTPUT_DIR/community_icon.png -resize 32x32 $OUTPUT_DIR/client_icon_linux_32.png | |
55 convert $OUTPUT_DIR/community_icon.png -resize 64x64 $OUTPUT_DIR/client_icon_linux_64.png | |
56 convert $OUTPUT_DIR/community_icon.png -resize 96x96 $OUTPUT_DIR/client_icon_linux_96.png | |
57 zip $OUTPUT_DIR/client_icon_linux.zip $OUTPUT_DIR/client_icon_linux_*.png | |
58 | |
59 # only used temporary | |
60 rm $OUTPUT_DIR/client_icon_linux_*.png | |
61 rm $OUTPUT_DIR/community_icon.png |