Skip to content

Commit

Permalink
Sign release binaries (#207)
Browse files Browse the repository at this point in the history
* Sign release binaries

Should fix #184

* Use VMs for building

* Test release

* Fixed password

* Revert testing
  • Loading branch information
fkorotkov authored Aug 30, 2022
1 parent 0cad2e4 commit 1890909
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,23 @@ task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
env:
MACOS_CERTIFICATE: ENCRYPTED[0dcc39b6d243b7eafba4412741c41dcb6779ebcbc40d78e54dbbb92632e64cdd5b665595e3c1251d746d9e6a124e4121]
AC_PASSWORD: ENCRYPTED[4a761023e7e06fe2eb350c8b6e8e7ca961af193cb9ba47605f25f1d353abc3142606f412e405be48fd897a78787ea8c2]
GITHUB_TOKEN: ENCRYPTED[!98ace8259c6024da912c14d5a3c5c6aac186890a8d4819fad78f3e0c41a4e0cd3a2537dd6e91493952fb056fa434be7c!]
GORELEASER_KEY: ENCRYPTED[!9b80b6ef684ceaf40edd4c7af93014ee156c8aba7e6e5795f41c482729887b5c31f36b651491d790f1f668670888d9fd!]
install_script: brew install go goreleaser/tap/goreleaser-pro
install_script:
- brew install go goreleaser/tap/goreleaser-pro
- brew install mitchellh/gon/gon
setup_script:
- cd $HOME
- echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
- security create-keychain -p password101 build.keychain
- security default-keychain -s build.keychain
- security unlock-keychain -p password101 build.keychain
- security import certificate.p12 -k build.keychain -P password101 -T /usr/bin/codesign
- security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k password101 build.keychain
info_script:
- security find-identity -v
- xcodebuild -version
- swift -version
release_script: goreleaser
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ builds:
- arm64
prebuilt:
path: .build/{{ .Arch }}-apple-macosx/debug/tart
hooks:
post: gon gon.hcl

before:
hooks:
Expand Down
12 changes: 12 additions & 0 deletions gon.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source = [".build/arm64-apple-macosx/debug/tart"]
bundle_id = "com.github.cirruslabs.tart"

apple_id {
username = "[email protected]"
password = "@env:AC_PASSWORD"
}

sign {
application_identity = "Developer ID Application: Fedor Korotkov"
entitlements_file = "Resources/tart.entitlements"
}

0 comments on commit 1890909

Please sign in to comment.