tahoma2d/toonz/installer/osx/scripts/postinstall-script.sh
2023-10-12 09:35:47 -04:00

25 lines
509 B
Bash

#!/bin/sh
INIFILE=/Applications/Tahoma2D.app/Contents/Resources/SystemVar.ini
STUFF_DIR="/Applications/Tahoma2D/Tahoma2D_stuff"
if [ -f tahoma2dstuffdirloc ]
then
STUFF_DIR=`cat tahoma2dstuffdirloc`
fi
tar xzvf stuff.tar.bz2
if [ ! -f $STUFF_DIR ]
then
mkdir -p $STUFF_DIR
fi
cp -rf stuff/* $STUFF_DIR/
rm -rf stuff
chmod -R 777 $STUFF_DIR
xxx=`echo $STUFF_DIR | sed -e"s/\//|/g"`
sed -e"s/.Applications.*Tahoma2D_stuff/$xxx/" $INIFILE | sed -e"s/|/\//g" >| temp.ini
sudo mv -f temp.ini $INIFILE