feat: Parse.CloudCode 1.0.6.0
https://www.parse.com/docs/cloud_code_guide
This commit is contained in:
30
Parse.CloudCode/Parse.CloudCode.nuspec
Normal file
30
Parse.CloudCode/Parse.CloudCode.nuspec
Normal 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>
|
BIN
Parse.CloudCode/cloud_code_256.png
Normal file
BIN
Parse.CloudCode/cloud_code_256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
56
Parse.CloudCode/tools/chocolateyInstall.ps1
Normal file
56
Parse.CloudCode/tools/chocolateyInstall.ps1
Normal 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
|
||||
}
|
Reference in New Issue
Block a user