mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 04:20:20 +00:00 
			
		
		
		
	Fixed Tauri setup when it is already present using a cache
This commit is contained in:
		
							parent
							
								
									a4f1aff2f3
								
							
						
					
					
						commit
						d13076e89a
					
				
							
								
								
									
										14
									
								
								.github/workflows/build-and-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/build-and-release.yml
									
									
									
									
										vendored
									
									
								
							@ -82,7 +82,7 @@ jobs:
 | 
				
			|||||||
          cd publish/dotnet
 | 
					          cd publish/dotnet
 | 
				
			||||||
          mv mindworkAIStudio.exe "../../app/MindWork AI Studio/bin/dist/mindworkAIStudio${{ matrix.dotnet_name_postfix }}"
 | 
					          mv mindworkAIStudio.exe "../../app/MindWork AI Studio/bin/dist/mindworkAIStudio${{ matrix.dotnet_name_postfix }}"
 | 
				
			||||||
          
 | 
					          
 | 
				
			||||||
      - name: Create parts for the Rust cache key (Unix systems)
 | 
					      - name: Create parts for the Rust cache key (Unix)
 | 
				
			||||||
        if: matrix.platform != 'windows-latest'
 | 
					        if: matrix.platform != 'windows-latest'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          cd runtime
 | 
					          cd runtime
 | 
				
			||||||
@ -121,7 +121,8 @@ jobs:
 | 
				
			|||||||
          sudo apt-get update
 | 
					          sudo apt-get update
 | 
				
			||||||
          sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
 | 
					          sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
 | 
				
			||||||
          
 | 
					          
 | 
				
			||||||
      - name: Setup Tauri
 | 
					      - name: Setup Tauri (Unix)
 | 
				
			||||||
 | 
					        if: matrix.platform != 'windows-latest'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          if ! cargo tauri --version > /dev/null 2>&1; then
 | 
					          if ! cargo tauri --version > /dev/null 2>&1; then
 | 
				
			||||||
            cargo install tauri-cli
 | 
					            cargo install tauri-cli
 | 
				
			||||||
@ -129,6 +130,15 @@ jobs:
 | 
				
			|||||||
            echo "Tauri is already installed"
 | 
					            echo "Tauri is already installed"
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
          
 | 
					          
 | 
				
			||||||
 | 
					      - name: Setup Tauri (Windows)
 | 
				
			||||||
 | 
					        if: matrix.platform == 'windows-latest'
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          if (-not (Get-Command cargo tauri -ErrorAction SilentlyContinue)) {
 | 
				
			||||||
 | 
					            cargo install tauri-cli
 | 
				
			||||||
 | 
					          } else {
 | 
				
			||||||
 | 
					            Write-Output "Tauri is already installed"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					      
 | 
				
			||||||
      - name: Build Tauri project
 | 
					      - name: Build Tauri project
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          cd runtime
 | 
					          cd runtime
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user