File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 99  AWS_PLUGIN_TARGET : /tools/ 
1010  #  See: https://github.com/actions/setup-python/tree/v3#available-versions-of-python
1111  PYTHON_VERSION : " 3.7" 
12+   GO_VERSION : " 1.17" 
1213  MCUBOOT_PATH : ${{ github.workspace }}/mcuboot 
1314  IMGTOOL_PACKING_PATH : ${{ github.workspace }}/imgtool-packing 
15+   GON_PATH : ${{ github.workspace }}/gon 
1416
1517on :
1618  push :
@@ -215,18 +217,31 @@ jobs:
215217            -k "${{ env.KEYCHAIN_PASSWORD }}" \ 
216218            "${{ env.KEYCHAIN }}" 
217219
220+ name : Install Go 
221+         uses : actions/setup-go@v3 
222+         with :
223+           go-version : ${{ env.GO_VERSION }} 
224+ 
218225      - name : Install gon for code signing and app notarization 
226+         uses : actions/checkout@v3 
227+         with :
228+           repository : darkvertex/gon  # this fork has support for --deep notarization
229+           path : ${{ env.GON_PATH }} 
230+           ref : deep_sign_support 
231+           
232+       - name : Build gon 
233+         working-directory : ${{ env.GON_PATH }}/ 
219234        run : | 
220-           wget -q https://github.com/mitchellh/gon/releases/download/v0.2.3/gon_macos.zip 
221-           unzip gon_macos.zip -d /usr/local/bin 
235+           ls -lah 
236+           go build 
237+           mv gon /usr/local/bin 
222238
223239name : Sign and notarize binary 
224240        env :
225241          AC_USERNAME : ${{ secrets.AC_USERNAME }} 
226242          AC_PASSWORD : ${{ secrets.AC_PASSWORD }} 
227243        run : | 
228-           # gon gon.config.hcl 
229-           codesign -s "Developer ID Application: ARDUINO SA (7KT7ZWMCJT)" -v --deep --force --timestamp --entitlements entitlements.plist -o runtime dist/imgtool_macOS_64bit/imgtool 
244+           gon gon.config.hcl 
230245
231246name : Re-package binary 
232247        #  This step performs the following:
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ bundle_id = "cc.arduino.imgtool"
66sign  {
77  application_identity  =  " Developer ID Application: ARDUINO SA (7KT7ZWMCJT)" 
88  entitlements_file  =  " entitlements.plist" 
9+   deep  =  true 
910}
1011
1112#  Ask Gon for zip output to force notarization process to take place.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments