When you have your application configured correctly and running on the GAS, you are now
ready to package the files required to deploy it as an application.
This topic provides you with steps to configure and deploy an application that you can test
on your own machine.
For the purposes of this quick start, you can use the configuration files created for the
HelloWorld.xcf application. See Configure an application.
-
Remove the HelloWorld.xcf file in your GAS appdata/app directory (On Linux/UNIX:
$FGLASDIR/appdata/app, on Windows®:
C:\ProgramData\FourJs\gas\gas_version\app)
This file may have been uploaded by yourself during the Configure an application task. Applications with the same
xcf can not be deployed.
-
Update the application configuration file (HelloWorld.xcf) for your
HelloWorld application.
Update the
<PATH>
element to the GAS deployment path as
follows:
<PATH>$(res.deployment.path)</PATH>
The configuration should now look like
this:
<?xml version="1.0" encoding="UTF-8" ?>
<APPLICATION Parent="defaultgwc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/4.01/cfextwa.xsd">
<EXECUTION>
<PATH>$(res.deployment.path)</PATH>
<MODULE>HelloWorld.42r</MODULE>
</EXECUTION>
</APPLICATION>
-
Create a new directory where you will archive the application's runtime files (you can name it
"helloworld_deploy").
-
Copy all the HelloWorld application runtime files from $GSTDIR/samples to
the archive directory.
Note:
If you are deploying resources (for example, images or web components) with your application,
these need to go in dedicated directories in the archive.
-
Copy the application configuration file (HelloWorld.xcf) to the directory
with the application runtime files.
-
In the same directory, create a MANIFEST file and save it with the name
"MANIFEST" (without extension).
The MANIFEST contents resembles the following:
<MANIFEST>
<DESCRIPTION></DESCRIPTION>
<APPLICATION xcf="HelloWorld.xcf"/>
</MANIFEST>
-
Create an archive file (gar) to deploy your application by performing the
following steps:
-
Navigate to your Genero Studio installation directory and set the environment.
-
Navigate to the directory that contains the application runtime files AND the
MANIFEST file.
-
Create an archive file (gar) to deploy your application by typing this
command:
Where the dot (period) specifies the current directory.
A Genero Archive (gar) file is created in your current directory that has
the same name as the directory. See the fglgar topic in the Genero Business Development Language User Guide.