Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #11
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Vote Rating
    3
    matfin is on a distinguished road

      0  

    Default


    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

  2. #12
    Sencha Premium Member intellix's Avatar
    Join Date
    Mar 2012
    Location
    UK + Malta
    Posts
    263
    Vote Rating
    18
    intellix will become famous soon enough

      0  

    Default


    Cool, what about different copyto stuff for production/testing/package etc?

  3. #13
    Sencha User
    Join Date
    Sep 2012
    Posts
    65
    Vote Rating
    1
    warrean is on a distinguished road

      0  

    Default


    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"

  4. #14
    Sencha User interfasys's Avatar
    Join Date
    Mar 2011
    Location
    UK & Switzerland
    Posts
    125
    Vote Rating
    1
    interfasys is on a distinguished road

      0  

    Default


    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.