feat: Parse.CloudCode 1.0.6.0

https://www.parse.com/docs/cloud_code_guide
This commit is contained in:
Iristyle
2013-05-08 17:51:26 -04:00
parent 13d6fe0de0
commit a27a198161
3 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>Parse.CloudCode</id>
<title>Parse Cloud Code Command Line Tools</title>
<version>1.0.6.0</version>
<authors>Parse</authors>
<owners>Ethan J Brown</owners>
<summary>Parse Cloud Code Command Line Tools, required to run custom app code in the Parse Cloud.</summary>
<description>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/
</description>
<projectUrl>https://parse.com/</projectUrl>
<tags>parse cloud mobile API</tags>
<licenseUrl>https://parse.com/about/terms</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/Parse.CloudCode/cloud_code_256.png</iconUrl>
<releaseNotes></releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -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
}