Instructions for creating and configuring your own remote module repository
These instructions describe the process of creating and configuring your own remote module repository for the OutfitTool host program. The repository allows you to centrally manage modules, their versions, and updates.
General information about the repository system
The OutfitTool host program supports a remote module repository system that allows you to:
- Centrally store modules and their versions
- Automatically check for updates
- Install and update modules through the program's interface
- Manage multiple modules from a single source
The repository system is based on a YAML file containing module metadata and a set of ZIP archives with the modules themselves.
Current repository structure
repo/
├── calculator/
│ └── 0.1/
│ ├── install_calculator_0.1.exe
│ ├── package.yaml
│ └── package.zip
├── color_picker/
│ └── 0.1/
│ ├── install_color_picker_0.1.exe
│ ├── package.yaml
│ └── package.zip
├── mail_agent/
│ └── 0.1/
│ ├── install_mail_agent_0.1.exe
│ ├── package.yaml
│ └── package.zip
├── outfit_tool/
│ └── 3.0/
│ ├── install_outfit_tool_3.0.exe
│ ├── package.yaml
│ └── package.zip
└── timer/
└── 0.1/
├── install_timer_0.1.exe
├── package.yaml
└── package.zip
Repository YAML file format
The main repository file repository.yaml contains information about all available modules and their versions. Below is the current format based on the actual repository:
url: 'https://outfit-tool.ru/files/repository'
modules:
timer:
'0.1':
name: timer
display_name: Timer
assembly_name: Timer
description: Timer
author: 'Stolyarov Roman'
author_contacts: rshome@mail.ru
version: '0.1'
version_label: pre-alpha
required_api: '1'
changes: 'Test version'
outfit_tool:
'3.0':
name: outfit_tool
display_name: 'Outfit Tool'
assembly_name: OutfitTool
description: 'Outfit Tool'
author: 'Stolyarov Roman'
author_contacts: rshome@mail.ru
version: '3.0'
version_label: pre-alpha
required_api: 1
changes: '3.0 Testing pre-alpha'
mail_agent:
'0.1':
name: mail_agent
display_name: MailAgent
assembly_name: MailAgent
description: 'Mail Agent'
author: 'Stolyarov Roman'
author_contacts: rshome@mail.ru
version: '0.1'
version_label: pre-alpha
required_api: '1'
changes: 'First version'
color_picker:
'0.1':
name: color_picker
display_name: ColorPicker
assembly_name: ColorPicker
description: 'Color picker'
author: 'Stolyarov Roman'
author_contacts: rshome@mail.ru
version: '0.1'
version_label: pre-alpha
required_api: '1'
changes: 'Test version'
calculator:
'0.1':
name: calculator
display_name: Calculator
assembly_name: Calculator
description: Calculator
author: 'Stolyarov Roman'
author_contacts: rshome@mail.ru
version: '0.1'
version_label: pre-alpha
required_api: '1'
changes: 'Test version'
Description of YAML file fields
- url
- The base URL of the repository from which modules will be downloaded. Must point to the root directory containing the modules.
- modules
- The root element containing a list of all modules in the repository.
- Module name
- A unique module name (e.g.,
mail_agent) used for identification. - Module version
- The module version number in
major.minor.patchformat (e.g.,0.1). - name
- The internal module name, matching the one in
IModuleInfo.Name. - display_name
- The module's display name shown to the user in the interface.
- assembly_name
- The name of the module assembly (without the
.dllextension), matchingIModuleInfo.AssemblyName. - description
- A brief description of the module's functionality.
- required_api
- The minimum API version required for the module to work.
- version_label
- The version label (e.g.,
pre-alpha,alpha,beta,rc,stable). - changes
- A description of changes in this version of the module (changelog).
- author
- The name of the module author or developer.
- author_contacts
- Contact information for reaching the author.
Module package structure
Each module version contains the following files:
1. package.yaml
Metadata file for a specific module version. Example for Calculator 0.1:
name: calculator
display_name: "Calculator"
assembly_name: "Calculator"
description: "Calculator"
author: "Stolyarov Roman"
author_contacts: "rshome@mail.ru"
version: "0.1"
version_label: "pre-alpha"
required_api: "1"
changes: >
Test version
2. package.zip
ZIP archive containing the module, including:
- The main module assembly (DLL file)
- Dependent DLL files
- Module resources (images, configurations, etc.)
- API1.dll (API library)
3. install_*.exe
Installation EXE file for manual module installation (if necessary).
Creating your own repository
To create your own repository, follow these steps:
Step 1: Create the directory structure
- Create a root directory for the repository
- For each module, create a separate directory with the module name (e.g.,
calculator) - Inside the module directory, create a directory for each version (e.g.,
0.1)
Step 2: Prepare the module package
- Compile the module into a DLL file
- Create a ZIP archive
package.zipcontaining the module and all dependencies - Create a
package.yamlfile with the module metadata - If necessary, create an installation EXE file
Step 3: Create the main YAML file
- Create a
repository.yamlfile in the root of the repository - Specify the base repository URL in the
urlfield - Add entries for all modules and their versions according to the example above
- Ensure all paths and versions are specified correctly
Hosting the repository
After creating the repository structure, you need to host it on a web server:
Option 1: Static web server
- Place the
repository.yamlfile and all module directories on a static web server (e.g., GitHub Pages, GitLab Pages, Netlify, Vercel) - Ensure the files are accessible via direct URLs
- Update the
urlfield inrepository.yamlto the correct address
Option 2: Traditional web server
- Place the repository files on a web server (Apache, Nginx, IIS)
- Configure the server to correctly serve static files
- Ensure MIME types are configured correctly (YAML files should be served with
text/yamltype) - Update the
urlfield inrepository.yaml
Configuring the host program
After hosting the repository, configure the host program to use it:
- Launch the OutfitTool host program
- Go to the "Updates" tab (or similar)
- In the "Update repository" field, enter the URL of your repository (e.g.,
https://your-domain.com/repository.yaml) - Click the "Apply" button (or similar) to save the settings
- Click the "Refresh list" button to load module information from the repository
If the settings are correct, the program will load the list of modules from your repository and display them in the interface.
Troubleshooting
If the repository is not working, check the following possible causes:
- URL inaccessible: Make sure the
repository.yamlfile is accessible at the specified URL - YAML errors: Check the YAML file syntax for indentation errors or invalid characters
- Incorrect paths: Ensure the
urlfield in the YAML file correctly points to the root directory containing the modules - Permission issues: Verify that the web server allows access to the repository files
- Caching: Try clearing the program's cache or waiting a while, as some servers cache responses
For diagnostics, check the program logs, where detailed error messages regarding repository loading may be specified.
Recommendations
- Use a version control system (Git) to manage changes in the repository
- Regularly back up the repository
- Document the repository structure and update processes
- Use HTTPS for secure data transfer
- Test the repository before publishing by verifying module downloads
- Monitor module compatibility with different API versions
- Follow the structure of the actual repository to ensure compatibility