Try gon for notarization

This commit is contained in:
Caelan Sayler
2022-05-14 13:08:01 +01:00
parent bd2307407b
commit 44ad05129a
3 changed files with 43 additions and 4 deletions

View File

@@ -85,10 +85,26 @@ jobs:
# import certificate to keychain
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
- name: CodeSign Binaries
run: |
codesign --force --timestamp --options=runtime --keychain $KEYCHAIN_PATH --entitlements Squirrel.entitlements --sign "Developer ID Application: Caelan Sayler" ./publish/SquirrelMac
codesign --force --timestamp --options=runtime --keychain $KEYCHAIN_PATH --entitlements Squirrel.entitlements --sign "Developer ID Application: Caelan Sayler" ./publish/UpdateMac
# - name: CodeSign Binaries
# run: |
# codesign --force --timestamp --options=runtime --keychain $KEYCHAIN_PATH --entitlements ./Squirrel.entitlements --sign "Developer ID Application: Caelan Sayler" ./publish/SquirrelMac
# codesign --force --timestamp --options=runtime --keychain $KEYCHAIN_PATH --entitlements ./Squirrel.entitlements --sign "Developer ID Application: Caelan Sayler" ./publish/UpdateMac
# zip bundle.zip ./publish/SquirrelMac
# zip bundle.zip ./publish/UpdateMac
- name: Install mitchellh/gon
run: brew install mitchellh/gon/gon
- name: Bundle, Sign, and Notarize
run: gon ./gon.config.json
# - name: Notarize Binaries
# uses: devbotsxyz/xcode-notarize@v1
# with:
# product-path: "bundle.zip"
# appstore-connect-username: ${{ secrets.NOTARIZATION_USERNAME }}
# appstore-connect-password: ${{ secrets.NOTARIZATION_PASSWORD }}
# - name: Staple Notarization
# uses: devbotsxyz/xcode-staple@v1
# with:
# product-path: "bundle.zip"
- name: Clean up KeyChain
if: ${{ always() }}
run: |

View File

@@ -20,6 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionLevel", "SolutionLe
build.ps1 = build.ps1
pack.ps1 = pack.ps1
Squirrel.entitlements = Squirrel.entitlements
gon.config.json = gon.config.json
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Squirrel.CommandLine.Windows", "src\Squirrel.CommandLine.Windows\Squirrel.CommandLine.Windows.csproj", "{19E8EBF5-0277-422F-BF49-C66D9DBA5AA4}"

22
gon.config.json Normal file
View File

@@ -0,0 +1,22 @@
{
"source": [
"./publish/SquirrelMac",
"./publish/UpdateMac"
],
"bundle_id": "com.caesay.squirrel",
"apple_id": {
"username": "@env:NZ_USERNAME",
"password": "@env:NZ_PASSWORD"
},
"sign": {
"application_identity": "Developer ID Application: Caelan Sayler",
"entitlements_file": "Squirrel.entitlements"
},
"dmg": {
"output_path": "Squirrel.dmg",
"volume_name": "Squirrel"
},
"zip": {
"output_path": "Squirrel.zip"
}
}