mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-11-10 06:14:38 +03:00
fix Mint installation not reading SettingPresets
This commit is contained in:
parent
9d4950e574
commit
42ca2822d1
@ -147,14 +147,21 @@ extension SettingsPresetFile {
|
||||
if let group = settingPresetSettings[path] {
|
||||
return group
|
||||
}
|
||||
let relativePath = "SettingPresets/\(path).yml"
|
||||
let possibleSettingsPaths: [Path] = [
|
||||
Path(relativePath),
|
||||
Path(Bundle.main.bundlePath) + relativePath,
|
||||
Path(Bundle.main.bundlePath) + "../share/xcodegen/\(relativePath)",
|
||||
let bundlePath = Path(Bundle.main.bundlePath)
|
||||
let relativePath = Path("SettingPresets/\(path).yml")
|
||||
var possibleSettingsPaths: [Path] = [
|
||||
relativePath,
|
||||
bundlePath + relativePath,
|
||||
bundlePath + "../share/xcodegen/\(relativePath)",
|
||||
Path(#file).parent().parent().parent() + relativePath,
|
||||
]
|
||||
|
||||
if let symlink = try? bundlePath.symlinkDestination() {
|
||||
possibleSettingsPaths = [
|
||||
symlink + relativePath
|
||||
] + possibleSettingsPaths
|
||||
}
|
||||
|
||||
guard let settingsPath = possibleSettingsPaths.first(where: { $0.exists }) else {
|
||||
switch self {
|
||||
case .base, .config, .platform:
|
||||
|
Loading…
Reference in New Issue
Block a user