You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Pckgd/README.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,9 @@ be located in the first 100 lines of the script, and must be located immediately
17
17
demarcation is used (explained below), the headers must be *above* the demarcation.
18
18
The headers are:
19
19
20
-
-`# Pckgd` - Required. No value. Identifies the file as part of a Pckgd package. Without this header, the script won't be found in
21
-
the query for packages.
20
+
-`# Pckgd` - Required as the first of these headers. No value. Identifies the file as part of a Pckgd package, and
21
+
indicates where these headers are in the file. Without this header, the script won't be found in the query for
22
+
packages, and the headers won't be found in the file.
22
23
-`# Updates from:` - Required for updates. An identifier of where updates should come from. Two types of values are allowed:
23
24
- A URL to a text file: e.g. `# Updates from: https://example.com/mypackage-latest.txt`
24
25
- A GitHub repository in the format `GitHub/username/repo/path/to/file.py`: e.g. `# Updates from: GitHub/TenthPres/TouchPointScripts/Pckgd/Pckgd.py`
@@ -28,7 +29,10 @@ The headers are:
28
29
on. For example, if a python script depends on a SQL file, this header might be something like `# Depends on: MyScript.sql`.
29
30
When dependencies are defined, they will be provided as part of installation, provided they are available in the same
30
31
source and directory as the current file.
31
-
-`# Version` - Optional. The current version of the script. If not provided, a hash will be generated on a per-file basis to determine if a new version is available.
32
+
-`# Version:` - Optional. The current version of the script. Must contain hex characters and dots only (e.g. `1.0.0`, `2.1`, `2024.06.15`, `adcf1234`).
33
+
- If not provided, a hash will be generated on a per-file basis to determine if a new version is available.
34
+
- If a version is provided in the source file (e.g. on GitHub), only the version numbers will be compared, not the content of the script. Therefore, if you use this parameter, to make clients see a new update as being available, you *must* change the version number on the repository.
35
+
- If you want every new update published on your repository to be treated as a new version, leave this header out.
32
36
-`# License:` - Optional. The license under which the package is provided.
33
37
-`# Author:` - Optional. The author of the package.
34
38
-`# Header color:` - Optional. A hex color code (e.g. `#FF0000`) to use as the header color in the UI. If one is not provided, a color is generated from a hash of the file name.
@@ -53,9 +57,9 @@ A minimally-documented SQL file may have headers like this:
0 commit comments