/// <summary> /// The get version relative path. /// </summary> /// <param name="platform"> /// The platform. /// </param> /// <param name="type"> /// The type. /// </param> /// <returns> /// The <see cref="string"/>. /// </returns> private string GetVersionRelativePath(ProductPlatform platform, PackageType type) { return string.Format( "{0}\\{1}-{0}-{2}." + (type == PackageType.Zip ? "zip" : "exe"), AppUtil.ProductVersion, AppUtil.ProductName, platform); }
/// <summary> /// The get ftp version relative path. /// </summary> /// <param name="platform"> /// The platform. /// </param> /// <param name="type"> /// The type. /// </param> /// <returns> /// The <see cref="string"/>. /// </returns> private string GetFtpVersionRelativePath(ProductPlatform platform, PackageType type) { return this.GetVersionRelativePath(platform, type).Replace("\\", "/"); }