如何开始使用旧版1.2.0.RC4 TideSDK? [英] How Do I Get Started on the Legacy 1.2.0.RC4 TideSDK?

查看:136
本文介绍了如何开始使用旧版1.2.0.RC4 TideSDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已从 http://tidesdk.org 下载旧版1.2.0.RC4。下载后我该怎么做。

解决方案

全面的指南



TideSDK是一个开源软件开发工具包,用于使用HTML5,CSS3和JavaScript创建多平台桌面应用程序。使用TideSDK,您还可以使用其他常见的脚本语言,如Python,PHP或Ruby,以利用您作为Web开发人员已经拥有的技能。 TideSDK是使用简单网络技术创建独特桌面应用的最佳方式。



TideSDK团队正在准备全面的指南来支持我们的用户。当它们可用时,指南将通过API文档托管在:




  • http://tidesdk.multipart.net/docs/user-dev/generated/#!/guide
  • $ b $



    请注意:TideSDK正在完成一个从旧的Titanium Desktop转换到更新和更新的TideSDK。因此,传统的1.2.0.RC4将是短暂的,因为TideSDK 1.3.0的目标是2012年9月底。尽管如此,传统1.2.0.RC4将让您开始在您的桌面应用程序开发。因为TideSDK 1.3.0没有API更改,所以您可以期望在1.2.0.RC4中创建的所有内容在即将发布的版本中正常工作。将有一个命名空间的变化,虽然你需要注意。在旧版1.2.0.RC4中,API的命名空间是Titanium。在即将到来的TideSDK 1.3.0中,命名空间缩写为Ti。要准备命名空间更改,可以将以下代码添加到代码中:

      var Ti = 

    在API调用SDK之前,在JavaScript中包含此内容。当TideSDK 1.3.0发布时,您只需删除此行。



    要随时更新TideSDK 1.3.0发布的公告和时间,请关注我们在Twitter上:





    或加入我们的邮寄名单:





    1.2.0.RC4的平台支持



    1.2.0.RC4 SDK可用于以下平台:




    • MacOSX 10.6.x Snow Leopard(含Xcode 3.x) / li>
    • Ubuntu 10.10 x86

    • Ubuntu 10.10 x86-64

    • Ubuntu 10.10 x86-64

    • ubuntu 11.04 x86

    • Windows 7 x86

    • Windows 7 x86-64

    • Windows XP x86



    注意:对最新操作系统版本的支持限制是一个已经解决的短期问题。如果您使用的是OSX Lion或Mountain Lion,可能的短期解决方案是安装Windows虚拟机,直到TideSDK 1.3.0发布。 TideSDK 1.3.0将带来更新和升级的图书馆,支持以下操作:




    • Ubuntu 12.04 x86

    • Ubuntu 12.04 x86-64

    • MacOSX 10.7.x Lion(Xcode 4.x)x86-64

    • MacOSX 10.8.x Mountain Lion 4.x)x86-64

    • Windows XP x86

    • Windows 7 x86

    • Windows 7 x86- 64

    • Windows 8 x86

    • Windows 8 x86-64


    $ b b

    简单步骤从下载到打包



    以下步骤将帮助您执行以下操作:




    • 为您的平台安装SDK

    • 安装帮助应用程序(以帮助您创建和运行应用程序进行开发)

    • 克隆并导入Hello World示例应用程序以实验

    • 在您的平台本地打包应用



    步骤1:下载并解压缩SDK



    要获得SDK,请访问tidesdk.org并点击下载1.2.0.RC4按钮。





    1.2.0.RC4 SDK必须解压缩到操作系统的特定文件夹:



    对于Mac OSX:

      / Library / Application Support /钛

    在Linux上:

     〜/ .titanium 

    在Windows XP上:

      C:\Documents和Settings \ All Users \Application Data \Ttanium 

    在Windows 7上:

      C:\ProgramData \\ \\ Titanium 

    zip文件将扩展内容,并为1.2.0创建/覆盖一些新目录。 RC4。



    注意:随着TideSDK 1.3.0的发布,SDK将安装在TideSDK文件夹而不是Titanium。



    步骤2:下载TiDev社区应用程序



    虽然TideSDK只能使用一个基本的文本编辑器,运行和捆绑您的应用程序,直到您了解有关SDK的更多信息。



    TiDev社区应用程序适合此目的。虽然'TiDev社区'正在到达其使用寿命的尽头,TideSDK Builder很快就会取代它的位置。 TideSDK团队希望将TideBuilder与官方TideSDK 1.3.0版本捆绑在一起。



    要获得TiDev社区,请从这里下载到您支持的平台:





    步骤3:获取Hello World示例App



    对于第一个应用程序,一个简单的Hello World示例是一个很好的介绍。 Hello World应用程序说明了以下内容:




    • 使用API​​创建菜单



  • 使用HTML和CSS显示内容。


  • 要获取TideSDK-HelloWorld应用程序,您可以克隆应用程序(如果您安装了git),或只需从以下位置下载zip:





    步骤4:将范例应用程式汇入TiDev社群



    Hello World示例应用程序到TiDev,点击左上角的导入按钮,导航到包含应用程序的文件夹并选择它。



    运行示例应用程序



    要运行Hello World应用程序,请点击Test&软件包按钮,然后点击左下角的启动应用程序按钮。 Hello World应用程序将开始并开始记录到屏幕。



    步骤6:使用CLI在本地打包示例应用程序



    当Appcelerator将焦点转移到移动设备时,他们删除了一次可用的Titanium Desktop的网络打包和更新服务。尽管如此,本地打包始终是捆绑应用程序以进行分发的最佳选择之一。事实上,Appcelerator的服务在服务器上使用了相同的进程(您在本地使用)。



    在旧版SDK中,可以使用一个小型CLI应用程序tibuild.py。您将在SDK的根文件夹(针对您的平台)中找到tibuild.py。您可以使用此工具运行应用程序或将其捆绑分发。



    要使用CLI打包应用程序:

      python tibuild.py --dest =。 --type = bundle --package =。 c:\path\to\your\app\dir

    注意:你现在只能做捆包包装。调整路径,使其适合您的平台。



    这应该构建和打包您的应用程序并为其创建安装程序。



    您可以忽略操作系统参数,因为构建器只能将构建的应用程序和安装包



    其他信息



    如果您需要更多帮助,请在stackoverflow或在我们的网站上列出的其他支持渠道 http://tidesdk.org 上提出您的问题。


    I have downloaded the legacy 1.2.0.RC4 from the http://tidesdk.org. What do I do with it following the download. How do I get started?

    解决方案

    Comprehensive Guides on their Way

    TideSDK is an open source software development kit for creating multi-platform desktop apps using HTML5, CSS3, and JavaScript. With TideSDK you can also use other common scripting languages such as Python, PHP or Ruby to harness the skills you already possess as a web developer. TideSDK is the best way to create unique desktop apps using simple web technologies.

    The TideSDK team is currently preparing comprehensive guides to support our users. As they become available, the guides will be hosted with the API documentation at:

    Please check back frequently as a number of guides are reaching completion.

    NOTE: TideSDK is completing a transition from the former Titanium Desktop to the rebranded and updated TideSDK. Therefore, the legacy 1.2.0.RC4 will be short lived since TideSDK 1.3.0 is targeted for the end of September 2012. Despite this, the legacy 1.2.0.RC4 will get you started on your desktop app development today. Because there will be no API changes for TideSDK 1.3.0, you can expect everything you create in 1.2.0.RC4 to work in the upcoming release. There will be a namespace change though that you need to be aware of. In the legacy 1.2.0.RC4, the namespace for the API is 'Titanium'. In the upcoming TideSDK 1.3.0, the namespace has been shortened to 'Ti'. To prepare for the namespace change, you can add the following to your code:

    var Ti = Titanium;
    

    Include this somewhere in your JavaScript before the API calls to the SDK are made. When TideSDK 1.3.0 releases, you can just remove this line.

    To keep up to date with announcements and timing of the upcoming TideSDK 1.3.0 release, please follow us on twitter at:

    or join our mailing list at:

    Platform Support for 1.2.0.RC4

    The legacy 1.2.0.RC4 SDK can be used on the following platforms:

    • MacOSX 10.6.x Snow Leopard (with Xcode 3.x)
    • Ubuntu 10.10 x86
    • Ubuntu 10.10 x86-64
    • Ubuntu 10.10 x86-64
    • Ubuntu 11.04 x86
    • Windows 7 x86
    • Windows 7 x86-64
    • Windows XP x86

    NOTE: The limitation of support for the most recent OS versions is a short term issue that has already been resolved. If you are on a OSX Lion or Mountain Lion, a possible short term solution is to install a Windows virtual machine until TideSDK 1.3.0 reaches a release. TideSDK 1.3.0 will bring updates and upgraded libraries to support the following:

    • Ubuntu 12.04 x86
    • Ubuntu 12.04 x86-64
    • MacOSX 10.7.x Lion (Xcode 4.x) x86-64
    • MacOSX 10.8.x Mountain Lion (Xcode 4.x) x86-64
    • Windows XP x86
    • Windows 7 x86
    • Windows 7 x86-64
    • Windows 8 x86
    • Windows 8 x86-64

    Simple Steps From Download to Packaging

    The following steps will help you do the following:

    • install the SDK for your platform
    • install a helper app (to assist you to create and run your app for development)
    • clone and import a Hello World example app to experiment with
    • package an app locally for your platform

    STEP 1: Download and extract the SDK

    To get the SDK, visit tidesdk.org and click on the 'Download 1.2.0.RC4' button.

    The 1.2.0.RC4 SDK must be extracted into a specific folder for your operating system:

    For Mac OSX:

    /Library/Application Support/Titanium
    

    On Linux:

    ~/.titanium
    

    On on Windows XP:

    C:\Documents and Settings\All Users\Application Data\Titanium
    

    On Windows 7:

    C:\ProgramData\Titanium
    

    The zip file will expand the contents and create/overlay some new directories for 1.2.0.RC4.

    NOTE: With the release of TideSDK 1.3.0, the SDK will be installed in a TideSDK folder as opposed to Titanium.

    STEP 2: Download the TiDev Community App

    While TideSDK can be used with no more than a basic text editor, using an app to create, run, and bundle your app is recommended until you learn a bit more about the SDK.

    The 'TiDev Community' app is suitable for this purpose. While 'TiDev Community' is reaching the end of its useful life, TideSDK Builder will soon take its place. The TideSDK team is hoping to bundle TideBuilder with the official TideSDK 1.3.0 release.

    To get 'TiDev Community', download it from here for your supported platform:

    STEP 3: Obtain the Hello World Example App

    For a first app, a simple Hello World example is a good introduction. The Hello World app illustrates the the following:

    • The use of the API to create a menu
    • Adding a menu item to a menu with a simple callback to prompt the user to exit the app
    • Displaying content using HTML and CSS.

    To get the TideSDK-HelloWorld app, you can either clone the app if you have git installed, or simply download the zip from the following location:

    STEP 4: Importing the Example App into TiDev Community

    To import the Hello World example app into TiDev, click on the 'Import' button at the top left, navigate to the folder containing the the app and select it.

    STEP 5: Running the Example App

    To run the Hello World app, click on 'Test & Package' button in the TiDev menu, then click on the 'Launch App' button in the lower left. The Hello World app will start and begin logging to the screen. Debugging statements you include in your code will appear.

    STEP 6: Packaging the Example App Locally with the CLI

    When Appcelerator shifted its focus to mobile, they removed the network packaging and update service for Titanium Desktop that was once available. Despite this, packaging locally has always been one of the best options for bundling your app for distribution. In fact, Appcelerator's service used this same process on the server (that you are using locally).

    Within the legacy SDK, a small CLI app tibuild.py is available. You will find tibuild.py in within the root folder of the SDK (for your platform). You can use this tool for running your app or bundling it for distribution. tibuild.py has built-in help that can display its available options.

    To package an app using the CLI:

    python tibuild.py --dest=. --type=bundle --package=. "c:\path\to\your\app\dir"
    

    Note: You can only do bundle packaging at the present time. Adjust the path so it is appropriate for your platform.

    This should build and package your app and create a installer for it. Change "dest" and "package" to the directories where you want to have the built app and installation package.

    You can omit the OS parameter, since the builder can only generate builds for the current OS.

    Additional Information

    If you need more help while the comprehensive guides are being prepared, please post your questions here on stackoverflow or consult our other support channels listed on our site at http://tidesdk.org.

    这篇关于如何开始使用旧版1.2.0.RC4 TideSDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆