Rev 559 |
Rev 620 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#! /usr/bin/bash
VERSION=$(cat CurrVersion.txt)
echo "Vesrion = "$VERSION
HOME=$(pwd)
DIST=$HOME/dist
TMP=$DIST/tmp
HEXFILE=$HOME/Executables/FlightCtrl/VibrationTest-FC.hex
echo Python Code...
mkdir $DIST/VibrationTest -p
cd $DIST/VibrationTest
cp $HOME/VibrationTest/*.py ./
cp $HEXFILE ./
echo Compiled Python Code...
mkdir $TMP -p
cd $TMP
rm -rf
cp $HOME/VibrationTest/*.py ./
echo "from distutils.core import setup" > ./setup.py
echo "import py2exe" >> ./setup.py
echo "setup(console=['VibrationTest.py'])" >> ./setup.py
python setup.py py2exe > /dev/null
mkdir $DIST/VibrationTestExe -p
cd $DIST/VibrationTestExe
cp $TMP/dist/* ./ -a
cp $HEXFILE ./
echo Cleanup...
rm $TMP -rf
echo Zipping...
cd $DIST
atool -a VibrationTest_${VERSION}.zip VibrationTest > /dev/null
atool -a VibrationTestExe_${VERSION}.zip VibrationTestExe > /dev/null