-
Notifications
You must be signed in to change notification settings - Fork 3
/
release.sh
33 lines (25 loc) · 828 Bytes
/
release.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
# Script to release the mod into a zip file.
# Assumes NSIS installer in the new Open RA Mod SDK
# Stop on error.
set -e
ORA_PATH=/sdk/engine
PREFIX=/sdk/mods/yupgi_alert
echo Cleaning $PREFIX
rm -rf $PREFIX
mkdir -p $PREFIX
echo "Copying mod files"
git clone . $PREFIX
# Remove development files
rm -rf $PREFIX/{.git,assets,.gitattributes}
rm -f $PREFIX/{.gitignore,release.sh}
rm -f $PREFIX/rules/*.py
rm -f $PREFIX/*.py
# copy the DLL file and the license.
echo "Copying license info"
cp LICENSE README.md ART_CREDITS.txt $PREFIX
cp $ORA_PATH/OpenRA.Mods.yupgi_alert/{LICENSE.AS,AUTHORS.AS} $PREFIX
# Convert license to dos line ending. (Notepad is so bad and Linux is more forgiving.)
for f in $PREFIX/{LICENSE,README.md,ART_CREDITS.txt,LICENSE.AS,AUTHORS.AS} ; do
todos $f
done
echo Done. Things are at $PREFIX