opt: use flutter-elinux 3.0.5 for arm64
This commit is contained in:
		
							parent
							
								
									7ab1655e63
								
							
						
					
					
						commit
						c083ecb4f3
					
				
							
								
								
									
										28
									
								
								.github/workflows/flutter-nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/flutter-nightly.yml
									
									
									
									
										vendored
									
									
								
							| @ -746,13 +746,16 @@ jobs: | |||||||
|       - name: Download Flutter |       - name: Download Flutter | ||||||
|         shell: bash |         shell: bash | ||||||
|         run: | |         run: | | ||||||
|  |           # disable git safe.directory | ||||||
|  |           git config --global --add safe.directory "*" | ||||||
|           pushd /opt |           pushd /opt | ||||||
|           # Currently 3.0.5 does not support arm build |           # clone repo and reset to flutter 3.0.5 | ||||||
|           git clone https://github.com/flutter/flutter.git -b stable || true |           git clone https://github.com/sony/flutter-elinux.git || true | ||||||
|           pushd flutter |           pushd flutter-elinux | ||||||
|           git fetch origin && git reset --hard origin/stable |             # reset to flutter 3.0.5 | ||||||
|           # TODO: `flutter_improved_scrolling` needs to be revised to support arm64 trackpad. |             git fetch | ||||||
|           # sed xxx |             git reset --hard b09a90eee643859ce4e676839227edd9fd3feba8  | ||||||
|  |           popd | ||||||
| 
 | 
 | ||||||
|       - uses: Kingtous/run-on-arch-action@amd64-support |       - uses: Kingtous/run-on-arch-action@amd64-support | ||||||
|         name: Build rustdesk binary for ${{ matrix.job.arch }} |         name: Build rustdesk binary for ${{ matrix.job.arch }} | ||||||
| @ -766,7 +769,7 @@ jobs: | |||||||
|           dockerRunArgs: | |           dockerRunArgs: | | ||||||
|             --volume "${PWD}:/workspace" |             --volume "${PWD}:/workspace" | ||||||
|             --volume "/opt/artifacts:/opt/artifacts" |             --volume "/opt/artifacts:/opt/artifacts" | ||||||
|             --volume "/opt/flutter:/opt/flutter" |             --volume "/opt/flutter-elinux:/opt/flutter-elinux" | ||||||
|           shell: /bin/bash |           shell: /bin/bash | ||||||
|           install: | |           install: | | ||||||
|             apt update -y |             apt update -y | ||||||
| @ -774,12 +777,13 @@ jobs: | |||||||
|           run: | |           run: | | ||||||
|             # disable git safe.directory |             # disable git safe.directory | ||||||
|             git config --global --add safe.directory "*" |             git config --global --add safe.directory "*" | ||||||
|             # Setup Flutter |  | ||||||
|             export PATH=/opt/flutter/bin:$PATH |  | ||||||
|             flutter doctor -v |  | ||||||
|             flutter precache |  | ||||||
|             pushd /workspace |             pushd /workspace | ||||||
|             # edit to arm64 |             # we use flutter-elinux to build our rustdesk | ||||||
|  |             sed -i "s/flutter build linux --release/flutter-elinux build linux/g" ./build.py | ||||||
|  |             # Setup flutter-elinux | ||||||
|  |             export PATH=/opt/flutter-elinux/bin:$PATH | ||||||
|  |             flutter-elinux doctor -v | ||||||
|  |             # edit to corresponding arch | ||||||
|             case ${{ matrix.job.arch }} in |             case ${{ matrix.job.arch }} in | ||||||
|               aarch64) |               aarch64) | ||||||
|                 sed -i "s/Architecture: amd64/Architecture: arm64/g" ./build.py |                 sed -i "s/Architecture: amd64/Architecture: arm64/g" ./build.py | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user