How to scripts in installer targets ?

Comments

1 comment

  • Avatar
    juanjo

    You can pack your scripts as with other regular files. For example, you could use:

       <folder>
         <description>OS X Files and scripts</description>
         <destination>${installdir}</destination>
         <name>osxfiles</name>
         <platforms>osx</platforms>
         <distributionFileList>
           <distributionFile>
             <origin>/path/to/osx.cpgz</origin>
           </distributionFile>
           <distributionFile>
             <origin>/path/to/osx-script.sh</origin>
           </distributionFile>
         </distributionFileList>
       </folder>
       <folder>
         <description>Windows Files and scripts</description>
         <destination>${installdir}</destination>
         <name>windowsfiles</name>
         <platforms>windows</platforms>
         <distributionFileList>
           <distributionFile>
             <origin>/path/to/windows.zip</origin>
           </distributionFile>
           <distributionFile>
             <origin>/path/to/windows-script.bat</origin>
           </distributionFile>
         </distributionFileList>
       </folder>
    

Please sign in to leave a comment.