mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fixing locheck tool (#788)
* fixing locheck * fixing locheck tool * Revert "fixing locheck tool" This reverts commit 9bb3dbcd70d1ecbc62b4289623b5f9e584929997. * locheck install * using the original code to get the directory * adding swiftgen to download strings * setup project on ci * added Strings.swift to the path * adding String.swift
This commit is contained in:
@@ -4,9 +4,13 @@ import Foundation
|
||||
struct SetupProject: ParsableCommand {
|
||||
static var configuration = CommandConfiguration(abstract: "A tool to setup the required components to efficiently run and contribute to Element X iOS")
|
||||
|
||||
@Flag(help: "Use this only on ci to avoid installing failing packages")
|
||||
var ci = false
|
||||
|
||||
func run() throws {
|
||||
try setupGitHooks()
|
||||
try brewBundleInstall()
|
||||
try mintPackagesInstall()
|
||||
try xcodegen()
|
||||
}
|
||||
|
||||
@@ -15,7 +19,14 @@ struct SetupProject: ParsableCommand {
|
||||
}
|
||||
|
||||
func brewBundleInstall() throws {
|
||||
try Utilities.zsh("brew install xcodegen swiftgen swiftlint swiftformat git-lfs sourcery mint kiliankoe/formulae/swift-outdated localazy/tools/localazy")
|
||||
try Utilities.zsh("brew install xcodegen swiftgen swiftformat git-lfs sourcery mint kiliankoe/formulae/swift-outdated localazy/tools/localazy")
|
||||
if !ci {
|
||||
try Utilities.zsh("brew install swiftlint")
|
||||
}
|
||||
}
|
||||
|
||||
func mintPackagesInstall() throws {
|
||||
try Utilities.zsh("mint install Asana/locheck")
|
||||
}
|
||||
|
||||
func xcodegen() throws {
|
||||
|
||||
Reference in New Issue
Block a user