Packaging TideSDK apps - LemontechSA/TideSDK GitHub Wiki
Note: TideSDK Developer is released and allows you to package locally through a graphical user interface. To package from command line, use tidebuilder.py in the SDK:
tidebuilder.py --help
...explains most of it:
Usage: tidebuilder.py [options] appdir
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-d FILE, --dest=FILE destination folder for output
-v, --verbose turn on verbose logging
-o PLATFORM, --os=PLATFORM
platform if different than osx
-t TYPE, --type=TYPE package type: network or bundle
-l FILE, --license=FILE
location of application license
-n, --noinstall don't include installer dialog in packaged app
-r, --run run the packaged app after building
-p PACKAGE, --package=PACKAGE
build the installation package
-i IGNORE_PATTERNS, --ignore=IGNORE_PATTERNS
patterns to ignore when packaging, seperated by comma
(default: .git,.svn,.gitignore,.cvsignore)
-j, --jsobfuscate obfuscate the javascript code within project
-s FILE, --src=FILE source folder which contains dist files
-a FILE, --assets=FILE
location of platform assets
--appstore Package for app store submission
Example build commands
Assuming your project is in a folder called "ti-project". These instructions are for SDK 1.3.1-beta, where the build script is named "tidebuilder.py".
Windows
:: First install this:
:: - python 2.7.3
:: - imagemagick
:: - tidesdk 1.3.1-beta, manually extracted into C:\Documents and Settings\All Users\Application Data\TideSDK
:: - wix v3.0 (if you install v3.6, edit "C:\Documents and Settings\All Users\Application Data\Titanium\sdk\win32\1.2.0.RC4\win32_app.py" and set the path to WiX as "WiX Toolset v3.6" instead of "Windows Installer XML v3")
:: make sure directories exist
mkdir "packages/win32/network"
mkdir "packages/win32/bundle"
:: package as installer
"C:\Python27\python.exe" "C:\Documents and Settings\All Users\Application Data\TideSDK\sdk\win32\1.3.1-beta\tidebuilder.py" -p -n -t network -d "packages/win32/network" -o "win32" "ti-project/"
"C:\Python27\python.exe" "C:\Documents and Settings\All Users\Application Data\TideSDK\sdk\win32\1.3.1-beta\tidebuilder.py" -p -n -t bundle -d "packages/win32/bundle" -o "win32" "ti-project/"
:: click-to-run
mkdir "packages/win32/run"
"C:\Python27\python.exe" "C:\Documents and Settings\All Users\Application Data\TideSDK\sdk\win32\1.3.1-beta\tidebuilder.py" -r -t bundle -d "packages/win32/run" -o "win32" "ti-project/"
Mac OSX
# use the one that correspond to the sdk you want to use
export path_to_sdk=~/Library/Application\ Support/Titanium/sdk/osx/1.2.0.RC4/
export path_to_sdk=~/Library/Application\ Support/TideSDK/sdk/osx/1.3.1-beta/
# make sure directories exist
mkdir -p "packages/osx/network"
mkdir -p "packages/osx/bundle"
# dmg with app package within
python "$path_to_sdk/tidebuilder.py" -p -n -t network -d "packages/osx/network" -o "osx" "ti-project/"
python "$path_to_sdk/tidebuilder.py" -p -n -t bundle -d "packages/osx/bundle" -o "osx" "ti-project/"
# click-to-run
mkdir -p "packages/osx/run"
python "$path_to_sdk/tidebuilder.py" -r -t bundle -d "packages/osx/run" -o "osx" "ti-project/"
Copyright and Attribution
CONTRIBUTORS:
- Motin
- blackorzar