api_windows_x64.go 509 B

123456789101112131415161718192021222324
  1. //go:build windows && (amd64 || arm64 || ppc64 || ppc64le || s390x || mips64 || mips64le)
  2. package yu_curl
  3. import (
  4. _ "embed"
  5. yu_deflate "gogs.qqck.cn/s/tools/deflate"
  6. yu_file "gogs.qqck.cn/s/tools/file"
  7. "os"
  8. )
  9. // dll下载地址:https://curl.se/windows/
  10. // curl version: 8.4.0
  11. // Build: 8.4.0_4
  12. // Date: 2023-10-11
  13. //go:embed api_windows_x64.dll.en
  14. var dll_raw []byte
  15. func init() {
  16. j_path := os.TempDir() + "libcurlx64.dll"
  17. yu_file.Write(j_path, yu_deflate.DeflateDe(dll_raw))
  18. loadDLL(j_path)
  19. }