The legacy configuration format is the only format Akeeba Release Maker 1.x (the untagged commits from 2012 to early January 2021) supported.
It is a very opinionated format regarding the release process. It only allows you to have exactly one or two package files to be released in each version of your software, the Core and the Pro package file. Likewise, you can specify exactly one or two update streams to be copied to a remote storage server, the Core and Pro updates. You can upload additional files using its support for PDF files (it really supports any kind of file...) but these are handled differently and cannot have update streams related to them.
The format of this file reflects our software release needs back in 2012, when we only had software with free of charge Core and paid Professional versions. This is definitely not very convenient if you want to release software which consists of multiple packages, e.g. a component with some optional plugins and language files.
We very strongly recommend using the JSON5 or YAML formats. They are more feature rich than the legacy format, allowing for very customised software release processes. After all, when you use Akeeba Release Maker 2.x with a legacy file it is internally translated to the modern format anyway.
Support for legacy configuration files may disappear in the future.
See the docs/legacy.json
file.
There are four sections: common
, pro
, core
, pdf
. Common settings apply to everything.
core
and pro
apply each to free (core
) and paid (pro
) versions. If you only have a free version set the pro.pattern
to something nonexistent, e.g. "THERE-IS-NO-PRO" and leave the other pro
keys blank. Likewise, if you only have a paid version set core.pattern
to something nonexistent and let the other keys blank. If you only have one kind of version and you do not know what to do, consider it "pro". The overall idea is that only one item can be published per core/pro position and that file will have a corresponding update stream published.
The pdf
section is designed for documentation but can be used to upload anything. All files you specify here will be published to either the core
or the pro
upload location. The idea is that the files uploaded through this section do not have a corresponding update stream (they are supporting files). Since the original supporting files we were publishing on our site were PDF documentation snapshots the name of the section ended up being "pdf".
- common.version Version number, e.g. 1.2.3
- common.date Release date, e.g. 2015-04-03
- common.arsapiurl For ARS 2.x to 6.x inclusive this is the URL to the site with Akeeba Release System installed, e.g.
http://www.example.com
(do NOT include index.php?option=com_ars etc). For ARS 7.x and later it's the URL to your Joomla 4+ site's API application e.g.http://www.example.com/api
(you may includeindex.php
but DO NOT enter anything else, e.g. the/v1/ars
path to the ARS API endpoint; it's added automatically). - common.ars.communication How you want to access the ARS API.
curl
to use cURL (legacy, doesn't return verbose error information if the API call fails),php
to use PHP's native HTTP stream wrapper (preferred, default). - common.ars.type The type of JSON API implementation to talk to ARS. For ARS 2.x to 6.x inclusive use
fof
or leave blank. For ARS 7.x and alter usejoomla
. - common.username Your login username, needs to have core.manage privilege for ARS or core.admin (Super User) privilege
- common.password Your login password
- common.token Your FOF API Token. Used when username and password are left empty.
- common.category integer; the ARS category where things will be published.
- common.releasedir Absolute path to the local directory containing the files to publish.
- common.releaseaccess integer; numeric ID of Joomla! View Access Level which will have access to the release. Optional.
- common.repodir Absolute path to the local directory containing the Git directory of the files you're publishing
- common.cacert Absolute path to a custom CA cache file or PEM-encoded certificate to be considered valid for SSL/TLS connections.
- common.steps Array of the steps to execute during the release. Do not set to use the default steps.
- common.update.method How should I upload the update stream files? "none", "s3", "ftp", "ftps", "sftp", "ftpcurl", "ftpscurl", "sftpcurl". Use the cURL variants whenever possible (wider compatibility).
- common.update.ftp.hostname FTP(S) / SFTP hostname for update streams
- common.update.ftp.port FTP(S) / SFTP port for update streams (default: 21 for FTP(S), 22 for SFTP)
- common.update.ftp.username FTP(S) / SFTP username for update streams
- common.update.ftp.password FTP(S) / SFTP password for update streams
- common.update.ftp.passive Use FTP(S) passive mode for update streams
- common.update.ftp.directory FTP(S) / SFTP initial directory
- common.update.ftp.pubkeyfile Optional. For SFTP certificate authentication only. Absolute path to the Public Key file.
- common.update.ftp.privkeyfile Optional. For SFTP certificate authentication only. Absolute path to the Private Key file. Not required by newer cURL versions.
- common.update.ftp.privkeyfile_pass Optional. For SFTP certificate authentication only. Password for the Private Key file. Does not work when SSH2 or libcurl is compiled against GnuTLS. Always compile against OpenSSL or use unencrypted Private Key files.
- common.update.ftp.passive_fix Optional. For ftpcurl and ftpscurl only. When true ignores the IP sent by the server in response to PASV, using its public IP instead.
- common.update.ftp.timeout Optional. For sftpcurl, ftpcurl and ftpscurl only. Connection and upload timeout in seconds. Default: 3600 (one hour).
- common.update.ftp.verbose Optional. For sftpcurl, ftpcurl and ftpscurl only. Show cURL output (for debugging only).
- common.update.s3.access S3 Access Key for update streams
- common.update.s3.secret S3 Secret Key for update streams
- common.update.s3.bucket S3 Bucket for update streams
- common.update.s3.usessl Use SSL with S3 for update streams
- common.update.s3.signature S3 signature method. "s3" for the legacy method, "v4" for the new AWSv4 API. If you use v4 you also need to specify the region below. Note: Frankfurt a.k.a. eu-central-1 and all newer (post-2014) regions REQUIRE v4 signatures.
- common.update.s3.region S3 region. The Amazon S3 region of your bucket, e.g. us-east-1, eu-west-1. The full list of regions can be found at http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
- common.update.s3.directory S3 base directory for update streams
- common.update.s3.cdnhostname CloudFront CDN hostname for the S3 bucket for update streams
- pro.pattern Filesystem match pattern for Pro file to publish, e.g.
com_foobar*.zip
- pro.method How should I upload Pro files? "s3", "ftp", "ftps", "sftp", "ftpcurl", "ftpscurl", "sftpcurl", "github"
- pro.update.stream Numeric ID of ARS update stream for the Pro file
- pro.update.basename Base filename for the update stream file, e.g.
something
. Used in conjunction with pro.update.formats to decide the file name of the uploaded update stream files. - pro.update.formats Which update stream format(s) should I upload for the Pro version? One or more of "ini" (
something.ini
containing Live Update INI data), "inibare" (something
containing Live Update INI data), "xml" (something.xml
containing Joomla! XML update stream data) - pro.groups array of integers; numeric IDs of Akeeba Subscriptions levels which will have access to the published file. Optional.
- pro.access integer; numeric ID of Joomla! View Access Level which will have access to the published file. Optional.
All pro.ftp.* options are used when you use pro.method = "ftp", "ftps", "sftp", "ftpcurl", "ftpscurl", "sftpcurl". They work like common.update.s3.*
All pro.s3.* options are used when you use pro.method = "s3". They work like common.update.s3.* On top of that you have:
- pro.s3.reldir The relative directory of pro.s3.directory to the ARS Category directory. Let's say that the ARS Category is configured to use
s3://foo
and you're uploading to the directoryfoo/bar/
of the S3 bucket. The pro.s3.reldir must bebar
since thefoo
directory was included in the ARS Category already.
All core.* options work the same as pro.* options but refer to the "Core" file.
- pdf.where How to publish the files. Use "core" or "pro". The publish method and access control will match the corresponding section as configured above.
- pdf.files A list of additional files to publish. They don't have to be PDF files. Any type of files will do.
There are three supported authentication modes for SFTP connections.
Uses a username and password.
This is the simplest authentication method but also the least secure one.
Set the respective username
and password
keys.
Uses a public and private certificate pair.
This is more secure than a password. However, see the Caveat below.
Set the respective username
, pubkeyfile
, privkeyfile
keys. Leave the password
key empty.
If your private key file is password protected you need to also set the privkeyfile_pass
key.
Caveat: Ubuntu compiles libssh2 against GnuTLS which does not support password-protected key files. You either need a decrypted private key file (bad idea!) or use the SSH Agent authentication method.
Uses the SSH Agent and your SSH configuration file (typically: ~/.ssh/config
). On Windows it usually means using PuTTY.
This is compatible with GPG and GPG SmartCards, including YubiKey Neo or newer. Using this method your secret key can be securely stored in a SmartCard. You will be asked to unlock it with your PIN on SFTP authentication. VERY STRONGLY RECOMMENDED.
Only set the respective username
key. DO NOT set a password
, DO NOT set pubkeyfile
or privkeyfile
.
Caveat: you must ALWAYS provide the username, hostname (and port, if it's other than 22). Neither SSH2 nor cURL can use values for these settings specified in the SSH configuration file.