Skip to content

Commit

Permalink
appveyor settings to freshly build the DLLs
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Dec 13, 2017
1 parent c7205c2 commit 7c75ae3
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 40 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.
86 changes: 47 additions & 39 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,58 @@ environment:
auth_token:
secure: /WceWguzAExHlMwJIOMl2MxPw+QmMne5MGQItu45rQ66xLoKLYGVQ8taqaLkrMYD
install:
- ps: >-
$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
Start-FileDownload 'https://raw.githubusercontent.com/fiendish/aardwolfclientpackage-installer/master/aardmush_installer.nsi'
Start-FileDownload 'https://raw.githubusercontent.com/fiendish/aardwolfclientpackage-installer/master/get_version.nsi'
Start-FileDownload 'https://raw.githubusercontent.com/fiendish/aardwolfclientpackage-installer/master/hello.rtf'
& "C:\Program Files (x86)\NSIS\makensis.exe" aardmush_installer.nsi
function Insert-Content {
param ( [String]$Path )
process {
$( ,$_; Get-Content $Path -ea SilentlyContinue) | Out-File -encoding ASCII $Path
}
}
"aard_req_novisuals_mode = true -- this line added by the no-visuals installer`r`n" | Insert-Content .\MUSHclient\lua\aard_requirements.lua
Move-Item .\MUSHclient\worlds\Aardwolf_no_visuals.mcl .\MUSHclient\worlds\Aardwolf.mcl -force
$VIAPPOUT = 'OutFile "Aardwolf_MUSHclient_${PackageVersion}_no_visuals.exe"'
(Get-Content aardmush_installer.nsi) | ForEach-Object { $_ -replace "OutFile.+" , "$VIAPPOUT" } | Set-Content aardmush_installer.nsi
& "C:\Program Files (x86)\NSIS\makensis.exe" aardmush_installer.nsi
7z a -tzip -mx=9 -mfb=257 Aardwolf_MUSHclient_$($env:PACKAGE_VERSION)_no_visuals_no_install.zip .\MUSHclient
Get-ChildItem .\Aardwolf_MUSHclient_r*.exe -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Get-ChildItem .\Aardwolf_MUSHclient_r*.zip -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
git checkout -- .
- cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86'
- cmd: git clone -b v2.1 --single-branch --depth=1 https://github.com/LuaJIT/LuaJIT.git C:\luajit
- cmd: git clone --depth=1 https://github.com/zhaozg/lua-openssl.git c:\lua-openssl
- cmd: git clone https://github.com/moteus/lua-llthreads2.git C:\llthreads2
- ps: pushd c:\luajit\src
- ps: (Get-Content msvcbuild.bat) | ForEach-Object { $_ -replace " /MD " , " /MT " } | Set-Content msvcbuild.bat
- cmd: ./msvcbuild.bat
- cmd: copy luajit.exe C:\
- cmd: copy lua51.* C:\
- ps: popd
- ps: pushd c:\lua-openssl
- ps: (Get-Content Makefile.win) | ForEach-Object { $_ -replace '"' , '' } | Set-Content Makefile.win
- ps: (Get-Content config.win) | ForEach-Object { $_ -replace '"' , '' } | Set-Content config.win
- ps: (Get-Content config.win) | ForEach-Object { $_ -replace " /MD " , " /MT " } | Set-Content config.win
- ps: (Get-Content config.win) | ForEach-Object { $_ -replace "libeay32" , "VC\static\libeay32MT" } | Set-Content config.win
- ps: (Get-Content config.win) | ForEach-Object { $_ -replace "ssleay32" , "VC\static\ssleay32MT" } | Set-Content config.win
- ps: (Get-Content config.win) | ForEach-Object { $_ -replace "LUA_INC=.+" , "LUA_INC=C:\luajit\src" } | Set-Content config.win
- ps: (Get-Content config.win) | ForEach-Object { $_ -replace "LUA_LIB=.+" , "LUA_LIB=C:\lua51.lib" } | Set-Content config.win
- cmd: nmake -f Makefile.win
- cmd: copy src\openssl.dll c:\
- ps: popd
- ps: pushd C:\
- cmd: cl /nologo /MT /O2 -c -Fol52util.obj -Ic:\luajit\src c:\llthreads2\src\l52util.c -DLLTHREAD_MODULE_NAME=llthreads2
- cmd: cl /nologo /MT /O2 -c -Follthread.obj -Ic:\luajit\src c:\llthreads2\src\llthread.c -DLLTHREAD_MODULE_NAME=llthreads2
- cmd: link -dll -export:luaopen_llthreads2 -out:llthreads2.dll lua51.lib l52util.obj llthread.obj kernel32.lib
- ps: popd
- ps: pushd C:\projects\aardwolfclientpackage
- ps: |
Move-Item C:\*.dll MUSHclient -force
$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
Start-FileDownload 'https://raw.githubusercontent.com/fiendish/aardwolfclientpackage-installer/master/aardmush_installer.nsi'
Start-FileDownload 'https://raw.githubusercontent.com/fiendish/aardwolfclientpackage-installer/master/get_version.nsi'
Start-FileDownload 'https://raw.githubusercontent.com/fiendish/aardwolfclientpackage-installer/master/hello.rtf'
- cmd: '"C:\Program Files (x86)\NSIS\makensis.exe" aardmush_installer.nsi'
- ps: |
function Insert-Content { param ( [String]$Path ); process { $( ,$_; Get-Content $Path -ea SilentlyContinue) | Out-File -encoding ASCII $Path } }
"aard_req_novisuals_mode = true -- this line added by the no-visuals installer`r`n" | Insert-Content .\MUSHclient\lua\aard_requirements.lua
Move-Item .\MUSHclient\worlds\Aardwolf_no_visuals.mcl .\MUSHclient\worlds\Aardwolf.mcl -force
$env:VIAPPOUT = 'OutFile "Aardwolf_MUSHclient_${PackageVersion}_no_visuals.exe"'
(Get-Content aardmush_installer.nsi) | ForEach-Object { $_ -replace "OutFile.+" , "$env:VIAPPOUT" } | Set-Content aardmush_installer.nsi
- cmd: '"C:\Program Files (x86)\NSIS\makensis.exe" aardmush_installer.nsi'
- ps: |
7z a -tzip -mx=9 -mfb=257 Aardwolf_MUSHclient_$($env:PACKAGE_VERSION)_no_visuals_no_install.zip .\MUSHclient
Get-ChildItem .\Aardwolf_MUSHclient_r*.exe -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
Get-ChildItem .\Aardwolf_MUSHclient_r*.zip -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
git checkout -- .
build: off
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 +70,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 7c75ae3

Please sign in to comment.