From 0a970462e8c63761022410fa2bb97d36dd2455ba Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Tue, 7 Mar 2023 10:01:34 -0500 Subject: [PATCH] Revert most of the release logic after 1.0.0 (#443) Logic for building .tar.gz should be the same as for 1.0.0 and only after that a .pkg is build to make sure it's not interfering. Let's try this before disabling building .pkg all together. --- .goreleaser.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 2931d5a..38607cb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,10 +4,6 @@ before: hooks: - .ci/set-version.sh - swift build -c debug --product tart - - xattr -cr .build/arm64-apple-macosx/debug/tart - - gon gon.hcl - - codesign --verify --deep --strict .build/arm64-apple-macosx/debug/tart - - ./.ci/create-pkg.sh builds: - builder: prebuilt @@ -17,12 +13,22 @@ builds: - arm64 prebuilt: path: .build/arm64-apple-macosx/debug/tart + hooks: + post: + - gon gon.hcl archives: - name_template: "{{ .ProjectName }}" files: - src: Resources/embedded.provisionprofile + dst: tart.app/Contents strip_parent: true + - src: ".build/arm64-apple-macosx/debug/tart" + dst: tart.app/Contents/MacOS + strip_parent: true + hooks: + after: + - ./.ci/create-pkg.sh release: prerelease: auto @@ -42,9 +48,7 @@ brews: dependencies: - "cirruslabs/cli/softnet" install: | - mkdir_p libexec/"tart.app/Contents/MacOS/" - libexec.install "tart" => "tart.app/Contents/MacOS/tart" - libexec.install "embedded.provisionprofile" => "tart.app/Contents/embedded.provisionprofile" + libexec.install Dir["*"] bin.write_exec_script "#{libexec}/tart.app/Contents/MacOS/tart" custom_block: | depends_on :macos => :monterey