Commit fffaa682 authored by sowidvhu's avatar sowidvhu
Browse files

remove dir

parent fdcad318
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>CoffeeScript</id>
<title>CoffeeScript</title>
<version>1.3.1.01</version>
<authors>Jeremy Ashkenas</authors>
<owners>Elliando Dias</owners>
<summary>CoffeeScript is a little language that compiles into JavaScript</summary>
<description>CoffeeScript is a little language that compiles into JavaScript. Underneath all those
awkward braces and semicolons, JavaScript has always had a gorgeous object model at its heart.
CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way</description>
<projectUrl>http://coffeescript.org/</projectUrl>
<tags>coffeescript javascript</tags>
<copyright>Copyright (c) 2009-2012 Jeremy Ashkenas</copyright>
<licenseUrl>https://github.com/jashkenas/coffee-script/blob/master/LICENSE</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://bodil.github.com/coffeescript/media/coffeescript_logo.png</iconUrl>
<dependencies>
<dependency id="nodejs.install"/>
</dependencies>
<releaseNotes></releaseNotes>
</metadata>
</package>
\ No newline at end of file
# SETX NODE_PATH %PROGRAMFILES%\nodejs\node_modules
# %APPDATA%\npm\node_modules
function is64bit() {
return ([IntPtr]::Size -eq 8)
}
function get-programfilesdir() {
if (is64bit -eq $true) {
(Get-Item "Env:ProgramFiles(x86)").Value
}
else {
(Get-Item "Env:ProgramFiles").Value
}
}
$program_files = get-programfilesdir
cd "$program_files\nodejs"
invoke-expression "npm install -g coffee-script"
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Desktops</id>
<title>Desktops</title>
<version>1.02</version>
<authors>Mark Russinovich and Bryce Cogswell</authors>
<owners>Elliando Dias</owners>
<summary>Desktops allows you to organize your applications on up to four virtual desktops</summary>
<description>Desktops allows you to organize your applications on up to four virtual desktops</description>
<projectUrl>http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx</projectUrl>
<tags>desktops sysinternals virtual-desktops</tags>
<copyright>Copyright 2006-2008 Mark Russinovich and Bryce Cogswell</copyright>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<!--<iconUrl>https://github.com/ferventcoder/nugetpackages/raw/master/Desktops/Desktops.gif</iconUrl>-->
<!--<dependencies>
<dependency id="" version="" />
</dependencies>-->
<releaseNotes></releaseNotes>
</metadata>
</package>
\ No newline at end of file
#unzip
$dest = $env:USERPROFILE
Install-ChocolateyZipPackage 'Desktops' 'http://download.sysinternals.com/files/Desktops.zip' "$dest"
#shortcut
$target = Join-Path $dest 'Desktops.exe'
Install-ChocolateyDesktopLink $target
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Gow</id>
<title>Gow</title>
<version>0.7.0</version>
<authors>Brent R. Matzelle</authors>
<owners>Elliando Dias</owners>
<summary>Gow (Gnu On Windows) is the lightweight alternative to Cygwin. It uses a
convenient Windows installer that installs about 130 extremely useful
open source UNIX applications compiled as native win32 binaries. It is
designed to be as small as possible, about 10 MB, as opposed to Cygwin
which can run well over 100 MB depending upon options</summary>
<description>Unix command line utilities installer for Windows</description>
<projectUrl>https://github.com/bmatzelle/gow/wiki/</projectUrl>
<tags>gow admin linux</tags>
<copyright>Copyright (c) 2006 - 2012 Brent R. Matzelle</copyright>
<licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<!--<iconUrl>https://github.com/ferventcoder/nugetpackages/raw/master/Gow/Gow.gif</iconUrl>-->
<releaseNotes></releaseNotes>
</metadata>
</package>
\ No newline at end of file
$version='0.7.0'
Install-ChocolateyPackage 'Gow' 'exe' '/S' "https://github.com/downloads/bmatzelle/gow/Gow-$version.exe" -validExitCodes @(0)
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>jdownloader</id>
<title>JDownloader</title>
<version>0.9.581</version>
<authors>Rob Reynolds</authors>
<owners>Elliando Dias</owners>
<summary>JDownloader is a free, open-source download management tool with a huge community
of developers that makes downloading as easy and fast as it should be</summary>
<description>JDownloader is a tool that makes downloading as easy and fast</description>
<projectUrl>http://jdownloader.org</projectUrl>
<tags>download-manager jdownloader</tags>
<copyright>JD Team</copyright>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://jdownloader.org/_media/knowledge/wiki/jdownloader.png?w=150</iconUrl>
<!--<dependencies>
<dependency id="java" version="" />
</dependencies>-->
<releaseNotes></releaseNotes>
</metadata>
</package>
Install-ChocolateyPackage 'JDownloader' 'exe' '-q' 'http://installer.jdownloader.org/JDownloaderSetup.exe'
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>java.jdk</id>
<title>Java.JDK</title>
<version>7.4</version>
<authors>Sun Microsystems/Oracle Corporation</authors>
<owners>Elliando Dias</owners>
<summary>The Java Development Kit (JDK) is an Oracle Corporation product aimed at Java developers</summary>
<description>Java Development Kit (JDK)</description>
<projectUrl>http://www.oracle.com/technetwork/java/javase/downloads/index.html</projectUrl>
<tags>java jdk</tags>
<copyright>Copyright 1993, 2012, Oracle and/or its affiliates. All rights reserved.</copyright>
<licenseUrl>http://www.oracle.com/technetwork/java/javase/terms/license/index.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://deadmango.com/wp-content/uploads/2011/11/java-logo.jpg</iconUrl>
<dependencies>
<dependency id="gow"/> <!-- using wget package -->
</dependencies>
<releaseNotes>It will install java jdk using wget command line.
After installing it will set CLASSPATH and JAVA_HOME environment variables</releaseNotes>
</metadata>
</package>
\ No newline at end of file
### useful links ###
# https://github.com/adorepump/chocolatey-packages/tree/master/Java.JDK
# https://github.com/flexiondotorg/oab-java6/issues/22
# http://www.oracle.com/technetwork/java/javase/downloads/index.html
# 'http://download.oracle.com/otn-pub/java/jdk/7u4-b22/jdk-7u4-windows-i586.exe'
# 'http://download.oracle.com/otn-pub/java/jdk/7u4-b22/jdk-7u4-windows-x64.exe'
$jdk_version = '7u4'
$java_version = '1.7.0' # cmd> java -version => "1.7.0_04"
$package_name = 'Java.JDK'
function _cmd($command) {
Write-Host "executing cmd> $command"
$result = cmd.exe /c "$command 2>&1" #stderr hack
return $result
}
function is64bit() {
return ([IntPtr]::Size -eq 8)
}
function has_file($filename) {
return Test-Path $filename
}
function get-programfilesdir() {
if (is64bit -eq $true) {
(Get-Item "Env:ProgramFiles(x86)").Value
}
else {
(Get-Item "Env:ProgramFiles").Value
}
}
function set-env-var([string]$name, [string]$value, [string]$type = 'User') {
if ($type -eq 'Machine') {
$cmd = "[Environment]::SetEnvironmentVariable('$name', '$value', 'Machine')"
Start-ChocolateyProcessAsAdmin $cmd
}
else {
[Environment]::SetEnvironmentVariable($name, $value, 'User')
}
}
function download-from-oracle($url, $output_filename, $part) {
if (-not (has_file($output_fileName))) {
$cookies="oraclelicense$part-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"
$cmd = "wget --no-check-certificate --header=""Cookie: $cookies"" -x -c ""$url"" -O ""$output_filename""" # -nc
w_cmd $cmd
}
}
function download-jdk-file($url, $output_filename) {
download-from-oracle $url $output_filename "jdk-$jdk_version"
}
function download-jdk() {
if (is64bit) {
$osStr = 'x64'
}
else {
$osStr = 'i586'
}
$filename = "jdk-7u4-windows-$osStr.exe"
$url = "http://download.oracle.com/otn-pub/java/jdk/7u4-b22/$filename"
$package_dir = Join-Path $env:TEMP "chocolatey\$package_name"
$output_filename = Join-Path $package_dir $filename
download-jdk-file $url $output_filename
return $output_filename
}
function chocolatey-install() {
try {
Write-Host "Downloading JDK using WGET, wait..."
$jdk_file = download-jdk
if (has_file $jdk_file) {
Write-Host "Installing JDK from file '$jdk_file'"
Install-ChocolateyInstallPackage 'Java.jdk' 'exe' '/QN /NORESTART' $jdk_file
$program_files = get-programfilesdir
$java_home = Join-Path $program_files "Java\jdk$java_version" #jdk1.6.0_17
$java_bin = Join-Path $java_home 'bin'
Install-ChocolateyPath $java_bin 'Machine'
if ([Environment]::GetEnvironmentVariable('CLASSPATH','Machine') -eq $null) {
set-env-var 'CLASSPATH' '.;' "Machine"
}
set-env-var 'JAVA_HOME' $java_home 'Machine'
Write-ChocolateySuccess 'Java.JDK'
}
else {
Write-ChocolateyFailure 'Java.JDK' "File '$jdk_file' not found"
}
} catch {
Write-ChocolateyFailure 'Java.JDK' "$($_.Exception.Message)"
throw
}
}
#installs Java.JDK
chocolatey-install
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment