Skip to content

Commit cd9d377

Browse files
committed
Appman distro config added...
1 parent 3118c80 commit cd9d377

File tree

6 files changed

+25
-3
lines changed

6 files changed

+25
-3
lines changed
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<!-- Distro directory name -->
4+
<Name>HaxeDevelop</Name>
5+
<!-- Directory where the archives should be stored -->
6+
<Archive>$(BaseDir)\Apps</Archive>
7+
<!-- Entry config file, can be an URL or a file path -->
8+
<Config>http://www.flashdevelop.org/appman.xml</Config>
9+
<!-- App help file, can be an URL or a file path -->
10+
<Help>http://www.flashdevelop.org/wikidocs/</Help>
11+
<!-- Paths where '.appman' notification files should be pushed -->
12+
<Paths><Path>$(BaseDir)</Path></Paths>
13+
<!-- Directory where the log files should be pushed -->
14+
<Logs>$(BaseDir)\Data\AppMan</Logs>
15+
<!-- Current localization id -->
16+
<Locale>en_US</Locale>
17+
</Settings>

External/Tools/AppMan/Bin/Release/Config.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<!-- Distro directory name -->
4+
<Name>FlashDevelop</Name>
35
<!-- Directory where the archives should be stored -->
46
<Archive>$(BaseDir)\Apps</Archive>
57
<!-- Entry config file, can be an URL or a file path -->

External/Tools/AppMan/MainForm.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System;
22
using System.IO;
33
using System.Net;
4-
using System.Data;
5-
using System.Text;
64
using System.Drawing;
75
using System.Threading;
86
using System.Reflection;
@@ -231,6 +229,7 @@ private void InitializeSettings()
231229
if (File.Exists(file))
232230
{
233231
settings = ObjectSerializer.Deserialize(file, settings) as Settings;
232+
if (!String.IsNullOrEmpty(settings.Name)) MainForm.DISTRO_NAME = settings.Name;
234233
PathHelper.APPS_DIR = ArgProcessor.ProcessArguments(settings.Archive);
235234
PathHelper.CONFIG_ADR = ArgProcessor.ProcessArguments(settings.Config);
236235
PathHelper.HELP_ADR = ArgProcessor.ProcessArguments(settings.Help);
@@ -1663,18 +1662,20 @@ public class Settings
16631662
public String Config = "";
16641663
public String Archive = "";
16651664
public String Locale = "en_US";
1665+
public String Name = "FlashDevelop";
16661666

16671667
[XmlArrayItem("Path")]
16681668
public String[] Paths = new String[0];
16691669

16701670
public Settings() {}
1671-
public Settings(String config, String archive, String[] paths, String locale, String help, String logs)
1671+
public Settings(String config, String archive, String[] paths, String locale, String help, String logs, String name)
16721672
{
16731673
this.Logs = logs;
16741674
this.Paths = paths;
16751675
this.Config = config;
16761676
this.Archive = archive;
16771677
this.Locale = locale;
1678+
this.Name = name;
16781679
this.Help = help;
16791680
}
16801681

0 Bytes
Binary file not shown.

FlashDevelop/Bin/Debug/Tools/appman/Config.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<!-- Distro directory name -->
4+
<Name>FlashDevelop</Name>
35
<!-- Directory where the archives should be stored -->
46
<Archive>$(BaseDir)\Apps</Archive>
57
<!-- Entry config file, can be an URL or a file path -->

0 commit comments

Comments
 (0)