Ensure version is v2.5.0-alpha-0

* Ensure version is v2.5.0-alpha-0
This commit is contained in:
abraunegg 2023-08-27 09:42:40 +10:00
parent eb9d637eba
commit 9062d0ecb7
2 changed files with 8 additions and 3 deletions

View file

@ -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.

View file

@ -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) {