appInfo.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829
  1. import { PlatformSpecificBuildOptions } from "./options/PlatformSpecificBuildOptions";
  2. import { Packager } from "./packager";
  3. export declare function smarten(s: string): string;
  4. export declare class AppInfo {
  5. private readonly info;
  6. private readonly platformSpecificOptions;
  7. readonly description: string;
  8. readonly version: string;
  9. readonly shortVersion: string | undefined;
  10. readonly shortVersionWindows: string | undefined;
  11. readonly buildNumber: string | undefined;
  12. readonly buildVersion: string;
  13. readonly productName: string;
  14. readonly sanitizedProductName: string;
  15. readonly productFilename: string;
  16. constructor(info: Packager, buildVersion: string | null | undefined, platformSpecificOptions?: PlatformSpecificBuildOptions | null);
  17. get channel(): string | null;
  18. getVersionInWeirdWindowsForm(isSetBuildNumber?: boolean): string;
  19. private get notNullDevMetadata();
  20. get companyName(): string | null;
  21. get id(): string;
  22. get macBundleIdentifier(): string;
  23. get name(): string;
  24. get linuxPackageName(): string;
  25. get sanitizedName(): string;
  26. get updaterCacheDirName(): string;
  27. get copyright(): string;
  28. computePackageUrl(): Promise<string | null>;
  29. }