Changes

no edit summary
Line 67: Line 67:  
* testing
 
* testing
 
* stable
 
* stable
 +
 +
'''requires''' = <dependency> [; ...]
 +
 +
Optional. List of [[Platform_Team/Guide/Sweets_Packaging#Dependencies|dependencies]] that should exist at run-time before launching the sweet.
 +
 +
'''suggests''' = <dependency> [; ...]
 +
 +
Optional. List of [[Platform_Team/Guide/Sweets_Packaging#|Dependenciesdependencies]] that will be demanded to be present at run-time only if it was explicitly required from a user.
    
=== [Activity] ===
 
=== [Activity] ===
Line 91: Line 99:     
Optional. List of mime types supported by the activity. It's used when opening a file from the web, or to present to the user a list of activities that can open a certain Journal object.
 
Optional. List of mime types supported by the activity. It's used when opening a file from the web, or to present to the user a list of activities that can open a certain Journal object.
  −
'''requires''' = <dependency> [(=|>=|<) <version>] [; ...]
  −
  −
Optional. List of [[Platform_Team/Guide/Sweets_Packaging#Interfaces|dependencies]] that should exist at run-time before launching the activity.
      
=== [Application] ===
 
=== [Application] ===
Line 103: Line 107:     
Required. The relative path of an executable command inside the implementation that should be executed by default when the sweet is run. Command can have optional arguments.
 
Required. The relative path of an executable command inside the implementation that should be executed by default when the sweet is run. Command can have optional arguments.
  −
'''requires''' = <dependency> [(=|>=|<) <version>] [; ...]
  −
  −
Optional. List of [[Platform_Team/Guide/Sweets_Packaging#Interfaces|dependencies]] that should exist at run-time before launching the application.
      
=== [Library] ===
 
=== [Library] ===
Line 113: Line 113:     
Required. The environment variables 0install should export to the process that uses this sweet.
 
Required. The environment variables 0install should export to the process that uses this sweet.
  −
'''requires''' = <dependency> [(=|>=|<) <version>] [; ...]
  −
  −
Optional. List of [[Platform_Team/Guide/Sweets_Packaging#Interfaces|dependencies]] the library is based on.
      
=== [Package] ===
 
=== [Package] ===
Line 148: Line 144:     
Required. The filename with sources bundle.
 
Required. The filename with sources bundle.
  −
'''requires''' = <dependency> [(=|>=|<) <version>] [; ...]
  −
  −
Optional. List of [[Platform_Team/Guide/Sweets_Packaging#Interfaces|dependencies]] the package is based on.
      
  '''patches''' = <patch-filename> [patch-level] [; ...]
 
  '''patches''' = <patch-filename> [patch-level] [; ...]
Line 215: Line 207:  
'''NOTE''' The commands in this section will be executed, not only in the developer's environment, but also in the user's, if a proper binary wasn't found; so move all development-related commands, like {{Code|autogen.sh}}, to the ''[Source]'' section.
 
'''NOTE''' The commands in this section will be executed, not only in the developer's environment, but also in the user's, if a proper binary wasn't found; so move all development-related commands, like {{Code|autogen.sh}}, to the ''[Source]'' section.
   −
  '''requires''' = <dependency-name> [(=|>=|<) <version>] [; ...]
+
  '''requires''' = <dependency> [; ...]
   −
Optional. This defines what [[Platform_Team/Guide/Sweets_Packaging#Interfaces|dependencies]] should be present before building the sweet from sources. Note that ''requires'' from [[#.5BComponent.5D|[Component]]] sections are not auto included in the build-time dependencies.
+
Optional. This defines what [[Platform_Team/Guide/Sweets_Packaging#Dependencies|dependencies]] should be present before building the sweet from sources. Note that ''requires'' from [[#.5BComponent.5D|[Component]]] sections are not auto included in the build-time dependencies.
    
  '''clean''' = <shell-command>
 
  '''clean''' = <shell-command>
Line 246: Line 238:  
Optional. If the ''exec'' option was not used, all files will be bundled and these [[Platform_Team/Guide/Sweets_Packaging#Glob_patterns|glob patterns]] might be used to reify the selection.
 
Optional. If the ''exec'' option was not used, all files will be bundled and these [[Platform_Team/Guide/Sweets_Packaging#Glob_patterns|glob patterns]] might be used to reify the selection.
   −
  '''requires''' = <dependency> [(=|>=|<) <version>] [; ...]
+
  '''requires''' = <dependency> [; ...]
   −
Optional. The dependencies that should be present before creating sources tarball. For example, if the ''exec'' command generates .c files from .vala, the vala dependency should be mentioned in the ''requires'' option.
+
Optional. The [[Platform_Team/Guide/Sweets_Packaging#Dependencies|dependencies]] that should be present before creating sources tarball. For example, if the ''exec'' command generates .c files from .vala, the vala dependency should be mentioned in the ''requires'' option.
    
== Predefined options ==
 
== Predefined options ==