How to create a Gel application

Description

This guide describes how to set up your development environment create a simple Gel application.

Gel is the script language of Antiryad Gx.

Requirements

Download, install and register Antiryad Gx standard version, or aquire a professionnal license.

Create a project

  • Open Antiryad Gx and launch the 'Tools → Exe compiler' menu.
    • In the first field near the 'Executable' button, enter the name of your application without space, example: 'product'
    • The press the 'New project' button.
    • A new project will be created in 'antiryadgx/workspaces/product' directory
  • Create an init.gel text file in 'antiryadgx/workspaces/product' directory

In your init.gel file, write your program, example:

class init
      
import antiryadgx.gx_winbox
      
declarefunction nothing,main,nothing
      
/* ---- */
/* main */
/* ---- */
function main
  gx_winbox::request(string::"A first program!" ,-1,-1)
      
  return(0)
endfunction

Prepare the project

Executable compiler

  • Open Antiryad Gx and launch the 'Tools → Exe compiler'
  • Select the target platforms checkboxes you want.
  • Press the 'Executable' button and go to the 'antiryadgx/workspaces/product' directory
  • In the 'Executable' field, enter the name of your application without space, example:'product'
  • In the 'Init class' field, enter 'init.gel'
  • In the 'Filevirtual' field, enter a file name, example: 'resources.dsk'
  • Remove all lines in the text box (no resources needed at this time)

Linux options

  • Activate the Linux x86, x64, ppc or cell checkboxes
  • Tune the optimizer as you want
  • If you want to prepare a debian installer, check the 'Createdeb' option
    • You can compile it using the 'projects/multiarch_linux_deb/makeproductdeb.sh' bash file after generating the application
  • Enter the application version in the 'Version' field
  • Enter your company name and url in the 'Maintainer' field
  • Enter the application description in the 'Description' field
  • Enter the application gategorie in the 'Cagegories' field
  • Enter the application menu name in the 'Menuname' field
  • Set the location of the icon file of the appplication in the 'Icon' field
  • Set the location of the license file of the appplication in the 'Licensefile' field
  • Makefile is reserved to enterprise version, do not use the 'Createmakfile' option

Windows options

  • Activate the Windows x86 or x64 checkboxes
  • Tune the optimizer as you want
  • If you want to prepare an installer, check the 'Createiss' option
    • You can open and compile it with Inno Setup using the 'projects/multiarch_windows_iss/product/product.iss' file after generating the application
  • Enter your company name in the 'Publisher' field
  • Enter the url of your company in the 'Appurl' field
  • Set the start menu name of your application in the 'Menuname' field
  • Set the location of the icon file of the appplication in the 'Icon' field
  • Set the location of the license file of the appplication in the 'Licensefile' field
  • Makefile is reserved to enterprise version, do not use the 'Createmakfile' option

MacOSX options

  • Activate the MacOS checkboxe
  • Tune the optimizer as you want
  • If you want to create a standard app file (recommanded), check the 'Createapp' option
  • Enter the application package name 'Packagename' field
  • Set the location of the icon file of the appplication in the 'Icon' field
  • Makefile is reserved to enterprise version, do not use the 'Createmakfile' option

Android options

  • Activate the 'Android' checkbox
  • Tune the optimizer as you want.
  • In 'Url0' and 'Url1' fields, enter the link of your server where the application resources will be downloaded
    • You can use two locations to secure the resources download is case of a server is down.
    • If you have only one server, set the same adress for 'Url0' and 'Url1'.
  • In 'Progressbarpage' and 'Pressbar' field, set the corresponding image location
  • In 'Targetfilevirtual', set the target Android filevirtual name
  • In 'Packagename' field, enter your package name without space and special characters ex: com.yourorganisationname.productname
  • In 'Versioncode' field, enter the current Play Store version code (1 for first submission)
  • In 'Version' field, enter your application version, example:1.00
  • In 'Icon' field, enter the location of your application icon image
  • Makefile is reserved to enterprise version, do not use the 'Createmakfile' option

iOS options

  • Activate the 'iOS' checkbox
  • Tune the optimizer as you want.
  • In 'Packagename' field, enter your package name without space and special characters ex: com.yourorganisationname.productname
  • In 'Version' field, enter your application version, example:1.00
  • In 'Icon' field, enter the location of your application icon image

Compile the project

  • Save the XMC file (button 'Save') in the current directory.
  • Press the 'Generate DSK' button
  • Press the 'Generate EXE' button
    • This will create executables in the current directory.
agxcreategelapplication.txt · Last modified: 2014/09/08 15:47 by pyro
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki