Revision 2241 tmp/org.txm.setups/BuildWin64bit.sh

BuildWin64bit.sh (revision 2241)
2 2
STEP=$1
3 3
ARCH="64"
4 4
ARCHCODE="x86_64"
5
APP="TXM_${VERSION}_Win${ARCH}_installer"
5
TIMESTAMP=`date +"%Y-%m-%d"`
6
APP="TXM_${VERSION}_${TIMESTAMP}_Win${ARCH}_installer"
6 7

  
7 8
echo "BUILDING $APP..."
8 9
echo "Make dir"
......
70 71
	exit 1;
71 72
fi
72 73

  
73
echo "set TXMVERSION in build files"
74
find "$APP/txm.nsi" -type f -exec sed -i "s/TXMVERSION/${VERSION}/g" {} \;
74
echo "set TXMVERSION and TIMESTAMPin build files"
75
find "$APP/txm.nsi" -type f -exec sed -i "s/TXMVERSION/${VERSION}_${TIMESTAMP}/g" {} \;
75 76

  
76 77
echo "build executable"
77 78
wine nsis/makensis.exe -V1 ${APP}/txm.nsi 2> logs64
78 79

  
79 80
if [ ! -e "${APP}.exe" ]; then
80 81
	echo "** ${APP}.exe : not builded"
81
	gedit logs64
82 82
	exit 1;
83 83
fi
84 84

  

Also available in: Unified diff