out_final_slice.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. cd "$(dirname "$0")"
  2. version=2024.06
  3. render_threads=12
  4. base_dir="out/test-pkg"
  5. mkdir -p $base_dir &&
  6. # get orxporter to do its thing
  7. echo "creating images..."
  8. ./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 &&
  9. ./orxporter/orxport.py -m manifest/out.orx -j $base_dir/mtnt_${version}_data.json &&
  10. # packages!
  11. # ----------------------------------------------------------------------
  12. echo "compiling package folders..."
  13. make_pkg () {
  14. echo "compiling zip package: ${1}"
  15. pkg="mtnt_${version}_${2}"
  16. out_folder="${base_dir}/${pkg}"
  17. # copy texts into the out folder
  18. # move emoji into the out folder/emoji
  19. cp -R texts $out_folder &&
  20. mv "${base_dir}/${1}" "$out_folder/emoji"
  21. # go into the destination folder, put the contents
  22. # into a zip of the same name, go back and delete
  23. # the remaining empty folder
  24. cd "${out_folder}"
  25. zip -r -q -m "../${pkg}.zip" "."
  26. cd - > /dev/null # shhh dont tell anyone it's our secret
  27. rm -d "${out_folder}"
  28. }
  29. make_pkg short-pngc-32 short_png32
  30. echo "Mutant Standard export complete!"