From 9062d0ecb730d9db0c29e58d40957e54a8e899c4 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Sun, 27 Aug 2023 09:42:40 +1000 Subject: [PATCH] Ensure version is v2.5.0-alpha-0 * Ensure version is v2.5.0-alpha-0 --- src/config.d | 8 ++++++-- src/main.d | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/config.d b/src/config.d index 678101ca..3e88a2af 100644 --- a/src/config.d +++ b/src/config.d @@ -53,7 +53,9 @@ class ApplicationConfig { // Comply with OneDrive traffic decoration requirements // https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online // - Identify as ISV and include Company Name, App Name separated by a pipe character and then adding Version number separated with a slash character - immutable string defaultUserAgent = isvTag ~ "|" ~ companyName ~ "|" ~ appTitle ~ "/" ~ strip(import("version")); + + //immutable string defaultUserAgent = isvTag ~ "|" ~ companyName ~ "|" ~ appTitle ~ "/" ~ strip(import("version")); + immutable string defaultUserAgent = isvTag ~ "|" ~ companyName ~ "|" ~ appTitle ~ "/" ~ "v2.5.0-alpha-0"); // HTTP Struct items, used for configuring HTTP() // Curl Timeout Handling @@ -314,7 +316,9 @@ class ApplicationConfig { boolValues["webhook_enabled"] = false; // Print in debug the application version as soon as possible - log.vdebug("Application Version: ", strip(import("version"))); + + //log.vdebug("Application Version: ", strip(import("version"))); + log.vdebug("Application Version: v2.5.0-alpha-0"); // EXPAND USERS HOME DIRECTORY // Determine the users home directory. diff --git a/src/main.d b/src/main.d index 431ab2da..c0f8801c 100644 --- a/src/main.d +++ b/src/main.d @@ -106,7 +106,8 @@ int main(string[] cliArgs) { } // Print the version and exit if (printVersion) { - writeln("onedrive ", strip(import("version"))); + //writeln("onedrive ", strip(import("version"))); + writeln("onedrive v2.5.0-alpha-0"); return EXIT_SUCCESS; } } catch (GetOptException e) {