Skip to content

Commit d405d50

Browse files
committed
update release script, bump version
1 parent de7b555 commit d405d50

10 files changed

Lines changed: 37 additions & 59 deletions

bin/magic-1.dll

512 Bytes
Binary file not shown.

bin/magic.mgc

0 Bytes
Binary file not shown.

bin/tre.dll

0 Bytes
Binary file not shown.

build known bad no wolfssl.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.

build known bad.bat

Lines changed: 0 additions & 43 deletions
This file was deleted.

build known good.bat

Lines changed: 0 additions & 9 deletions
This file was deleted.

build.ahk

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#Requires AutoHotkey v2.0
2+
;update vcpkg
3+
RunWait("git pull","C:\dev\vcpkg")
4+
RunWait("C:\dev\vcpkg\bootstrap-vcpkg.bat","C:\dev\vcpkg")
5+
6+
;clean previous install
7+
try DirDelete(A_ScriptDir "\build\",1)
8+
9+
10+
;build wolfssl
11+
wolfssl := "wolfssl[dtls,quic]"
12+
If RunWait("vcpkg install " wolfssl " --x-install-root=build --recurse",A_ScriptDir)
13+
throw("building WolfSSL failed")
14+
15+
;build libcurl
16+
libcurl := "curl[brotli,c-ares,gnutls,gsasl,http2,idn,idn2,ldap,mbedtls,non-http,openssl,psl,rtmp,schannel,ssh,ssl,sspi,tool,websockets,winidn,wolfssl,zstd]:x64-windows"
17+
If RunWait("vcpkg install " libcurl " --overlay-ports=overlays\openssl --x-install-root=build --recurse --clean-after-build",A_ScriptDir)
18+
throw("building libcurl failed")
19+
20+
;build libmagic
21+
libmagic := "libmagic[bzip2,lzma,zlib,zstd]"
22+
If RunWait("vcpkg install " libmagic " --x-install-root=build", A_ScriptDir)
23+
throw("building libmagic failed")
24+
25+
26+
;install all built files
27+
FileMove(A_ScriptDir "\build\x64-windows\curl\libmagic\bin\*.dll",A_ScriptDir "\bin\",1)
28+
FileMove(A_ScriptDir "\build\x64-windows\tools\libmagic\share\misc\*.mgc",A_ScriptDir "\bin\",1)
29+
FileMove(A_ScriptDir "\build\x64-windows\tools\libmagic\bin\*.dll",A_ScriptDir "\bin\",1)
30+
31+

generate release.ahk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ else
1919
If bumped.Result = "Cancel"
2020
ExitApp
2121

22+
;the build script is simply included whole sale
23+
;this way it can fail the release script if there's a build failure
24+
#include %A_ScriptDir%\build.ahk
25+
2226
pkgArr["version"] := "v" bumped.Value
2327
FileOpen(A_ScriptDir "\package.json","w").Write(JSON.Dump(pkgArr))
2428

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"author":{"email":"Qriist+LibQurl@gmail.com","name":"Qriist","website":""},"bugs":{"url":"https://github.com/Qriist/LibQurl/issues"},"dependencies":{"G33kDude/cJson":"^2.0.0","Qriist/libmagic":"github:Qriist/libmagic@^v0.80.0 --main Lib\\libmagic.ahk","SKAN/RunCMD":"9a8392d"},"description":"A full libcurl wrapper for AHKv2","homepage":"","keywords":["curl","libcurl","internet","transfers"],"license":"","main":"LibQurl.ahk","name":"Qriist/LibQurl","repository":{"type":"github","url":"Qriist/LibQurl"},"version":"v0.93.0"}
1+
{"author":{"email":"Qriist+LibQurl@gmail.com","name":"Qriist","website":""},"bugs":{"url":"https://github.com/Qriist/LibQurl/issues"},"dependencies":{"G33kDude/cJson":"^2.0.0","Qriist/libmagic":"github:Qriist/libmagic@^v0.80.0 --main Lib\\libmagic.ahk","SKAN/RunCMD":"9a8392d"},"description":"A full libcurl wrapper for AHKv2","homepage":"","keywords":["curl","libcurl","internet","transfers"],"license":"","main":"LibQurl.ahk","name":"Qriist/LibQurl","repository":{"type":"github","url":"Qriist/LibQurl"},"version":"v0.94.0"}

tests/00 - current autorun.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Requires AutoHotkey v2.0
22

3-
current := "20 - download file to magic"
3+
current := "01 - register the dll"
44

55
clean := ["txt","html","json","zst"]
66
for k,v in clean

0 commit comments

Comments
 (0)