Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions chocolatey/chocolatey.me
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
###################################

from microsoft/dotnet:4.0.3
using python/python:3.4.1


###################################
# Download and install
Expand All @@ -27,16 +27,12 @@ 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*\.\d*\.\d*)', f.read() )[0]) >> getVersion.py

cmd python getVersion.py
#Get version number
cmd "echo (Get-Item ""c:\ProgramData\chocolatey\choco.exe"").VersionInfo.ProductVersion >> GetVersion.ps1"
cmd "powershell -executionpolicy remotesigned -File ""GetVersion.ps1"" "
var version = $out


###################################
# Environment Variables
###################################
Expand All @@ -51,7 +47,6 @@ var version = $out
workdir c:\

cmd rmdir c:\Workspace /s /q
cmd rmdir C:\python34 /s /q


###################################
Expand All @@ -68,4 +63,4 @@ meta tag=$version
# Startup File
###################################

# startup file ("cmd","/k echo Chocolatey version: ", $version)
startup file ("cmd","/k echo Chocolatey version: ", $version)