mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	fix notary 2
This commit is contained in:
		
							parent
							
								
									398d4c15f2
								
							
						
					
					
						commit
						d985cf60f9
					
				
					 1 changed files with 11 additions and 19 deletions
				
			
		
							
								
								
									
										30
									
								
								.github/workflows/build_orca.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/build_orca.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -108,7 +108,8 @@ jobs: | |||
|         run: | | ||||
|           ./build_release_macos.sh -s -n -a ${{matrix.arch}} | ||||
| 
 | ||||
|       - name: Sign app | ||||
|  # Thanks to RaySajuuk, it's working now | ||||
|       - name: Sign app and notary | ||||
|         if: github.ref == 'refs/heads/main' && matrix.os == 'macos-12' | ||||
|         working-directory: ${{ github.workspace }} | ||||
|         env: | ||||
|  | @ -127,29 +128,20 @@ jobs: | |||
|           security list-keychain -d user -s $KEYCHAIN_PATH | ||||
|           security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $P12_PASSWORD $KEYCHAIN_PATH | ||||
|           codesign --deep --force --verbose --options runtime --timestamp --entitlements ${{ github.workspace }}/scripts/disable_validation.entitlements --sign "$CERTIFICATE_ID" ${{ github.workspace }}/build_${{matrix.arch}}/OrcaSlicer/OrcaSlicer.app | ||||
|        | ||||
|       - name: Create DMG | ||||
|         if: matrix.os == 'macos-12' | ||||
|           ln -s /Applications ${{ github.workspace }}/build_${{matrix.arch}}/OrcaSlicer/Applications | ||||
|           hdiutil create -volname "OrcaSlicer" -srcfolder ${{ github.workspace }}/build_${{matrix.arch}}/OrcaSlicer -ov -format UDZO OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg | ||||
|           codesign --deep --force --verbose --options runtime --timestamp --entitlements ${{ github.workspace }}/scripts/disable_validation.entitlements --sign "$CERTIFICATE_ID" OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg | ||||
|           xcrun notarytool store-credentials "notarytool-profile" --apple-id "${{ secrets.APPLE_DEV_ACCOUNT }}" --team-id "${{ secrets.TEAM_ID }}" --password "${{ secrets.APP_PWD }}" | ||||
|           xcrun notarytool submit "OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg" --keychain-profile "notarytool-profile" --wait | ||||
|           xcrun stapler staple OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg | ||||
| 
 | ||||
|       - name: Create DMG without notary | ||||
|         if: github.ref != 'refs/heads/main' && matrix.os == 'macos-12' | ||||
|         working-directory: ${{ github.workspace }} | ||||
|         run: | | ||||
|           ln -s /Applications ${{ github.workspace }}/build_${{matrix.arch}}/OrcaSlicer/Applications | ||||
|           hdiutil create -volname "OrcaSlicer" -srcfolder ${{ github.workspace }}/build_${{matrix.arch}}/OrcaSlicer -ov -format UDZO OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg | ||||
| 
 | ||||
|       - name: Sign DMG | ||||
|         if: github.ref == 'refs/heads/main' && matrix.os == 'macos-12' | ||||
|         working-directory: ${{ github.workspace }} | ||||
|         run: | | ||||
|           codesign --deep --force --verbose --options runtime --timestamp --entitlements ${{ github.workspace }}/scripts/disable_validation.entitlements --sign "$CERTIFICATE_ID" OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg | ||||
|        | ||||
|       # Thanks to RaySajuuk, it's working now | ||||
|       - name: Notarize the app  | ||||
|         if: github.ref == 'refs/heads/main' && matrix.os == 'macos-12' | ||||
|         working-directory: ${{ github.workspace }} | ||||
|         run: | | ||||
|           xcrun notarytool store-credentials "notarytool-profile" --apple-id "${{ secrets.APPLE_DEV_ACCOUNT }}" --team-id "${{ secrets.TEAM_ID }}" --password "${{ secrets.APP_PWD }}" | ||||
|           xcrun notarytool submit "OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg" --keychain-profile "notarytool-profile" --wait | ||||
|           xcrun stapler staple OrcaSlicer_Mac_${{matrix.arch}}_V${{ env.ver }}.dmg | ||||
| 
 | ||||
|       - name: Upload artifacts mac | ||||
|         if: matrix.os == 'macos-12' | ||||
|         uses: actions/upload-artifact@v3 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 SoftFever
						SoftFever