Skip to content

Commit

Permalink
Merge branch 'build_all_dlls' into MUSHclient
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Dec 12, 2017
2 parents c7205c2 + 4c0d071 commit 6040490
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 3 deletions.
Binary file modified MUSHclient/MUSHclient.exe
Binary file not shown.
Binary file removed MUSHclient/libeay32.dll
Binary file not shown.
Binary file removed MUSHclient/llthreads.dll
Binary file not shown.
Binary file added MUSHclient/llthreads2.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion MUSHclient/lua/async.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module("async", package.seeall)
local _llthreads = require("llthreads")
local _llthreads = require("llthreads2")
require "socket.http" -- just make sure they can load
require "ssl.https" -- just make sure they can load

Expand Down
Binary file modified MUSHclient/lua51.dll
Binary file not shown.
Binary file removed MUSHclient/msvcr100.dll
Binary file not shown.
Binary file modified MUSHclient/openssl.dll
Binary file not shown.
Binary file removed MUSHclient/ssleay32.dll
Binary file not shown.
58 changes: 56 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,62 @@ environment:
secure: /WceWguzAExHlMwJIOMl2MxPw+QmMne5MGQItu45rQ66xLoKLYGVQ8taqaLkrMYD
install:
- ps: >-
# build LuaJIT
git clone -b v2.1 --single-branch --depth=1 https://github.com/LuaJIT/LuaJIT.git C:\luajit
cd c:\luajit\src
(Get-Content msvcbuild.bat) | ForEach-Object { $_ -replace " /MD " , " /MT " } | Set-Content msvcbuild.bat
'"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86'
msvcbuild.bat
copy luajit.exe C:\
copy lua51.* C:\
# build lua-openssl
git clone --depth=1 https://github.com/zhaozg/lua-openssl.git c:\lua-openssl
cd c:\lua-openssl
(Get-Content makefile.win) | ForEach-Object { $_ -replace " /MD " , " /MT " } | Set-Content makefile.win
(Get-Content makefile.win) | ForEach-Object { $_ -replace "libeay32" , "VC\static\libeay32MT" } | Set-Content makefile.win
(Get-Content makefile.win) | ForEach-Object { $_ -replace "ssleay32" , "VC\static\ssleay32MT" } | Set-Content makefile.win
(Get-Content makefile.win) | ForEach-Object { $_ -replace "LUA_INC=.+" , "LUA_INC=C:\luajit\src" } | Set-Content makefile.win
(Get-Content makefile.win) | ForEach-Object { $_ -replace "LUA_LIB=.+" , "LUA_INC=C:\lua51.lib" } | Set-Content makefile.win
nmake -f makefile.win
copy src\openssl.dll c:\
# build lua-llthreads2
git clone https://github.com/moteus/lua-llthreads2.git C:\llthreads2
cd C:\
cl /nologo /MT /O2 -c -Fol52util.obj -Ic:\luajit\src c:\llthreads2\src\l52util.c -DLLTHREAD_MODULE_NAME=llthreads2
cl /nologo /MT /O2 -c -Follthread.obj -Ic:\luajit\src c:\llthreads2\src\llthread.c -DLLTHREAD_MODULE_NAME=llthreads2
link -dll -export:luaopen_llthreads2 -out:llthreads2.dll lua51.lib l52util.obj llthread.obj kernel32.lib
# deploy the above 3 dlls
# ps: Get-ChildItem c:\*.dll | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Move-Item C:\*.dll MUSHclient -force
# make the installers and zips
$env:PACKAGE_VERSION=(Get-Content MUSHclient\AardwolfPackageChanges.txt)[2].split()[0]
7z a -tzip -mx=9 -mfb=257 Aardwolf_MUSHclient_$($env:PACKAGE_VERSION)_no_install.zip MUSHclient
Expand Down Expand Up @@ -52,7 +108,6 @@ before_deploy:
- ps: >-
$env:PACKAGE_VERSION=(Get-Content MUSHclient\AardwolfPackageChanges.txt)[2].split()[0]
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:auth_token):x-oauth-basic@github.com`n"
Expand All @@ -61,7 +116,6 @@ before_deploy:
git config --global user.email "patcherton.fixesthings@gmail.com"
git remote set-branches --add origin 'gh-pages' 2>&1 | write-host
git fetch --depth 1 origin gh-pages 2>&1 | write-host
Expand Down

0 comments on commit 6040490

Please sign in to comment.