Blackberry: Improve packaging.

This commit is contained in:
Sacha 2013-12-09 14:42:49 +10:00
parent bd1d4e2d92
commit dd6479c872
2 changed files with 8 additions and 4 deletions

View File

@ -78,7 +78,7 @@ void ProductView::CreateViews() {
float size = entry_.size / (1024.f * 1024.f);
char temp[256];
sprintf(temp, "%s: %f %s", s->T("Size"), size, s->T("MB"));
sprintf(temp, "%s: %.2f %s", s->T("Size"), size, s->T("MB"));
Add(new TextView(temp));
}

10
b.sh
View File

@ -25,7 +25,10 @@ do
BB_PACKAGE=0
;;
--release-package) echo "Blackberry release package enabled"
DEBUG_ARGS=""
if [ ! -f "Blackberry/build.txt" ]; then
echo "1" > "Blackberry/build.txt"
fi
DEBUG_ARGS="-buildId ../Blackberry/build.txt"
;;
--simulator) echo "Simulator mode enabled"
CMAKE_ARGS="-DSIMULATOR=ON ${CMAKE_ARGS}"
@ -56,7 +59,8 @@ mkdir -p build${BUILD_EXT}
pushd build${BUILD_EXT}
cmake $HEADLESS $CMAKE_ARGS .. | (grep -v "^-- " || true)
make -j4 $MAKE_OPT
if [ $BB_PACKAGE -eq 1 ]; then
blackberry-nativepackager -package PPSSPP.bar ../Blackberry/bar-descriptor.xml $DEBUG_ARGS
if [ "$BB_PACKAGE" == "1" ]; then
cp ../Blackberry/bar-descriptor.xml .
blackberry-nativepackager -package PPSSPP.bar bar-descriptor.xml $DEBUG_ARGS
fi
popd