Skip to content

Commit e201a5e

Browse files
authored
Merge pull request #41 from GRAPHISOFT/DEF-23179
README updates and `description` in config
2 parents ac994e7 + e920347 commit e201a5e

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ python Tools/BuildAddOn.py --configFile config.json
2929
The build script reads the config.json file for required build parameters:
3030

3131
- `addOnName`: name of the Add-On.
32+
- `description`: description of the Add-On.
3233
- `defaultLanguage`: a single language for which the Add-On is built when localization is not enabled. Must be one of the languages specified in `languages`.
3334
- `languages`: list of languages, for which localization can be done / for which the .grc files are present in their respective directories.
34-
- `version`: version of the Add-On. Must have 1, 2 or 3 numeric components (`123`, `1.23` or `1.2.3` respectively).
35+
- `version`: version of the Add-On. Must have 1, 2 or 3 numeric components (`123`, `1.23` or `1.2.3` respectively) all of which must be in the `0-65535` range.
3536
- `copyright`: an object with fields `name` and `year`. These will be used to embed a copyright notice in the Add-On.
3637
- `additionalCMakeParams` (optional): a list of additional Add-On specific CMake parameters as JSON key-value pairs. The build script will forward it to CMake.
3738

@@ -62,16 +63,16 @@ git submodule update --remote
6263

6364
### Fill in metadata in `config.json`
6465

65-
This template contains an invalid `version` field in the config file described in [Config file](#config-file).
66-
This will need to be replaced after the repository has been cloned.
66+
The version number `0.0.0` (or `0.0` or `0` according to the rules above) is recognized as a placeholder and using it will result in a warning.
67+
This template contains a `version` value with this placeholder value that should be changed.
6768

68-
You may also want to change the `addOnName` and `copyright` values.
69+
You may also want to change the `addOnName`, `description` and `copyright` values.
6970
You may use the `%Y` placeholder in the `copyright.year` field to always refer to the current year.
7071

7172
### Build with downloaded Archicad API Development Kit
7273

7374
- Clone this repository as it's described in the previous section.
74-
- Review and modify the config file as it's described in the previous section.
75+
- Review and modify the config file as described in the previous section.
7576
- [Download the Archicad Add-On Development Kit from here](https://archicadapi.graphisoft.com/downloads/api-development-kit) or from [here](https://github.com/GRAPHISOFT/archicad-api-devkit/releases).
7677
- Generate the IDE project with CMake, and set the following variables (see example [below](#visual-studio-windows)):
7778
- `AC_VERSION`: The version number of Archicad that the Add-On is built for.

Tools

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"copyright": {
99
"name": "Graphisoft SE",
1010
"year": "1984-%Y"
11-
}
11+
},
12+
"description": "Example Archicad addon"
1213
}

0 commit comments

Comments
 (0)