mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Add remaining iOS 17 introspections. (#1806)
* Update compound. * Update Ruby gems. * Skip smudging in Fastlane. * Link Git LFS for Xcode in setup-project.
This commit is contained in:
@@ -11,6 +11,7 @@ struct SetupProject: ParsableCommand {
|
||||
try setupGitHooks()
|
||||
try brewBundleInstall()
|
||||
try mintPackagesInstall()
|
||||
try linkGitLFS()
|
||||
try xcodegen()
|
||||
}
|
||||
|
||||
@@ -28,6 +29,19 @@ struct SetupProject: ParsableCommand {
|
||||
func mintPackagesInstall() throws {
|
||||
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 {
|
||||
try Utilities.zsh("xcodegen")
|
||||
|
||||
Reference in New Issue
Block a user