mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Remove link LFS step in setup-project. (#1987)
This commit is contained in:
@@ -11,7 +11,6 @@ struct SetupProject: ParsableCommand {
|
|||||||
try setupGitHooks()
|
try setupGitHooks()
|
||||||
try brewBundleInstall()
|
try brewBundleInstall()
|
||||||
try mintPackagesInstall()
|
try mintPackagesInstall()
|
||||||
try linkGitLFS()
|
|
||||||
try xcodegen()
|
try xcodegen()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,19 +29,6 @@ struct SetupProject: ParsableCommand {
|
|||||||
try Utilities.zsh("mint install Asana/locheck")
|
try Utilities.zsh("mint install Asana/locheck")
|
||||||
}
|
}
|
||||||
|
|
||||||
func linkGitLFS() throws {
|
|
||||||
guard let gitPath = try Utilities.zsh("git --exec-path")?.replacingOccurrences(of: "\n", with: "") else { return }
|
|
||||||
|
|
||||||
let lfsPath = URL(fileURLWithPath: gitPath).appendingPathComponent("git-lfs").path
|
|
||||||
|
|
||||||
guard !FileManager.default.fileExists(atPath: lfsPath) else {
|
|
||||||
print("Git LFS already linked.")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
try Utilities.zsh("ln -s \"$(which git-lfs)\" \"\(lfsPath)\"")
|
|
||||||
}
|
|
||||||
|
|
||||||
func xcodegen() throws {
|
func xcodegen() throws {
|
||||||
try Utilities.zsh("xcodegen")
|
try Utilities.zsh("xcodegen")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user