guoyu/log/备份/bat/内层_一键集成.bat
2025-12-07 00:11:06 +08:00

38 lines
1.1 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ========================================
echo 一键集成到 Android Studio
echo ========================================
echo.
set SDK_PATH=D:\4_Part\HBuilder-Android\HBuilder-Integrate-AS
if exist "%SDK_PATH%" (
echo [OK] 检测到 uni-app 离线 SDK
echo 路径: %SDK_PATH%
echo.
echo 开始集成资源...
powershell -ExecutionPolicy Bypass -File "%~dp0integrate-to-android-studio.ps1"
) else (
echo [X] 未检测到 uni-app 离线 SDK
echo.
echo 请先下载并解压 SDK
echo.
echo 步骤 1下载
echo 访问https://nativesupport.dcloud.net.cn/AppDocs/download/android
echo 或直接下载https://download1.dcloud.net.cn/download/HBuilder-Integrate-AS.zip
echo.
echo 步骤 2解压
echo 解压到D:\4_Part\HBuilder-Android\
echo 确保有这个目录D:\4_Part\HBuilder-Android\HBuilder-Integrate-AS\
echo.
echo 步骤 3重新运行此脚本
echo.
choice /C YN /M "是否在浏览器中打开下载页面"
if errorlevel 2 goto end
if errorlevel 1 start https://nativesupport.dcloud.net.cn/AppDocs/download/android
)
:end
pause