How does CrossApp create a new project? Does crossapp create a project?

Source: Internet
Author: User

How does CrossApp create a new project? Does crossapp create a project?

The method of creating a project in CrossApp is basically the same as that in the Cocos2d-x, it is to use the python script to complete the creation, first open the terminal. Use the cd command to locate the project-creator directory under the tools directory under the CrossApp directory.

My directory is as follows:/Users/archer/Desktop/CrossApp-0.3.5/tools/project-creator

There is a create_project.py script file in this directory. This file is used to create a project file.



Enter the following information on the terminal:

[Plain] view plain copy
  1. ./Create_project.py-project App01-package com. archerpeng. crossapppro-language cpp

Here,-project is the project name,-package is the package name-language is the language type, please make changes according to your needs.

For more help, enter

./Create_project.py

The following prompt is displayed in the current version (0.3.5:

[Plain] view plain copy
  1. Usage: create_project.py-project PROJECT_NAME-package PACKAGE_NAME-language PROGRAMING_LANGUAGE
  2. Options:
  3. -Project PROJECT_NAME Project name, for example: MyGame
  4. -Package PACKAGE_NAME Package name, for example: com. MyCompany. MyAwesomeGame
  5. -Language PROGRAMING_LANGUAGE Major programing lanauge you want to used, shocould be [cpp | javascript]
  6. Sample 1:./create_project.py-project MyGame-package com. MyCompany. AwesomeGame
  7. Sample 2:./create_project.py-project MyGame-package com. MyCompany. AwesomeGame-language javascript
Currently, CrossApp only supports creating cpp and js projects and does not seem to be able to specify the project path.

The following prompt appears when the creation is successful:

[Plain] view plain copy
  1. Proj. ios: Done!
  2. Proj. android: Done!
  3. Proj. win32: Done!
  4. Proj. mac: Done!
  5. Proj. linux: Done!
  6. Proj. wp8-xaml: Done!
  7. New project has been created in this path:/Users/archer/Desktop/CrossApp-0.3.5/projects/App02
  8. Have Fun!

Next, enjoy the convenience and cross-platform pleasure that CrossApp brings to you!


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.