visnow.xml 10.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
<project>
    <shortName>VisNow</shortName>
    <fullName>VisNow</fullName>
    <version>1.3</version>
    <readmeFile>dist/README.TXT</readmeFile>
    <licenseFile>dist/LICENSE</licenseFile>
    <wrapLicenseFileText>0</wrapLicenseFileText>
    <leftImage>icons/leftSideImage.png</leftImage>
    <logoImage>icons/vn.png</logoImage>
    <splashImage>src/splash/splash07.png</splashImage>
    <wmImage>icons/vn.png</wmImage>
    <allowLanguageSelection>1</allowLanguageSelection>
    <componentList>
        <component>
            <name>default</name>
            <description>Default Component</description>
            <canBeEdited>1</canBeEdited>
            <selected>1</selected>
            <show>1</show>
            <desktopShortcutList>
                <shortcut>
                    <comment>Launch ${product_shortname}-${product_version}</comment>
                    <exec></exec>
                    <icon></icon>
                    <name>${product_shortname}-${product_version}</name>
                    <path></path>
                    <platforms>all</platforms>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}/${product_shortname}-${product_version}.${platform_exec_suffix}</windowsExec>
                    <windowsExecArgs></windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}/</windowsPath>
                </shortcut>
            </desktopShortcutList>
            <folderList>
                <folder>
                    <description>Program Files</description>
                    <destination>${installdir}</destination>
                    <name>programfiles</name>
                    <platforms>all</platforms>
                    <distributionFileList>
                        <distributionFile>
                            <origin>dist/COPYING</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>dist/LICENSE</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>dist/LICENSE-Java3D</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>dist/README.TXT</origin>
                        </distributionFile>
                        <distributionFile>
                            <origin>dist/VisNow.jar</origin>
                        </distributionFile>
                        <distributionDirectory>
                            <origin>dist/config_templates</origin>
                        </distributionDirectory>
                        <distributionDirectory>
                            <origin>dist/doc</origin>
                        </distributionDirectory>
                        <distributionDirectory>
                            <origin>dist/lib</origin>
                        </distributionDirectory>
                        <distributionDirectory>
                            <origin>sample_data</origin>
                        </distributionDirectory>
                        <distributionDirectory>
                            <origin>icons</origin>
                        </distributionDirectory>
                    </distributionFileList>
                    <shortcutList>
                        <shortcut>
                            <comment>Uninstall</comment>
                            <exec>${installdir}/${uninstallerName}</exec>
                            <icon></icon>
                            <name>Uninstall ${product_shortname}-${product_version}</name>
                            <path>${installdir}</path>
                            <platforms>all</platforms>
                            <runAsAdmin>0</runAsAdmin>
                            <runInTerminal>0</runInTerminal>
                            <windowsExec>${installdir}/${uninstallerName}.${platform_exec_suffix}</windowsExec>
                            <windowsExecArgs></windowsExecArgs>
                            <windowsIcon></windowsIcon>
                            <windowsPath>${installdir}</windowsPath>
                        </shortcut>
                    </shortcutList>
                </folder>
            </folderList>
            <startMenuShortcutList>
                <startMenuShortcut>
                    <comment>Uninstall ${product_shortname}-${product_version}</comment>
                    <name>Uninstall ${product_shortname}-${product_version}</name>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}/${uninstallerName}.${platform_exec_suffix}</windowsExec>
                    <windowsExecArgs></windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}/</windowsPath>
                </startMenuShortcut>
            </startMenuShortcutList>
        </component>
        <include>
            <file>java.xml</file>
        </include>
    </componentList>
    <initializationActionList>
        <setInstallerVariable>
            <name>java_launcher_jar</name>
            <value>VisNow.jar</value>
        </setInstallerVariable>
    </initializationActionList>
    <postInstallationActionList>
        <actionGroup>
            <actionList>
                <createSymLink linkName="~/Desktop/${product_shortname}-${product_version}.app" target="${installdir}/${product_shortname}-${product_version}.app"/>
            </actionList>
            <ruleList>
                <platformTest type="osx"/>
            </ruleList>
        </actionGroup>
        <actionGroup>
            <actionList>
                <writeFile>
                    <encoding>utf-8</encoding>
                    <path>~/.local/share/applications/${product_shortname}-${product_version}.desktop</path>
                    <text>[Desktop Entry]
                        Type=Application
                        Version=0.9.4
                        Name=${product_shortname}-${product_version}
                        Comment=${product_shortname}-${product_version}
                        Path=${installdir}
                        Icon=${installdir}/icons/vn.png
                        Exec=${installdir}/${product_shortname}-${product_version}.${platform_exec_suffix}
                        Terminal=false</text>
                </writeFile>
                <iniFileSet>
                    <file>~/Desktop/${product_shortname}-${product_version}.desktop</file>
                    <key>Path</key>
                    <section>Desktop Entry</section>
                    <value>${installdir}</value>
                </iniFileSet>
                <iniFileSet>
                    <file>~/Desktop/${product_shortname}-${product_version}.desktop</file>
                    <key>Icon</key>
                    <section>Desktop Entry</section>
                    <value>${installdir}/icons/vn.png</value>
                </iniFileSet>
                <iniFileSet>
                    <file>~/Desktop/${product_shortname}-${product_version}.desktop</file>
                    <key>Exec</key>
                    <section>Desktop Entry</section>
                    <value>${installdir}/${product_shortname}-${product_version}.${platform_exec_suffix}</value>
                </iniFileSet>
            </actionList>
            <ruleList>
                <platformTest type="linux-x64"/>
            </ruleList>
        </actionGroup>
    </postInstallationActionList>
    <createOsxBundleDmg>1</createOsxBundleDmg>
    <enableRollback>1</enableRollback>
    <enableTimestamp>1</enableTimestamp>
    <osxApplicationBundleIcon>icons/vn.icns</osxApplicationBundleIcon>
    <osxUninstallerApplicationBundleIcon>icons/vn.icns</osxUninstallerApplicationBundleIcon>
    <outputDirectory>..</outputDirectory>
    <saveRelativePaths>1</saveRelativePaths>
    <vendor>ICM-UW</vendor>
    <windowsExecutableIcon>icons/vn.ico</windowsExecutableIcon>
    <windowsUninstallerExecutableIcon>icons/vn.ico</windowsUninstallerExecutableIcon>
    <finalPageActionList>
        <actionGroup progressText="Run ${product_shortname} now">
            <actionList>
                <runProgram>
                    <program>${installdir}/${product_shortname}-${product_version}.${platform_exec_suffix}</program>
                    <programArguments>&amp;</programArguments>

                    <!-- Use long filename -->
                    <useMSDOSPath>0</useMSDOSPath>
                </runProgram>
            </actionList>
            <ruleList>
                <platformTest type="windows"/>
            </ruleList>
        </actionGroup>
        <actionGroup progressText="Run ${product_shortname} now">
            <actionList>
                <runProgram>
                    <program>${installdir}/${product_shortname}-${product_version}.${platform_exec_suffix}</program>
                    <programArguments>&amp;</programArguments>
                </runProgram>
            </actionList>
            <ruleList>
                <platformTest type="linux-x64"/>
            </ruleList>
        </actionGroup>
        <actionGroup progressText="Run ${product_shortname} now">
            <actionList>
                <runProgram>
                    <program>open</program>
                    <programArguments>-W "${installdir}/${product_shortname}-${product_version}.app"</programArguments>
                </runProgram>
            </actionList>
            <ruleList>
                <platformTest type="osx"/>
            </ruleList>
        </actionGroup>
    </finalPageActionList>
    <parameterList>
        <directoryParameter>
            <name>installdir</name>
            <description>Installer.Parameter.installdir.description</description>
            <explanation>Installer.Parameter.installdir.explanation</explanation>
            <value></value>
            <default>${platform_install_prefix}/${product_shortname}-${product_version}</default>
            <allowEmptyValue>0</allowEmptyValue>
            <ask>yes</ask>
            <cliOptionName>prefix</cliOptionName>
            <mustBeWritable>yes</mustBeWritable>
            <mustExist>0</mustExist>
            <width>30</width>
        </directoryParameter>
    </parameterList>
</project>