mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	fix mac cicd
This commit is contained in:
		
							parent
							
								
									a1464735ce
								
							
						
					
					
						commit
						398d4c15f2
					
				
					 1 changed files with 13 additions and 7 deletions
				
			
		
							
								
								
									
										20
									
								
								.github/workflows/build_orca.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/build_orca.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -108,13 +108,6 @@ jobs: | |||
|         run: | | ||||
|           ./build_release_macos.sh -s -n -a ${{matrix.arch}} | ||||
| 
 | ||||
|       - name: Create DMG | ||||
|         if: 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 app | ||||
|         if: github.ref == 'refs/heads/main' && matrix.os == 'macos-12' | ||||
|         working-directory: ${{ github.workspace }} | ||||
|  | @ -133,6 +126,19 @@ jobs: | |||
|           security import $CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH | ||||
|           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' | ||||
|         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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 SoftFever
						SoftFever