Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
66 lines (48 sloc) 1.52 KB
#
# Chocolatey chocolatey.me file
# https://github.com/turboapps/turbome/tree/master/chocolatey
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
requires privilege:admin
###################################
# Meta tags
###################################
meta title="Chocolatey"
meta namespace="chocolatey"
meta name="chocolatey"
###################################
# Pull dependency images
###################################
using microsoft/dotnet:4.5.2
using microsoft/powershell:3.0
using python/python:3.4.1
###################################
# Download and install
###################################
# Set working directory
cmd mkdir c:\Workspace
workdir c:\Workspace
cmd "@powershell -NoProfile -ExecutionPolicy unrestricted -Command ""(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1"" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
# Force chocolatey update
batch
chocolatey update -y
echo 1
cmd chocolatey > output.txt & echo 1
batch
echo import re >> getVersion.py
echo f = open('output.txt', 'r') >> getVersion.py
echo print(re.findall('Chocolatey v(\d+(?:\.\d+)*)', f.read() )[0]) >> getVersion.py
cmd python getVersion.py
var version = last
###################################
# Clean up
###################################
workdir c:\
cmd rmdir c:\Workspace /s /q
cmd rmdir C:\python34 /s /q
###################################
# Version
###################################
meta tag=version
meta version=version