mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 01:20:21 +00:00 
			
		
		
		
	Fixed signature handling through a temporary file
This commit is contained in:
		
							parent
							
								
									754e146440
								
							
						
					
					
						commit
						08b00a23cf
					
				
							
								
								
									
										9
									
								
								.github/workflows/build-and-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/build-and-release.yml
									
									
									
									
										vendored
									
									
								
							@ -221,6 +221,8 @@ jobs:
 | 
			
		||||
  build_linux_arm64:
 | 
			
		||||
    name: Build app (linux-arm64)
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    if: false # disable this job for now
 | 
			
		||||
    
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout repository
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
@ -418,21 +420,22 @@ jobs:
 | 
			
		||||
          # Convert bash array to JSON array:
 | 
			
		||||
          signatures_json=$(printf '%s\n' "${signatures[@]}" | jq -R . | jq -s .)
 | 
			
		||||
          
 | 
			
		||||
          echo "signatures=${signatures_json}" >> $GITHUB_ENV
 | 
			
		||||
          # Write the JSON array to a temporary file
 | 
			
		||||
          echo $signatures_json > $GITHUB_WORKSPACE/.updates/signatures.json
 | 
			
		||||
 | 
			
		||||
      - name: Create latest.json
 | 
			
		||||
        env:
 | 
			
		||||
          FORMATTED_VERSION: ${{ needs.read_metadata.outputs.formatted_version }}
 | 
			
		||||
          FORMATTED_BUILD_TIME: ${{ needs.read_metadata.outputs.formatted_build_time }}
 | 
			
		||||
          SIGNATURES: ${{ env.signatures }}
 | 
			
		||||
          
 | 
			
		||||
        run: |
 | 
			
		||||
          rm -f $GITHUB_WORKSPACE/.updates/latest.json
 | 
			
		||||
          signatures=$(cat $GITHUB_WORKSPACE/.updates/signatures.json)
 | 
			
		||||
          cat <<EOF > $GITHUB_WORKSPACE/.updates/latest.json
 | 
			
		||||
          {
 | 
			
		||||
            "version": "$FORMATTED_VERSION",
 | 
			
		||||
            "pub_date": "$FORMATTED_BUILD_TIME",
 | 
			
		||||
            "signatures": $SIGNATURES
 | 
			
		||||
            "signatures": $signatures
 | 
			
		||||
          }
 | 
			
		||||
          EOF
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user