Looks like we can't reproduce the issue or there's a problem in the test case provided.
-
Sencha User
I second the need for better documentation given the big changes that have taken place between Sencha SDK toold and Sencha CMD v3.
Looks like I am getting a tonne of errors half way through running the command
-- sencha app build package -d /path/to/android/assets/www
Is there a new way to do this? I'm trying to figure this out. Am I doing this the correct way? Is there another file I have to edit to get things working?
When I have this figured out I'll update here.
Thanks
-
Sencha Premium Member
Cool, what about different copyto stuff for production/testing/package etc?
-
Sencha User
I've made a bash script if I want a quick build, pretty dirty:
Code:
#!/bin/bash
#
# Build project in $copytoFolder \ $1
# - Useful for preventing caching by changing URL each build
#
[ $# -lt 1 ] && ( echo -e "usage: $0 <buildName>\nusage: $0 <buildName> <optional:dontRemoveOlderBuilds=1>"; ) && exit 0;
#directory variables
appFolder=SenchaTestApp/ #where is the Sencha App relative to current folder
copytoFolder=~/Sites/sench_builds/ #where app should be build
buildName=TestApp #name from app.json
#build app
( [ -z "$2" ] || [ ! $2 -eq 1 ] ) && ( rm -R $copytoFolder; mkdir $copytoFolder; mkdir $copytoFolder$1;)
cd $appFolder
sencha app build -e production
mv build/$buildName/production/* ~/Sites/sench_builds/$1/
#cleanup leftover files from build
rm -R build
rm -R archive
#make apache's listing of sench_builds/index.html mobile-friendly
cd ~/Sites/sench_builds
echo 'HeaderName header.html' > .htaccess
echo '<style type="text/css">ul li { margin-top: 10px;font-size: 1.25em}</style>' > header.html
#show useful info
IP=`ifconfig en0 | grep "inet " | cut -d" " -f2`
echo "App build in: ~/Sites/sench_builds/$1, IP: $IP"
-
Sencha User
Before I forget... for people who just want for files to be put in a different folder, just edit your .sencha/app/sencha.cfg file
and add something like this
Code:
workspace.build.dir=${app.dir}/../build
I like my src folder to be clean
Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.