Changes

Jump to navigation Jump to search
→‎Bundle Structure: More detail, added MIME type icons
Line 35: Line 35:     
  Web.activity/
 
  Web.activity/
 +
    activity/
 +
        activity.info                          (activity info file)
 +
        activity-web.svg                      (icon for activity as specified in activity.info)
 +
        mimetypes.xml                          (map documents to MIME types)
 +
        text-plain.svg                        (icons for documents, e.g. "text-plain.svg" for "text/plain")
 +
        text-html.svg
 +
        contents                              (manifest for bundle contents)
 +
        contents.sig                          (credentials for signed bundle)
 +
        permissions.info                      (optional; '''not a stable API''')
 
     bin/
 
     bin/
         web-activity
+
         web-activity                           (launcher script or activity executable)
 
     locale/
 
     locale/
 
         de_DE/
 
         de_DE/
             activity.linfo
+
             activity.linfo                     (localized info 1)
 
         zh_CN/
 
         zh_CN/
             activity.linfo
+
             activity.linfo                     (localized info 2)
     activity/
+
     lib/
         activity.info
+
         mylib.so                              (native library)
        activity-web.svg
  −
        contents
  −
        contents.sig
  −
        mimetypes.xml
  −
        permissions.info  (optional; '''not a stable API''')
   
     icons/
 
     icons/
    
; activity
 
; activity
All metadata about the activity is organized in this subdirectory.  The <code>contents</code> and <code>contents.sig</code> are manifest and credential files for the entire bundle contents (excepting the <code>contents</code> and <code>contents.sig</code> files themselves), as described by the [[Manifest Specification]]. The optional <code>mimetypes.xml</code> file is a [http://freedesktop.org/wiki/Specifications/shared-mime-info-spec freedesktop.org MIME type file] describing how to recognize the MIME types defined by the activity.
+
All metadata about the activity is organized in this subdirectory.  The <code>contents</code> and <code>contents.sig</code> are manifest and credential files for the entire bundle contents (excepting the <code>contents</code> and <code>contents.sig</code> files themselves), as described by the [[Manifest Specification]]. The optional <code>mimetypes.xml</code> file is a [http://freedesktop.org/wiki/Specifications/shared-mime-info-spec freedesktop.org MIME type file] describing how to recognize the MIME types defined by the activity. SVG icons for those MIME types can be put in this directory as well.
 +
 
 +
;bin
 +
 
 +
Contains executables, is added to the PATH environment variable.
 +
 
 +
;lib
 +
 
 +
See [[#Bundling Native Libraries]] below.
 +
 
 +
;locale
 +
 
 +
See [[#Activity Name Localization/Translation]] below.
    
; icons
 
; icons
132

edits

Navigation menu