github.com/yanyiwu/go@v0.0.0-20150106053140-03d6637dbb7f/misc/makerelease/darwin/Distribution (about) 1 <?xml version="1.0" encoding="utf-8" standalone="no"?> 2 <installer-script minSpecVersion="1.000000"> 3 <title>Go</title> 4 <background mime-type="image/png" file="bg.png"/> 5 <options customize="never" allow-external-scripts="no"/> 6 <domains enable_localSystem="true" /> 7 <installation-check script="installCheck();"/> 8 <script> 9 function installCheck() { 10 if(!(system.compareVersions(system.version.ProductVersion, '10.6.0') >= 0)) { 11 my.result.title = 'Unable to install'; 12 my.result.message = 'Go requires Mac OS X 10.6 or later.'; 13 my.result.type = 'Fatal'; 14 return false; 15 } 16 if(system.files.fileExistsAtPath('/usr/local/go/bin/go')) { 17 my.result.title = 'Previous Installation Detected'; 18 my.result.message = 'A previous installation of Go exists at /usr/local/go. This installer will remove the previous installation prior to installing. Please back up any data before proceeding.'; 19 my.result.type = 'Warning'; 20 return false; 21 } 22 return true; 23 } 24 </script> 25 <choices-outline> 26 <line choice="com.googlecode.go.choice"/> 27 </choices-outline> 28 <choice id="com.googlecode.go.choice" title="Go"> 29 <pkg-ref id="com.googlecode.go.pkg"/> 30 </choice> 31 <pkg-ref id="com.googlecode.go.pkg" auth="Root">com.googlecode.go.pkg</pkg-ref> 32 </installer-script>