diff --git a/src/SMAPI/post-build.cmd b/src/SMAPI/post-build.cmd index 29e1e0ad2..f5815e9a9 100644 --- a/src/SMAPI/post-build.cmd +++ b/src/SMAPI/post-build.cmd @@ -1,9 +1,14 @@ -adb logcat -c set AppName=abc.smapi.gameloader adb shell am force-stop %AppName% +if errorlevel 1 ( + echo ADB is not connected. + exit /b +) + + adb push "bin/ARM64/Android Release/StardewModdingAPI.dll" "/storage/emulated/0/Android/data/%AppName%/files/Stardew Assemblies/StardewModdingAPI.dll" adb shell am start %AppName%"/crc64e91f1276c636690c.LauncherActivity"