summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-version/build.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/mullvad-version/build.rs b/mullvad-version/build.rs
index 5d89044869..1714d54d9f 100644
--- a/mullvad-version/build.rs
+++ b/mullvad-version/build.rs
@@ -44,8 +44,9 @@ fn main() {
.unwrap();
}
-/// Returns the Mullvad product version from the corresponding metadata files,
-/// depending on target platform.
+/// Computes the Mullvad product version using the latest release on the given platform and the git
+/// hash pointed to by `HEAD`. Also triggers a rebuild of this crate when the information becomes
+/// outdated.
fn get_product_version(target: Target) -> String {
let version_file_path = match target {
Target::Android => ANDROID_VERSION_FILE_PATH,