ci(workflow): 修复docker.yml中的格式问题并保持功能不变
This commit is contained in:
parent
477d4086b2
commit
8b8d29dd00
@ -131,8 +131,23 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
run: call copy_libcore.bat
|
run: call copy_libcore.bat
|
||||||
|
|
||||||
- name: Install jq\n shell: powershell\n run: |\n if (!(Get-Command choco -ErrorAction SilentlyContinue)) {\n Set-ExecutionPolicy Bypass -Scope Process -Force\n [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072\n iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\n }\n choco install jq -y\n $env:Path = [System.Environment]::GetEnvironmentVariable('Path','Machine') + ';' + [System.Environment]::GetEnvironmentVariable('Path','User')\n jq --version\n\n- name: Setup Flutter\n uses: subosito/flutter-action@v2\n with:\n flutter-version: '3.24.5'\n channel: 'stable'
|
- name: Install jq
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
if (!(Get-Command choco -ErrorAction SilentlyContinue)) {
|
||||||
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
||||||
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
|
||||||
|
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||||
|
}
|
||||||
|
choco install jq -y
|
||||||
|
$env:Path = [System.Environment]::GetEnvironmentVariable('Path','Machine') + ';' + [System.Environment]::GetEnvironmentVariable('Path','User')
|
||||||
|
jq --version
|
||||||
|
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
flutter-version: '3.24.5'
|
||||||
|
channel: 'stable'
|
||||||
- name: Enable Windows desktop
|
- name: Enable Windows desktop
|
||||||
run: flutter config --enable-windows-desktop
|
run: flutter config --enable-windows-desktop
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user