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
{{ message }}
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
ifthelastitemoftExtensionPathis not"lce"thenreturn __extensionError(pCacheIndex,"Could not install extension. The package extension '"&thelastitemoftExtensionPath&"' Is not valid. Must be 'lce'.")
301
301
302
+
# Get initial manifest data needed for loading
303
+
localtManifestData, tManifestXMLTree
304
+
put __extensionManifestData(pCacheIndex) intotManifestData
305
+
put revXMLCreateTree(tManifestData,true,true,false) intotManifestXMLTree
306
+
302
307
# Check the manifest contains a name
303
308
localtExtensionName
304
-
put __extensionManifestValue(pCacheIndex, "name") intotExtensionName
305
-
iftExtensionNameis"error"thenreturn __extensionError(pCacheIndex,"Could not install extension. The package manifest must contain a valid name (com.livecode.extensions.<developer_ID>.<extension_name>)")
309
+
put __extensionManifestValueFromTree(tManifestXMLTree, "name") intotExtensionName
310
+
iftheresultis notemptythen
311
+
return __extensionError(pCacheIndex,"Could not install extension. The package manifest must contain a valid name (com.livecode.extensions.<developer_ID>.<extension_name>)")
put __extensionManifestValue(pCacheIndex, "version") intotExtensionVersion
311
-
iftExtensionVersionis"error"thenreturn __extensionError(pCacheIndex,"Could not install extension. The package manifest must contain a valid version number (1.2.3 - major,minor,maintenance)")
317
+
put __extensionManifestValueFromTree(tManifestXMLTree, "version") intotExtensionVersion
318
+
iftheresultis notemptythen
319
+
return __extensionError(pCacheIndex,"Could not install extension. The package manifest must contain a valid version number (1.2.3 - major,minor,maintenance)")
0 commit comments