UserLAnd-Assets-Support/scripts/installArch.sh
2019-02-11 13:39:46 -08:00

28 lines
597 B
Bash
Executable File

#! /bin/bash
export ARCH_DIR=output/$1
export INSTALL_DIR=assets/$1
case "$1" in
x86)
cp $ARCH_DIR/* $INSTALL_DIR/
;;
arm)
cp $ARCH_DIR/* $INSTALL_DIR/
;;
x86_64)
cp $ARCH_DIR/* $INSTALL_DIR/
;;
arm64)
cp $ARCH_DIR/* $INSTALL_DIR/
;;
all)
;;
*)
echo "unsupported architecture"
exit
;;
esac
rm -f $INSTALL_DIR/assets.txt; for f in $(ls $INSTALL_DIR); do echo "$f $(date +%s -r $INSTALL_DIR/$f) $(md5sum $INSTALL_DIR/$f | awk '{ print $1 }')" >> $INSTALL_DIR/assets.txt; done