fix: use appimage feature
This commit is contained in:
		
							parent
							
								
									3bf2d749fe
								
							
						
					
					
						commit
						9245e13057
					
				
							
								
								
									
										16
									
								
								.github/workflows/flutter-nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/flutter-nightly.yml
									
									
									
									
										vendored
									
									
								
							| @ -599,6 +599,12 @@ jobs: | ||||
|               os: ubuntu-20.04, | ||||
|               extra-build-features: "flatpak", | ||||
|             } | ||||
|           - { | ||||
|               arch: x86_64, | ||||
|               target: x86_64-unknown-linux-gnu, | ||||
|               os: ubuntu-20.04, | ||||
|               extra-build-features: "appimage", | ||||
|             } | ||||
|           # - { target: x86_64-unknown-linux-musl   , os: ubuntu-20.04, use-cross: true } | ||||
|     steps: | ||||
|       - name: Maximize build space | ||||
| @ -1148,6 +1154,12 @@ jobs: | ||||
|               os: ubuntu-18.04, | ||||
|               extra-build-features: "flatpak", | ||||
|             } | ||||
|           - { | ||||
|               arch: x86_64, | ||||
|               target: x86_64-unknown-linux-gnu, | ||||
|               os: ubuntu-18.04, | ||||
|               extra-build-features: "appimage", | ||||
|             } | ||||
|           # - { target: x86_64-unknown-linux-musl   , os: ubuntu-20.04, use-cross: true } | ||||
|     steps: | ||||
|       - name: Checkout source code | ||||
| @ -1287,7 +1299,7 @@ jobs: | ||||
|             res/rustdesk*.zst | ||||
| 
 | ||||
|       - name: Build appimage package | ||||
|         if: ${{ matrix.job.extra-build-features == '' }} | ||||
|         if: ${{ matrix.job.extra-build-features == 'appimage' }} | ||||
|         shell: bash | ||||
|         run: | | ||||
|           # set-up appimage-builder | ||||
| @ -1301,7 +1313,7 @@ jobs: | ||||
|           sudo appimage-builder --skip-tests | ||||
| 
 | ||||
|       - name: Publish appimage package | ||||
|         if: ${{ matrix.job.extra-build-features == '' }} | ||||
|         if: ${{ matrix.job.extra-build-features == 'appimage' }} | ||||
|         uses: softprops/action-gh-release@v1 | ||||
|         with: | ||||
|           prerelease: true | ||||
|  | ||||
							
								
								
									
										7
									
								
								build.py
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								build.py
									
									
									
									
									
								
							| @ -99,6 +99,11 @@ def make_parser(): | ||||
|         action='store_true', | ||||
|         help='Build rustdesk libs with the flatpak feature enabled' | ||||
|     ) | ||||
|     parser.add_argument( | ||||
|         '--appimage', | ||||
|         action='store_true', | ||||
|         help='Build rustdesk libs with the appimage feature enabled' | ||||
|     ) | ||||
|     parser.add_argument( | ||||
|         '--skip-cargo', | ||||
|         action='store_true', | ||||
| @ -236,6 +241,8 @@ def get_features(args): | ||||
|         features.append('flutter') | ||||
|     if args.flatpak: | ||||
|         features.append('flatpak') | ||||
|     if args.appimage: | ||||
|         features.append('appimage') | ||||
|     print("features:", features) | ||||
|     return features | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user