diff --git a/IPASorter/Program.cs b/IPASorter/Program.cs index 0103965..517f713 100644 --- a/IPASorter/Program.cs +++ b/IPASorter/Program.cs @@ -120,7 +120,12 @@ namespace IPASorter { i.CFBundleDisplayName = i.CFBundleIdentifier.Split('.')[2]; } - i.CFBundleVersion = plist["CFBundleVersion"].ToString(); + string whichToUse = "CFBundleVersion"; + if (plist["CFBundleVersion"].ToString() == "1") + { + whichToUse = "CFBundleShortVersionString"; + } + i.CFBundleVersion = plist[whichToUse].ToString(); try { i.MinimumOSVersion = plist["MinimumOSVersion"].ToString(); @@ -142,8 +147,7 @@ namespace IPASorter File.Move(i.path, $"{path}/incomplete/{i.fileName.Replace(".ipa", $"-{i.md5sum}.ipa")}", true); i.path = $"{path}/incomplete/{i.fileName.Replace(".ipa", $"-{i.md5sum}.ipa")}"; i.MinimumOSVersion = "DO NOT ENUMERATE"; - try { Directory.Delete($"./sortertemp/{i.fileName}", true); } - catch { } + Directory.Delete($"./sortertemp/{i.fileName}", true); continue; } } diff --git a/LICENSE b/LICENSE index ecc0572..806e2ac 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 KawaiiZenbo +Copyright (c) 2021 the KawaiiZenbos/the Gum Hive Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal