Browse Source

Send version with update

master
Macoy Madson 5 months ago
parent
commit
3034d02478
  1. 2
      src/AutoUpdate.cake

2
src/AutoUpdate.cake

@ -125,6 +125,7 @@
output-directory (* (const char))
new-file-to-use-out-buffer (* char)
new-file-to-use-out-buffer-size size_t
new-version-out (* int)
&return bool)
(var update-metadata auto-update-metadata (array 0))
(unless (auto-update-get-latest-version-metadata
@ -183,6 +184,7 @@
(snprintf new-file-to-use-out-buffer new-file-to-use-out-buffer-size "%s/%s"
version-output-directory (path platform-download > file-to-use))
(set (deref new-version-out) (field update-metadata latest-version))
(free-introspect-struct-fields auto-update-metadata--metadata (addr update-metadata) free)
(return true))

Loading…
Cancel
Save