Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 0c3cf1e

Browse files
committed
[[ ExtensionUtils ]] Add docs for extension package validation
(cherry picked from commit 01b67d8)
1 parent 96bb377 commit 0c3cf1e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

extensions/script-libraries/extension-utils/extension-utils.livecodescript

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,25 @@ end extensionFetchSourceFromFolder
16411641

16421642
/**
16431643
Validate an extension package
1644+
1645+
Parameters:
1646+
pPackage: The .lce package to validate
1647+
rManifestDataA: The basic manifest data extracted from the package
1648+
1649+
The result:
1650+
If the package was deemed invalid, the result contains the reason why
1651+
the package failed validation.
1652+
1653+
Description:
1654+
Use the <extensionValidateLCEPackage> command to naively validate the
1655+
contents of an .lce package. <extensionValidateLCEPackage> checks if
1656+
there is a file that looks like the main extension (either a compiled
1657+
LiveCode Builder module file or a LiveCode stack), that it contains a
1658+
manifest XML file and that the manifest contains the minimum required
1659+
information, namely the name, version, author, type, and title.
1660+
1661+
The manifest information is returned in the <rManifestDataA> out
1662+
parameter.
16441663
*/
16451664
command extensionValidateLCEPackage pPackage, @rManifestDataA
16461665
# Open the zip archive

0 commit comments

Comments
 (0)