Mercurial > games > semicongine
annotate tools/export_steam_assets.sh @ 1317:c5a23e910fea
add: floorMod for vec/vec operations
author | sam <sam@basx.dev> |
---|---|
date | Mon, 12 Aug 2024 21:33:08 +0700 |
parents | d01d318c90f0 |
children |
rev | line source |
---|---|
977 | 1 # krita --new-image RGBA,U8,200,200 |
978
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
2 set -e |
977 | 3 |
4 # CAPSULES | |
5 # header_capsule: 460x215, png | |
6 # small_capsule: 231x87, png | |
7 # main_capsule: 616x353, png | |
8 # vertical_capsule: 374x448, png | |
9 # library_capsule: 600x900, png | |
10 | |
11 # library_header: 460x215, png, same as header capsule | |
12 # library_hero: 3840x1240, png, no text | |
13 # library_logo: 1280x720, png, only logo text, transparent background | |
14 | |
15 | |
16 # ICONS | |
17 # Community Icon: 184x184, jpg, 1 | |
18 # Client Image: 16x16, tga, 1 | |
19 # Client Icon Windows: 32x32, ico, 1 | |
20 # Client Icon MacOS: 32x32, icns, 1 | |
21 # Client Icon Linux: 16x16,24x24,32x32,64x64,96x96, zip, 1 | |
22 | |
23 # OTHER | |
24 # trailer: mp4, 1920x1080 60Hz, 5000+ Kbps | |
25 # screenshots: 5 images, 1920x1080, png | |
26 | |
978
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
27 if [ "$#" -ne 2 ]; then |
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
28 echo Usage: $0 '<source-directory> <output-directory>' |
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
29 exit 1 |
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
30 fi |
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
31 |
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
32 INPUT_DIR=$1 |
d01d318c90f0
did: small improvment to steam asset templats
sam <sam@basx.dev>
parents:
977
diff
changeset
|
33 OUTPUT_DIR=$2 |
977 | 34 |
35 rm -rf $OUTPUT_DIR | |
36 mkdir -p $OUTPUT_DIR | |
37 | |
38 # capsule images | |
39 krita --export --export-filename $OUTPUT_DIR/header_capsule.png $INPUT_DIR/header_capsule.kra | |
40 krita --export --export-filename $OUTPUT_DIR/small_capsule.png $INPUT_DIR/small_capsule.kra | |
41 krita --export --export-filename $OUTPUT_DIR/main_capsule.png $INPUT_DIR/main_capsule.kra | |
42 krita --export --export-filename $OUTPUT_DIR/vertical_capsule.png $INPUT_DIR/vertical_capsule.kra | |
43 krita --export --export-filename $OUTPUT_DIR/library_capsule.png $INPUT_DIR/library_capsule.kra | |
44 | |
45 # library images | |
46 krita --export --export-filename $OUTPUT_DIR/library_header.png $INPUT_DIR/library_header.kra | |
47 krita --export --export-filename $OUTPUT_DIR/library_hero.png $INPUT_DIR/library_hero.kra | |
48 krita --export --export-filename $OUTPUT_DIR/library_logo.png $INPUT_DIR/library_logo.kra | |
49 | |
50 # community image | |
51 krita --export --export-filename $OUTPUT_DIR/community_icon.png $INPUT_DIR/icon.kra | |
52 convert $OUTPUT_DIR/community_icon.png $OUTPUT_DIR/community_icon.jpg | |
53 | |
54 # client images | |
55 convert $OUTPUT_DIR/community_icon.png -resize 16x16 $OUTPUT_DIR/client_image.tga | |
56 convert $OUTPUT_DIR/community_icon.png -resize 32x32 $OUTPUT_DIR/client_icon_windows.ico | |
57 convert $OUTPUT_DIR/community_icon.png -resize 32x32 $OUTPUT_DIR/client_icon_macos.icns | |
58 convert $OUTPUT_DIR/community_icon.png -resize 16x16 $OUTPUT_DIR/client_icon_linux_16.png | |
59 convert $OUTPUT_DIR/community_icon.png -resize 24x24 $OUTPUT_DIR/client_icon_linux_24.png | |
60 convert $OUTPUT_DIR/community_icon.png -resize 32x32 $OUTPUT_DIR/client_icon_linux_32.png | |
61 convert $OUTPUT_DIR/community_icon.png -resize 64x64 $OUTPUT_DIR/client_icon_linux_64.png | |
62 convert $OUTPUT_DIR/community_icon.png -resize 96x96 $OUTPUT_DIR/client_icon_linux_96.png | |
63 zip $OUTPUT_DIR/client_icon_linux.zip $OUTPUT_DIR/client_icon_linux_*.png | |
64 | |
65 # only used temporary | |
66 rm $OUTPUT_DIR/client_icon_linux_*.png | |
67 rm $OUTPUT_DIR/community_icon.png |