annotate tools/export_steam_assets.sh @ 1121:21690a5aa280

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