Skip to content

Commit

Permalink
Ensure version is v2.5.0-alpha-0
Browse files Browse the repository at this point in the history
* Ensure version is v2.5.0-alpha-0
  • Loading branch information
abraunegg committed Aug 26, 2023
1 parent eb9d637 commit 9062d0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/config.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion src/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9062d0e

Please sign in to comment.