← Return to Top Page 日本語

App Package Guide

Table of Contents

1. What is Action App Package (This Package format cannot be created from Gravio Studio at this time.)

Action App Package (hereinafter referred to as App Package) is a mechanism for managing and distributing Gravio actions, triggers, and related resources as a single package. It aims to efficiently develop action flows and easily deploy them to other Hub systems.

1.1 Evolution from Traditional System (Feature Package)

The development of App Package went through several stages:

1.2 Benefits of App Package

App Package offers the following benefits:

2. Structure of Action App Package

2.1 Basic Directory Structure

App Package is implemented with the following directory structure:

actmgr/actions/
+- [appname].app/
   +- actions/      # Action files
   |  +- a.acs
   |  +- b.acs
   +- data/         # Resource files
   |  +- sounds/
   |     +- a.mp3
   +- triggers/     # Trigger settings
   |  +- events/
   |  |  +- xxx.json
   |  +- timers/
   |  +- calendars/
   +- bases/        # Base properties
   |  +- xxx.basp
   +- layers/       # Layer information (under development)

2.2 Role of Each Directory

3. Steps to Create Action App Package

3.1 Basic Creation Flow

The basic steps to create a new App Package are as follows:

  1. Create a directory with extension .app in the actmgr/actions directory
  2. Create necessary subdirectory structure:
  3. Place existing actions and resource files in appropriate directories
  4. Execute reload in Trigger Manager to enable the package

3.2 File Placement Rules

File placement follows these rules:

  1. Action Files: .acs files are placed in the actions/ directory
  2. Trigger Files: Various trigger files are placed in appropriate subdirectories under triggers/
  3. Base Properties: Used base properties are placed in the bases/ directory
  4. Resource Files: Files referenced by components are placed in appropriate directories under data/

The important point is that files work by simply copying them without changing their content. IDs are separated from the global environment, so there are no ID duplication issues.

4. Package Reference Control

4.1 Action References within App

Triggers and actions within App Package generally only reference resources within the same package:

4.2 Relationship with Global Actions

The relationship between global environment and App Package is as follows:

5. Distribution Methods to Other Hubs

5.1 Package Export

Steps to distribute App Package to other Hubs:

  1. Archive the entire .app directory
  2. Transfer the archive file to the destination Hub
  3. Extract to the actmgr/actions/ directory on the destination Hub
  4. Execute Trigger Manager’s reload function to enable the package

5.2 Distribution Notes

6. Known Limitations and Incompatibility Points

App Package has the following limitations and incompatibility points:

7. Future Improvement Directions

7.1 Base Property Handling Improvements

The following improvements are being considered for base properties:

This will improve flexibility to operate with settings appropriate for the destination environment.

7.2 Global/App Integration Enhancement

Future improvements will focus on strengthening integration between global and App environments: