Library Exporter
Library Exporter is a command line application. It will search an Automation Studio project, find all the libraries, and export them as binaries. This is quicker than exporting libraries individually with AS and allows CI to export libraries.
Installation
There are 2 installation methods. Both require the executable located at Sandbox\Exporter\dist\ExportLibraries.exe.
Method 1
Place the executable somewhere (Recommended: C:\Program Files\Loupe\Tools) and add it to the environment path.
- Copy the executable to the desired installation path.
- Add that path to the systems environment path. For more info on this see here
Method 2
Place the executable in the folder it is needed. The executable contains everything it needs and does not need to be installed.
Usage
Once installed, the executable can be run directly or via the command window. The executable is expecting a parameter file named ExportLibrariesParam.json in the directory that it is ran. If the file is not found, one will be created with default values and the prompt will pause so it can be modified.
Note: If the executable is run via command window, the executable will look for the param file in the current working directory not where the executable is installed.
Example Command Prompt
cd C:\Projects\Loupe\Sandbox\Sandbox
ExportLibraries
Parameters
Parameter | Type | Description | Default |
---|---|---|---|
projectPath | string | Path to AS project, to .apj or folder containing it | Required |
buildMode | string | Build mode for project: ‘Rebuild’, ‘Build’, ‘None’ | ‘Build’ |
Configs | array of strings | List of configurations to build. if left empty all configs will be built | [] |
exportPath | string | Relative or absolute path where the libraries should be exported to | Required |
versionSubFolders | boolean | Should libraries be saved in a sub folder named with version number similar how default AS export works | true |
ignoreLibraries | array of strings | List of ignores to be checked against library paths. Full path to libraries .lby file will be provided. For more information on ignore style see here |
Example Parameter file
{
"projectPath": "C:\\Projects\\Loupe\\Sandbox\\Sandbox",
"buildMode": "Rebuild",
"Configs": [
"Libraries_intel",
"Libraries_arm"
],
"exportPath": "Exports",
"versionSubFolders": true,
"ignoreLibraries": [
"*TRF_Custom*"
]
}