mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Try gon for notarization
This commit is contained in:
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@@ -85,10 +85,26 @@ jobs:
|
|||||||
# import certificate to keychain
|
# import certificate to keychain
|
||||||
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
||||||
security list-keychain -d user -s $KEYCHAIN_PATH
|
security list-keychain -d user -s $KEYCHAIN_PATH
|
||||||
- name: CodeSign Binaries
|
# - name: CodeSign Binaries
|
||||||
run: |
|
# 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/SquirrelMac
|
||||||
codesign --force --timestamp --options=runtime --keychain $KEYCHAIN_PATH --entitlements Squirrel.entitlements --sign "Developer ID Application: Caelan Sayler" ./publish/UpdateMac
|
# 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
|
- name: Clean up KeyChain
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionLevel", "SolutionLe
|
|||||||
build.ps1 = build.ps1
|
build.ps1 = build.ps1
|
||||||
pack.ps1 = pack.ps1
|
pack.ps1 = pack.ps1
|
||||||
Squirrel.entitlements = Squirrel.entitlements
|
Squirrel.entitlements = Squirrel.entitlements
|
||||||
|
gon.config.json = gon.config.json
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Squirrel.CommandLine.Windows", "src\Squirrel.CommandLine.Windows\Squirrel.CommandLine.Windows.csproj", "{19E8EBF5-0277-422F-BF49-C66D9DBA5AA4}"
|
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
22
gon.config.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user