mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-11-18 20:15:11 +00:00
read resources from share
This commit is contained in:
1 parent
fffb530f5c
commit
5730417b61
1 file changed
+5
-2
@@ -64,8 +64,11 @@ extension SettingsPresetFile {
|
||||
return group
|
||||
}
|
||||
let relativePath = "SettingPresets/\(path).yml"
|
||||
let settingsPath = Path(#file).parent().parent().parent() + relativePath
|
||||
|
||||
var settingsPath = Path("../share/xcodegen/\(relativePath)")
|
||||
if !settingsPath.exists {
|
||||
// maybe running locally
|
||||
settingsPath = Path(#file).parent().parent().parent() + relativePath
|
||||
}
|
||||
guard settingsPath.exists else {
|
||||
switch self {
|
||||
case .base, .config, .platform:
|
||||
|
||||
Reference in new issue
Block a user