|
@@ -104,6 +104,8 @@ namespace Pack
|
|
|
}
|
|
}
|
|
|
if (!exist)
|
|
if (!exist)
|
|
|
{
|
|
{
|
|
|
|
|
+ //packFileName = packFileName.Replace(" ", "_");
|
|
|
|
|
+ packFileName = packFileName.Replace(":", "_");
|
|
|
File.Create(Path.Combine(dirPath, packFileName + ".txt"));
|
|
File.Create(Path.Combine(dirPath, packFileName + ".txt"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -127,7 +129,12 @@ namespace Pack
|
|
|
{
|
|
{
|
|
|
if (urlTypes == null)
|
|
if (urlTypes == null)
|
|
|
{
|
|
{
|
|
|
- urlTypes = plist.root.CreateArray("CFBundleURLTypes");
|
|
|
|
|
|
|
+ if (plist.root.values.ContainsKey("CFBundleURLTypes"))
|
|
|
|
|
+ {
|
|
|
|
|
+ urlTypes = plist.root["CFBundleURLTypes"].AsArray();
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ urlTypes = plist.root.CreateArray("CFBundleURLTypes");
|
|
|
}
|
|
}
|
|
|
PlistElementDict dict = urlTypes.AddDict();
|
|
PlistElementDict dict = urlTypes.AddDict();
|
|
|
dict.SetString("CFBundleTypeRole", role);
|
|
dict.SetString("CFBundleTypeRole", role);
|
|
@@ -276,7 +283,7 @@ namespace Pack
|
|
|
{ "registerEventToken", new DictItem("string","6s22py")},
|
|
{ "registerEventToken", new DictItem("string","6s22py")},
|
|
|
},false, dict);
|
|
},false, dict);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
PlistAddUrlType(plistDocument, null, "facebook", "Editor", "fb849135470863608");
|
|
PlistAddUrlType(plistDocument, null, "facebook", "Editor", "fb849135470863608");
|
|
|
|
|
|
|
|
|
|
|