mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-21 01:52:54 +01:00
Split x86 and x64 version files.
This commit is contained in:
1 parent
185a32727d
commit
d9da885de2
4 files changed
+19
-26
No files matched your search
@@ -177,8 +177,12 @@ namespace FileConverter
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
Diagnostics.Debug.Log("File Converter v" + ApplicationVersion.ToString());
|
||||
|
||||
#if BUILD32
|
||||
Diagnostics.Debug.Log("File Converter v" + ApplicationVersion.ToString() + " (32 bits)");
|
||||
#else
|
||||
Diagnostics.Debug.Log("File Converter v" + ApplicationVersion.ToString() + " (64 bits)");
|
||||
#endif
|
||||
|
||||
// Retrieve arguments.
|
||||
Debug.Log("Retrieve arguments...");
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
|
||||
@@ -25,7 +25,12 @@ namespace FileConverter.Upgrade
|
||||
|
||||
public static async Task<UpgradeVersionDescription> GetLatestVersionDescriptionAsync(OnUpgradeOperationCompletedEventHandler onGetCompleteDelegate = null)
|
||||
{
|
||||
#if BUILD32
|
||||
Uri uri = new Uri(Helpers.BaseURI + "version (x86).xml");
|
||||
#else
|
||||
Uri uri = new Uri(Helpers.BaseURI + "version.xml");
|
||||
#endif
|
||||
|
||||
Stream stream = await Helpers.webClient.OpenReadTaskAsync(uri);
|
||||
|
||||
UpgradeVersionDescription upgradeVersionDescription = null;
|
||||
@@ -64,7 +69,7 @@ namespace FileConverter.Upgrade
|
||||
{
|
||||
if (upgradeVersionDescription == null)
|
||||
{
|
||||
throw new ArgumentNullException("upgradeVersionDescription");
|
||||
throw new ArgumentNullException(nameof(upgradeVersionDescription));
|
||||
}
|
||||
|
||||
Uri uri = new Uri(Helpers.BaseURI + "CHANGELOG.md");
|
||||
|
||||
@@ -20,34 +20,14 @@ namespace FileConverter
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
|
||||
[XmlElement("URL")]
|
||||
public string InstallerURL
|
||||
{
|
||||
get
|
||||
{
|
||||
#if BUILD32
|
||||
return this.InstallerX86URL;
|
||||
#else
|
||||
return this.InstallerX64URL;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
[XmlElement("URL")]
|
||||
public string InstallerX64URL
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[XmlElement("URLx86")]
|
||||
public string InstallerX86URL
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
|
||||
[XmlIgnore]
|
||||
public string ChangeLog
|
||||
{
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<Version>
|
||||
<Latest Major="1" Minor="0" Patch="0"/>
|
||||
<URL>http://github.com/Tichau/FileConverter/releases/download/v1.0/FileConverter-1.0-x86-setup.msi</URL>
|
||||
</Version>
|
||||
Reference in new issue
Block a user