forked from effekseer/Effekseer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_tool.sh
64 lines (44 loc) · 1.21 KB
/
release_tool.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
set -e
set +x
if [ "$RDIR" = "" ];
then
export RDIR="$PWD/EffekseerTool"
fi
if [ "`which robocopy`" = "" ];
then
function robocopy {
from=$1
to=$2
include=""
echo "Copy from $from to $to"
args=(${@:3})
unset "args[${#args[@]}-1]"
for i in "${args[@]}";
do
include="$include --include=\"$i\""
echo "Include $i"
done
cdir=$PWD
cd $from
rsync -av --exclude=\"*\" $include . $to
cd $cdir
}
fi
rm -Rf $RDIR || true
mkdir -p $RDIR
echo Compile Editor
echo Copy application
cp -Rv Dev/release $RDIR/Tool
rm -R $RDIR/Tool/linux-x64 || true
rm -R $RDIR/Tool/publish || true
echo Sample
mkdir -p $RDIR/Sample
robocopy Release/Sample $RDIR/Sample *.efkproj *.efkmodel *.efkmat *.efkefc *.txt *.png *.mqo *.fbx /S
robocopy ResourceData/samples $RDIR/Sample *.efkproj *.efkmodel *.efkmat *.efkefc *.txt *.png *.mqo *.fbx /S
echo Readme
cp -v readme_tool_win.txt $RDIR/readme.txt
cp -v docs/readme_sample.txt $RDIR/Sample/readme.txt
cp -v docs/Help_Ja.html $RDIR/Help_Ja.html
cp -v docs/Help_En.html $RDIR/Help_En.html
cp -v LICENSE_TOOL $RDIR/LICENSE_TOOL