style(ci): 修正docker.yml中的缩进格式
This commit is contained in:
parent
a09245cb3e
commit
cea406f660
@ -126,72 +126,72 @@ jobs:
|
|||||||
path: .
|
path: .
|
||||||
|
|
||||||
- name: 🔧 复制 libcore 文件到正确位置并重命名
|
- name: 🔧 复制 libcore 文件到正确位置并重命名
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
Write-Host "📋 复制 libcore 文件..."
|
Write-Host "📋 复制 libcore 文件..."
|
||||||
|
|
||||||
# 创建目标目录
|
# 创建目标目录
|
||||||
New-Item -ItemType Directory -Force -Path libcore/bin
|
New-Item -ItemType Directory -Force -Path libcore/bin
|
||||||
|
|
||||||
$exeFiles = Get-ChildItem -Recurse -Filter "HiddifyCli.exe" -ErrorAction SilentlyContinue
|
$exeFiles = Get-ChildItem -Recurse -Filter "HiddifyCli.exe" -ErrorAction SilentlyContinue
|
||||||
if ($exeFiles) {
|
if ($exeFiles) {
|
||||||
$sourceExe = $exeFiles[0].FullName
|
$sourceExe = $exeFiles[0].FullName
|
||||||
Write-Host "✅ 找到 HiddifyCli.exe: $sourceExe"
|
Write-Host "✅ 找到 HiddifyCli.exe: $sourceExe"
|
||||||
Write-Host "📝 复制并重命名为 BearVPNCli.exe"
|
Write-Host "📝 复制并重命名为 BearVPNCli.exe"
|
||||||
Copy-Item $sourceExe libcore/bin/BearVPNCli.exe
|
Copy-Item $sourceExe libcore/bin/BearVPNCli.exe
|
||||||
Write-Host "✅ 重命名完成:HiddifyCli.exe → BearVPNCli.exe"
|
Write-Host "✅ 重命名完成:HiddifyCli.exe → BearVPNCli.exe"
|
||||||
} else {
|
} else {
|
||||||
Write-Host "⚠️ 未找到 HiddifyCli.exe"
|
Write-Host "⚠️ 未找到 HiddifyCli.exe"
|
||||||
}
|
}
|
||||||
|
|
||||||
# 复制 libcore.dll
|
# 复制 libcore.dll
|
||||||
$dllFiles = Get-ChildItem -Recurse -Filter "libcore.dll" -ErrorAction SilentlyContinue
|
$dllFiles = Get-ChildItem -Recurse -Filter "libcore.dll" -ErrorAction SilentlyContinue
|
||||||
if ($dllFiles) {
|
if ($dllFiles) {
|
||||||
$sourceDll = $dllFiles[0].FullName
|
$sourceDll = $dllFiles[0].FullName
|
||||||
Write-Host "✅ 找到 libcore.dll: $sourceDll"
|
Write-Host "✅ 找到 libcore.dll: $sourceDll"
|
||||||
Copy-Item $sourceDll libcore/bin/libcore.dll
|
Copy-Item $sourceDll libcore/bin/libcore.dll
|
||||||
} else {
|
} else {
|
||||||
Write-Host "⚠️ 未找到 libcore.dll"
|
Write-Host "⚠️ 未找到 libcore.dll"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host "📄 验证文件:"
|
Write-Host "📄 验证文件:"
|
||||||
if (Test-Path libcore/bin) {
|
if (Test-Path libcore/bin) {
|
||||||
Get-ChildItem libcore/bin -ErrorAction SilentlyContinue | Format-Table Name, Length
|
Get-ChildItem libcore/bin -ErrorAction SilentlyContinue | Format-Table Name, Length
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Setup Flutter
|
- name: Setup Flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.24.5'
|
flutter-version: '3.24.5'
|
||||||
channel: 'stable'
|
channel: 'stable'
|
||||||
|
|
||||||
- name: Enable Windows desktop
|
- name: Enable Windows desktop
|
||||||
run: flutter config --enable-windows-desktop
|
run: flutter config --enable-windows-desktop
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Generate code
|
- name: Generate code
|
||||||
run: dart run build_runner build --delete-conflicting-outputs
|
run: dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
- name: Build Windows Debug
|
- name: Build Windows Debug
|
||||||
run: flutter build windows
|
run: flutter build windows
|
||||||
|
|
||||||
- name: Build Windows Release
|
- name: Build Windows Release
|
||||||
run: flutter build windows --release
|
run: flutter build windows --release
|
||||||
|
|
||||||
- name: Upload Debug build artifacts
|
- name: Upload Debug build artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: windows-debug-build
|
name: windows-debug-build
|
||||||
path: build/windows/runner/Debug/
|
path: build/windows/runner/Debug/
|
||||||
|
|
||||||
- name: Upload Release build artifacts
|
- name: Upload Release build artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: windows-release-build
|
name: windows-release-build
|
||||||
path: build/windows/runner/Release/
|
path: build/windows/runner/Release/
|
||||||
|
|
||||||
# 本地(act)验证作业:只验证 Git PATH 与 checkout/submodules
|
# 本地(act)验证作业:只验证 Git PATH 与 checkout/submodules
|
||||||
build-act-windows:
|
build-act-windows:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user