Skip to content

Commit

Permalink
working on it
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Dec 12, 2017
1 parent da710b0 commit 5f839ac
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,17 @@ environment:
auth_token:
secure: /WceWguzAExHlMwJIOMl2MxPw+QmMne5MGQItu45rQ66xLoKLYGVQ8taqaLkrMYD
install:
- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
- git clone -b v2.1 --single-branch --depth=1 https://github.com/LuaJIT/LuaJIT.git C:\luajit
- git clone --depth=1 https://github.com/zhaozg/lua-openssl.git c:\lua-openssl
- git clone https://github.com/moteus/lua-llthreads2.git C:\llthreads2
- ps: >-
# build LuaJIT
function Invoke-CmdScript {
param(
[String] $scriptName
)
$cmdLine = """$scriptName"" $args & set"
& $Env:SystemRoot\system32\cmd.exe /c $cmdLine |
select-string '^([^=]*)=(.*)$' | foreach-object {
$varName = $_.Matches[0].Groups[1].Value
$varValue = $_.Matches[0].Groups[2].Value
set-item Env:$varName $varValue
}
}
git clone -b v2.1 --single-branch --depth=1 https://github.com/LuaJIT/LuaJIT.git C:\luajit
pushd c:\luajit\src
(Get-Content msvcbuild.bat) | ForEach-Object { $_ -replace " /MD " , " /MT " } | Set-Content msvcbuild.bat
Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
msvcbuild.bat
copy luajit.exe C:\
Expand All @@ -42,8 +29,6 @@ install:
# build lua-openssl
git clone --depth=1 https://github.com/zhaozg/lua-openssl.git c:\lua-openssl
popd
pushd c:\lua-openssl
Expand All @@ -64,8 +49,6 @@ install:
# build lua-llthreads2
git clone https://github.com/moteus/lua-llthreads2.git C:\llthreads2
popd
pushd C:\
Expand Down

0 comments on commit 5f839ac

Please sign in to comment.