mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Automatically open a PR to bump the calver (#4167)
* Update our tools package to Swift 6.1
Also improves the package layout with subdirectories 📁
* Update GenerateSDKMocks to be an Async command.
* Add a tool to bump the project CalVer every month.
* Add a workflow to automatically bump the calendar version.
Note: This only does year & month, the patch is handled by the release script.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import ArgumentParser
|
||||
import CommandLineTools
|
||||
import Foundation
|
||||
|
||||
struct SetupProject: ParsableCommand {
|
||||
static let configuration = CommandConfiguration(abstract: "A tool to setup the required components to efficiently run and contribute to Element X iOS")
|
||||
|
||||
func run() throws {
|
||||
try setupGitHooks()
|
||||
try brewInstall()
|
||||
try mintPackagesInstall()
|
||||
try xcodegen()
|
||||
}
|
||||
|
||||
func setupGitHooks() throws {
|
||||
try Zsh.run(command: "git config core.hooksPath .githooks")
|
||||
}
|
||||
|
||||
func brewInstall() throws {
|
||||
try Zsh.run(command: "brew install xcodegen swiftgen swiftformat git-lfs sourcery mint pkl kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery FelixHerrmann/tap/swift-package-list")
|
||||
}
|
||||
|
||||
func mintPackagesInstall() throws {
|
||||
try Zsh.run(command: "mint install Asana/locheck")
|
||||
}
|
||||
|
||||
func xcodegen() throws {
|
||||
try Zsh.run(command: "xcodegen")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user