Kiln » Kiln Storage Service Read More
Clone URL:  
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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