From e187c01711fcf28e57533ff635544ce9227ee1ca Mon Sep 17 00:00:00 2001 From: dcvz Date: Thu, 8 Feb 2024 11:45:43 +0100 Subject: [PATCH 1/4] Add tuist --- projects/tuist.io/tuist/package.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/tuist.io/tuist/package.yml diff --git a/projects/tuist.io/tuist/package.yml b/projects/tuist.io/tuist/package.yml new file mode 100644 index 0000000000..7dc92c17a0 --- /dev/null +++ b/projects/tuist.io/tuist/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/tuist/tuist/archive/refs/tags/{{version}}.tar.gz + strip-components: 1 + +versions: + github: tuist/tuist + +platforms: + - darwin + +provides: + - bin/tuist + +build: + dependencies: + github.com/unsignedapps/swift-create-xcframework: "*" + script: | + swift build -c release --product tuist + swift create-xcframework ProjectDescription + swift create-xcframework ProjectAutomation + mkdir -p {{prefix}}/bin + mv $(swift build --configuration release --show-bin-path)/tuist {{prefix}}/bin + mv $(swift build --configuration release --show-bin-path)/ProjectDescription.xcframework {{prefix}}/bin + mv $(swift build --configuration release --show-bin-path)/ProjectAutomation.xcframework {{prefix}}/bin + cp -R Templates {{prefix}}/bin + +test: tuist version | grep {{version}} From 351549702c58f4e9825bda391cabb2f2459d6026 Mon Sep 17 00:00:00 2001 From: dcvz Date: Thu, 8 Feb 2024 23:22:16 +0100 Subject: [PATCH 2/4] Use Swift 5.9 --- projects/tuist.io/tuist/package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/tuist.io/tuist/package.yml b/projects/tuist.io/tuist/package.yml index 7dc92c17a0..24633d2ecb 100644 --- a/projects/tuist.io/tuist/package.yml +++ b/projects/tuist.io/tuist/package.yml @@ -14,6 +14,7 @@ provides: build: dependencies: github.com/unsignedapps/swift-create-xcframework: "*" + swift.org: 5.9.2 script: | swift build -c release --product tuist swift create-xcframework ProjectDescription From 9aeb302ba1312c8b2d753eb591b721d9122d3b32 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 14 May 2024 12:01:03 -0400 Subject: [PATCH 3/4] swift version --- projects/tuist.io/tuist/package.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/tuist.io/tuist/package.yml b/projects/tuist.io/tuist/package.yml index 24633d2ecb..282aad029d 100644 --- a/projects/tuist.io/tuist/package.yml +++ b/projects/tuist.io/tuist/package.yml @@ -14,15 +14,15 @@ provides: build: dependencies: github.com/unsignedapps/swift-create-xcframework: "*" - swift.org: 5.9.2 - script: | - swift build -c release --product tuist - swift create-xcframework ProjectDescription - swift create-xcframework ProjectAutomation - mkdir -p {{prefix}}/bin - mv $(swift build --configuration release --show-bin-path)/tuist {{prefix}}/bin - mv $(swift build --configuration release --show-bin-path)/ProjectDescription.xcframework {{prefix}}/bin - mv $(swift build --configuration release --show-bin-path)/ProjectAutomation.xcframework {{prefix}}/bin - cp -R Templates {{prefix}}/bin + script: + - swift --version + - swift build -c release --product tuist + - swift create-xcframework ProjectDescription + - swift create-xcframework ProjectAutomation + - mkdir -p {{prefix}}/bin + - mv $(swift build --configuration release --show-bin-path)/tuist {{prefix}}/bin + - mv $(swift build --configuration release --show-bin-path)/ProjectDescription.xcframework {{prefix}}/bin + - mv $(swift build --configuration release --show-bin-path)/ProjectAutomation.xcframework {{prefix}}/bin + - cp -R Templates {{prefix}}/bin test: tuist version | grep {{version}} From 6333fa6e25cd488770ea8c276074e40ba2dec2f0 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 14 May 2024 12:51:42 -0400 Subject: [PATCH 4/4] try setting tools-version --- projects/tuist.io/tuist/package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/tuist.io/tuist/package.yml b/projects/tuist.io/tuist/package.yml index 282aad029d..2b8fb2befb 100644 --- a/projects/tuist.io/tuist/package.yml +++ b/projects/tuist.io/tuist/package.yml @@ -15,7 +15,7 @@ build: dependencies: github.com/unsignedapps/swift-create-xcframework: "*" script: - - swift --version + - swift package tools-version --set-current - swift build -c release --product tuist - swift create-xcframework ProjectDescription - swift create-xcframework ProjectAutomation