Updates.
h3rald h3rald@h3rald.com
Sun, 04 Feb 2024 11:29:56 +0100
2 files changed,
10 insertions(+),
10 deletions(-)
M
.github/workflows/add-artifacts-to-current-release.yml
→
.github/workflows/add-artifacts-to-current-release.yml
@@ -73,17 +73,17 @@ sh init.sh -y
# Build for Linux - name: Build (Linux) - run: nimble build -y -d:release --gcc.exe:musl-gcc --mm:refc --gcc.linkerexe:musl-gcc -d:ssl -d:useOpenSsl3 --opt:size + run: nimble build -v -y -d:release --gcc.exe:musl-gcc --mm:refc --gcc.linkerexe:musl-gcc -d:ssl --opt:size min if: matrix.os == 'ubuntu-latest' # Build for macOS - name: Build (macOS) - run: nimble build -y -d:release -d:ssl -d:useOpenSsl3 --opt:size --mm:refc + run: nimble build -v -y -d:release -d:ssl --opt:size --mm:refc min if: matrix.os == 'macos-latest' # Build for Windows - name: Build (Windows) - run: nimble build -y -d:release -d:useOpenSsl3 --opt:size --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc + run: nimble build -v -y -d:release --opt:size --mm:refc --opt:size -d:ssl --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc min if: matrix.os == 'windows-latest' # UPX compress (*nix)
M
minpkg/lib/min_crypto.nim
→
minpkg/lib/min_crypto.nim
@@ -17,6 +17,13 @@ when defined(ssl):
import openssl + when defined(windows) and defined(amd64): + {.passL: "-static -L"&getProjectPath()&"/minpkg/vendor/openssl/windows -lssl -lcrypto -lgdi32 -ladvapi32 -luser32 -lws2_32 -lcrypt32".} + elif defined(linux) and defined(amd64): + {.passL: "-static -L"&getProjectPath()&"/minpkg/vendor/openssl/linux -lssl -lcrypto".} + elif defined(macosx) and defined(amd64): + {.passL: "-Bstatic -L"&getProjectPath()&"/minpkg/vendor/openssl/macosx -lssl -lcrypto -Bdynamic".} + proc MD4(d: cstring, n: culong, md: cstring = nil): cstring {.cdecl, importc.} proc EVP_MD_CTX_new*(): EVP_MD_CTX {.cdecl, importc: "EVP_MD_CTX_new".} proc EVP_MD_CTX_free*(ctx: EVP_MD_CTX) {.cdecl, importc: "EVP_MD_CTX_free".}@@ -40,13 +47,6 @@ let s = vals[0]
i.push s.getString.decode.newVal when defined(ssl): - - when defined(windows) and defined(amd64): - {.passL: "-static -L"&getProjectPath()&"/minpkg/vendor/openssl/windows -lssl -lcrypto -lgdi32 -ladvapi32 -luser32 -lws2_32 -lcrypt32".} - elif defined(linux) and defined(amd64): - {.passL: "-static -L"&getProjectPath()&"/minpkg/vendor/openssl/linux -lssl -lcrypto".} - elif defined(macosx) and defined(amd64): - {.passL: "-Bstatic -L"&getProjectPath()&"/minpkg/vendor/openssl/macosx -lssl -lcrypto -Bdynamic".} proc hash(s: string, kind: EVP_MD, size: int): string = var hash = alloc[ptr cuint](size)