Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Could you please add local packaging?

Given all the troubles with the cloud and the fact that not everybody has constant access to the internet at all times:

Is there any chance that you add local packaging (network and bundled), at least for the host platform?

— asked March 30th 2010 by Dieter Wimberger
  • desktop

4 Answers

  • What you need to package locally on Windows:

    1) WiX (http://wix.sourceforge.net), v3

    2) Probably a newer Version of the .Net Framework (if the WiX executables throw an error)

    3) Find the right paths: %APPDATA% does not seem to be the right place at least on my XP I finally encountered the sdk in "All Users"

    4) Fix hardcoded paths in wix.py if you are on Language Versions other than English (because Program Files is actually named different). It would be better to use %WIX% which seems to be added by the WiX Installation.

    5) Work with a batch file to avoid messing up the paths. e.g. (%1 is your project directory, %2 is the directory where you want the package to be prepared and assembled; use something different, like a "install" subdirectory, because the script will copy over all your project files to this destination and you don't want it to overwrite your original "source" project files):

    @echo off
    set TSRC="C:\Documents and Settings\All Users\Program Data\Titanium"
    set TSDK=%TSRC%\sdk\win32\1.0.0
    set PYTHON_DIR=%TSRC%\modules\win32\python\1.0.0
    %PYTHON_DIR%\python.exe %TSDK%\tibuild.py -a %TSDK% -t bundle -d %2 -s %TSRC%  %1

    Hope this helps other people to get started faster, as long as you can find the TSRC directory :)

    Also, maybe this can be hacked into the Titanium Developer, because a local packaging button would be really much better than messing with this using the command line.

    PS: Your Q&A software shouldn't touch the source section (i.e. backslash escaping) and also note that editing swallows the escapes……

    — answered March 31st 2010 by Dieter Wimberger
  • please give us the button!!!

    the desktop packaging guide seems to be buggy/uncomplete for windows - i doesn't got it working.

    — answered July 9th 2010 by Kay Strobach
    • I second that!

      I'm developing on Linux and everytime I'm ready to build a new package I got lots (for hours) of "Read timed out" before it get finally packaged.

      Please, add the package locally button!

      — commented October 24th 2011 by Allan Brazute
    • Or you guys can add more memory or something to your packaging server so it work properly! :D

      — commented October 24th 2011 by Allan Brazute
    • Nobody is stopping your from building locally.

      When was the last time you tried to package, did you get errors recently?

      — commented October 24th 2011 by Alan DuBoff
    • Packaging on your own

      — commented October 24th 2011 by Alan DuBoff
  • Martin:

    Sorry if it wasn't expressed well enough but what I really meant was a button in the Developer App that does the job.

    And honestly, have you ever tried to follow that document, and manage to package something on Windows for example?


    — answered March 30th 2010 by Dieter Wimberger
  • Sure, this already exists: http://developer.appcelerator.com/doc/desktop/packaging

    — answered March 30th 2010 by Martin Robinson
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.