param([string] $repopath = "..")
function Get-Batchfile ($file) {
$cmd = "`"$file`" & set"
cmd /c $cmd | Foreach-Object {
$p, $v = $_.split('=')
Set-Item -path env:$p -value $v
}
}
function Get-ScriptDirectory
{
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
}
$path = (Get-ScriptDirectory)
pushd $path
pushd kiln
if (test-path 'c:\pythonve\kiln25')
{
Get-Batchfile('c:\pythonve\kiln25\scripts\activate.bat')
}
python setup.py py2exe
if (test-path 'c:\pythonve\kiln25')
{
Get-Batchfile('c:\pythonve\kiln25\scripts\deactivate.bat')
}
hg -R $repopath archive -t zip dist\source.zip
popd
c:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe /p:Configuration=Release installer\RepoDirectoryMigrator\RepoDirectoryMigrator.sln
$iscc = "C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
if (-not (Test-Path $iscc))
{
$iscc = "C:\Program Files\Inno Setup 5\ISCC.exe"
}
&$iscc installer\BackendInstaller.iss /o..\build\backend
popd
|
Loading...