diff --git a/Parse.CloudCode/Parse.CloudCode.nuspec b/Parse.CloudCode/Parse.CloudCode.nuspec new file mode 100644 index 0000000..a4ad40e --- /dev/null +++ b/Parse.CloudCode/Parse.CloudCode.nuspec @@ -0,0 +1,30 @@ + + + + Parse.CloudCode + Parse Cloud Code Command Line Tools + 1.0.6.0 + Parse + Ethan J Brown + Parse Cloud Code Command Line Tools, required to run custom app code in the Parse Cloud. + Parse's vision is to let developers build any mobile app without dealing with servers. For complex apps, sometimes you just need a bit of logic that isn't running on a mobile device. Cloud Code makes this possible. + +Cloud Code is easy to use because it's built on the same JavaScript SDK that powers thousands of apps. The only difference is that this code runs in the Parse Cloud rather than running on a mobile device. When you update your Cloud Code, it becomes available to all mobile environments instantly. You don't have to wait for a new release of your application. This lets you change app behavior on the fly and add new features faster. + +Even if you're only familiar with mobile development, we hope you'll find Cloud Code straightforward and easy to use. + +https://www.parse.com/products/cloud_code +https://www.parse.com/docs/cloud_code_guide +http://blog.parse.com/2012/10/25/parse-command-line-tools-available-for-windows/ + + https://parse.com/ + parse cloud mobile API + https://parse.com/about/terms + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/Parse.CloudCode/cloud_code_256.png + + + + + + diff --git a/Parse.CloudCode/cloud_code_256.png b/Parse.CloudCode/cloud_code_256.png new file mode 100644 index 0000000..0249b25 Binary files /dev/null and b/Parse.CloudCode/cloud_code_256.png differ diff --git a/Parse.CloudCode/tools/chocolateyInstall.ps1 b/Parse.CloudCode/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..af66b6f --- /dev/null +++ b/Parse.CloudCode/tools/chocolateyInstall.ps1 @@ -0,0 +1,56 @@ +$package = 'Parse.CloudCode' + +try { + # 1 click-once installer, requires some hoops to install silently + # and if so, will not install pre-reqs - sad panda :( + # https://parse.com/downloads/windows/console/setup.exe + + # there is also a Windows 8 application + # https://parse.com/downloads/windows/console/ParseConsole.application + + # https://www.parse.com/docs/cloud_code_guide + # http://stackoverflow.com/questions/12436475/how-to-install-parse-com-cloud-code-on-windows + # http://blog.parse.com/2012/10/25/parse-command-line-tools-available-for-windows/ + + $params = @{ + PackageName = $package; + FileType = 'zip'; + Url = 'https://www.parse.com/downloads/windows/console/parse.zip'; + UnzipLocation = Join-Path $Env:SystemDrive 'tools'; + } + + $binRoot = Join-Path $Env:SystemDrive $Env:Chocolatey_Bin_Root + if (Test-Path $binRoot) + { + $params.UnzipLocation = $binRoot + } + + $params.UnzipLocation = Join-Path $params.UnzipLocation 'parse' + if (!(Test-Path($params.UnzipLocation))) + { + New-Item $params.UnzipLocation -Type Directory + } + + Install-ChocolateyZipPackage @params + + Get-ChocolateyBins $params.UnzipLocation + + # ParseConsole.exe is just a simple wrapper around some .NET code + # so we can simulate that (thanks Reflector ;0) + $location = Join-Path $params.UnzipLocation 'ParseConsole.Exe' + $root = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\' + + Write-Host 'Registering Parse Console in registry' + @( + @{Name = 'parse.exe'; Value = $location} + @{Name = 'parseconsole.exe'; Value = $location} + ) | + % { + New-Item -Path $root @_ -Force | Out-Null + } + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}