|
111 | 111 | <platforms>osx</platforms> |
112 | 112 | <distributionFileList> |
113 | 113 | <distributionFile> |
114 | | - <origin>darwin/org.whitecatboard.the-whitecat-create-agent.plist</origin> |
| 114 | + <origin>darwin/org.whitecatboard.TheWhitecatCreateAgent.plist</origin> |
| 115 | + </distributionFile> |
| 116 | + </distributionFileList> |
| 117 | + </folder> |
| 118 | + <folder> |
| 119 | + <description>System Files</description> |
| 120 | + <destination>/usr/bin</destination> |
| 121 | + <name>newfolder5</name> |
| 122 | + <platforms>osx</platforms> |
| 123 | + <distributionFileList> |
| 124 | + <distributionFile> |
| 125 | + <origin>darwin/wccagent</origin> |
115 | 126 | </distributionFile> |
116 | 127 | </distributionFileList> |
117 | 128 | </folder> |
|
150 | 161 | </startMenuShortcutList> |
151 | 162 | </component> |
152 | 163 | </componentList> |
153 | | - <preInstallationActionList> |
154 | | - <runProgram> |
155 | | - <abortOnError>0</abortOnError> |
156 | | - <program>/bin/launchctl</program> |
157 | | - <programArguments>unload -w /Library/LaunchAgents/org.whitecatboard.the-whitecat-create-agent.plist</programArguments> |
158 | | - <showMessageOnError>0</showMessageOnError> |
| 164 | + <initializationActionList> |
| 165 | + <setInstallerVariable> |
| 166 | + <name>app_folder</name> |
| 167 | + <value>${installdir}/${product_fullname}.app/Contents/MacOS</value> |
159 | 168 | <ruleList> |
160 | 169 | <platformTest> |
161 | 170 | <type>osx</type> |
162 | 171 | </platformTest> |
163 | 172 | </ruleList> |
164 | | - </runProgram> |
165 | | - <runProgram> |
166 | | - <abortOnError>0</abortOnError> |
167 | | - <program>killall</program> |
168 | | - <programArguments>whitecat-create-agent</programArguments> |
169 | | - <showMessageOnError>0</showMessageOnError> |
170 | | - <ruleList> |
171 | | - <platformTest> |
172 | | - <type>linux-x64</type> |
173 | | - </platformTest> |
174 | | - </ruleList> |
175 | | - </runProgram> |
| 173 | + </setInstallerVariable> |
| 174 | + </initializationActionList> |
| 175 | + <readyToInstallActionList> |
176 | 176 | <runProgram> |
177 | 177 | <abortOnError>0</abortOnError> |
178 | 178 | <program>stop.bat</program> |
|
188 | 188 | </platformTest> |
189 | 189 | </ruleList> |
190 | 190 | </runProgram> |
191 | | - </preInstallationActionList> |
192 | | - <postInstallationActionList> |
193 | | - <registrySet> |
194 | | - <key>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run</key> |
195 | | - <name>${product_fullname}</name> |
196 | | - <type>REG_SZ</type> |
197 | | - <value>"${installdir}\whitecat-create-agent.exe"</value> |
198 | | - </registrySet> |
199 | 191 | <runProgram> |
200 | 192 | <abortOnError>0</abortOnError> |
201 | 193 | <program>/bin/launchctl</program> |
202 | | - <programArguments>load -w /Library/LaunchAgents/org.whitecatboard.the-whitecat-create-agent.plist</programArguments> |
| 194 | + <programArguments>unload -w /Library/LaunchAgents/org.whitecatboard.TheWhitecatCreateAgent.plist</programArguments> |
203 | 195 | <showMessageOnError>0</showMessageOnError> |
204 | 196 | <ruleList> |
205 | 197 | <platformTest> |
206 | 198 | <type>osx</type> |
207 | 199 | </platformTest> |
208 | 200 | </ruleList> |
209 | 201 | </runProgram> |
210 | | - <runProgram> |
211 | | - <abortOnError>0</abortOnError> |
212 | | - <program>start.bat</program> |
213 | | - <programArguments></programArguments> |
214 | | - <showMessageOnError>0</showMessageOnError> |
215 | | - <workingDirectory>${installdir}</workingDirectory> |
216 | | - <ruleList> |
217 | | - <platformTest> |
218 | | - <type>windows</type> |
219 | | - </platformTest> |
220 | | - </ruleList> |
221 | | - </runProgram> |
222 | | - </postInstallationActionList> |
| 202 | + </readyToInstallActionList> |
223 | 203 | <preUninstallationActionList> |
224 | | - <runProgram> |
225 | | - <abortOnError>0</abortOnError> |
226 | | - <program>/bin/launchctl</program> |
227 | | - <programArguments>unload -w /Library/LaunchAgents/org.whitecatboard.the-whitecat-create-agent.plist</programArguments> |
228 | | - <showMessageOnError>0</showMessageOnError> |
229 | | - <ruleList> |
230 | | - <platformTest> |
231 | | - <type>osx</type> |
232 | | - </platformTest> |
233 | | - </ruleList> |
234 | | - </runProgram> |
235 | 204 | <registryDelete> |
236 | 205 | <abortOnError>0</abortOnError> |
237 | 206 | <key>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run</key> |
238 | 207 | <name>${product_fullname}</name> |
| 208 | + <showMessageOnError>0</showMessageOnError> |
239 | 209 | </registryDelete> |
240 | 210 | <runProgram> |
241 | 211 | <abortOnError>0</abortOnError> |
|
253 | 223 | </runProgram> |
254 | 224 | <runProgram> |
255 | 225 | <abortOnError>0</abortOnError> |
256 | | - <program>killall</program> |
257 | | - <programArguments>whitecat-create-agent</programArguments> |
258 | | - <run>0</run> |
259 | | - <show>0</show> |
| 226 | + <program>/bin/launchctl</program> |
| 227 | + <programArguments>unload -w /Library/LaunchAgents/org.whitecatboard.TheWhitecatCreateAgent.plist</programArguments> |
260 | 228 | <showMessageOnError>0</showMessageOnError> |
261 | 229 | <ruleList> |
262 | 230 | <platformTest> |
263 | | - <type>linux-x64</type> |
| 231 | + <type>osx</type> |
264 | 232 | </platformTest> |
265 | 233 | </ruleList> |
266 | 234 | </runProgram> |
|
278 | 246 | <vendor>whitecatboard.org</vendor> |
279 | 247 | <windowsExecutableIcon>whitecat.ico</windowsExecutableIcon> |
280 | 248 | <windowsUninstallerExecutableIcon>uninstall.ico</windowsUninstallerExecutableIcon> |
| 249 | + <finalPageActionList> |
| 250 | + <registrySet> |
| 251 | + <abortOnError>0</abortOnError> |
| 252 | + <key>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run</key> |
| 253 | + <name>${product_fullname}</name> |
| 254 | + <show>0</show> |
| 255 | + <showMessageOnError>0</showMessageOnError> |
| 256 | + <type>REG_SZ</type> |
| 257 | + <value>"${installdir}\whitecat-create-agent.exe"</value> |
| 258 | + </registrySet> |
| 259 | + <runProgram> |
| 260 | + <abortOnError>0</abortOnError> |
| 261 | + <program>/bin/launchctl</program> |
| 262 | + <programArguments>unload -w /Library/LaunchAgents/org.whitecatboard.TheWhitecatCreateAgent.plist</programArguments> |
| 263 | + <show>0</show> |
| 264 | + <showMessageOnError>0</showMessageOnError> |
| 265 | + <ruleList> |
| 266 | + <platformTest> |
| 267 | + <type>osx</type> |
| 268 | + </platformTest> |
| 269 | + </ruleList> |
| 270 | + </runProgram> |
| 271 | + <runProgram> |
| 272 | + <abortOnError>0</abortOnError> |
| 273 | + <program>/bin/launchctl</program> |
| 274 | + <programArguments>load -w /Library/LaunchAgents/org.whitecatboard.TheWhitecatCreateAgent.plist</programArguments> |
| 275 | + <show>0</show> |
| 276 | + <showMessageOnError>0</showMessageOnError> |
| 277 | + <ruleList> |
| 278 | + <platformTest> |
| 279 | + <type>osx</type> |
| 280 | + </platformTest> |
| 281 | + </ruleList> |
| 282 | + </runProgram> |
| 283 | + <runProgram> |
| 284 | + <abortOnError>0</abortOnError> |
| 285 | + <program>start.bat</program> |
| 286 | + <programArguments></programArguments> |
| 287 | + <show>0</show> |
| 288 | + <showMessageOnError>0</showMessageOnError> |
| 289 | + <workingDirectory>${installdir}</workingDirectory> |
| 290 | + <ruleList> |
| 291 | + <platformTest> |
| 292 | + <type>windows</type> |
| 293 | + </platformTest> |
| 294 | + </ruleList> |
| 295 | + </runProgram> |
| 296 | + </finalPageActionList> |
281 | 297 | <parameterList> |
282 | 298 | <directoryParameter> |
283 | 299 | <name>installdir</name> |
|
0 commit comments