diff --git a/count_emoji.sh b/count_emoji.sh deleted file mode 100644 index 847bbc1..0000000 --- a/count_emoji.sh +++ /dev/null @@ -1,2 +0,0 @@ -cd "$(dirname "$0")" -find input/ |grep ".svg" |wc -l diff --git a/out_all_slice.sh b/out_all_slice.sh index 6c34757..3bd3587 100644 --- a/out_all_slice.sh +++ b/out_all_slice.sh @@ -1,2 +1,2 @@ cd "$(dirname "$0")" -./orxporter/orxport.py -m manifest/out.orx -i ../input -q 32x32 -o out/all_slice -r resvg -f %f/%s -t 8 -F svg,png-32,pngc-32,jxl-32,webp-32 -e cat=food_drink_herbs +./orxporter/orxport.py -m manifest/out.orx -i ../input -q 32x32 -o out/all_slice -r resvg -f %f/%s -t 8 -F svg,png-128,pngc-128,jxl-128,webp-128 -e cat=food_drink_herbs diff --git a/out_final_slice.sh b/out_final_slice.sh index 6f6514a..44372bd 100644 --- a/out_final_slice.sh +++ b/out_final_slice.sh @@ -1,37 +1,43 @@ -#!/bin/bash -#!/usr/bin/env python3 - cd "$(dirname "$0")" version=2022.12 render_threads=12 base_dir="out/test-pkg" +mkdir -p $base_dir && + # get orxporter to do its thing echo "creating images..." -mkdir -p $base_dir && + + + ./orxporter/orxport.py -m manifest/out.orx -i ../input -C cache -q 32x32 -r resvg -o $base_dir/short-%f -f %d/%s -t ${render_threads} -F pngc-32 && +./orxporter/orxport.py -m manifest/out.orx -j $base_dir/mtnt_${version}_data.json && + # packages! # ---------------------------------------------------------------------- echo "compiling package folders..." - -./orxporter/orxport.py -m manifest/out.orx -j out/test-pkg/mtnt_${version}_data.json - make_pkg () { - echo "compiling package: ${1}" + echo "compiling zip package: ${1}" pkg="mtnt_${version}_${2}" out_folder="${base_dir}/${pkg}" + # copy texts into the out folder + # move emoji into the out folder/emoji cp -R texts $out_folder && - mv -v "${base_dir}/${1}" "$out_folder/emoji" - + mv "${base_dir}/${1}" "$out_folder/emoji" + + # go into the destination folder, put the contents + # into a zip of the same name, go back and delete + # the remaining empty folder cd "${out_folder}" zip -r -q -m "../${pkg}.zip" "." - cd - + cd - > /dev/null # shhh dont tell anyone it's our secret + rm -d "${out_folder}" } make_pkg short-pngc-32 short_png32