So I'm convinced I just need to edit these 2 .bat files, but I'm having no luck. If anyone can revise these .bat files to support a Windows .exe build, that would be awesome. I'm not trying to create a setup distribution file, I just want to run the app.exe from a folder. Thx for any help.
File: PackageApp.bat
@echo off
:: Set working dir
cd %~dp0 & cd ..
set PAUSE_ERRORS=1
call bat\SetupSDK.bat
call bat\SetupApp.bat
:menu
echo.
echo Package for target
echo.
echo Android:
echo.
echo [1] normal (apk)
echo [2] debug (apk-debug)
echo [3] captive (apk-captive-runtime)
echo.
:choice
set /P C=[Choice]:
echo.
set PLATFORM=android
set OPTIONS=
if "%C%"=="1" set TARGET=
if "%C%"=="2" set TARGET=-debug
if "%C%"=="2" set OPTIONS=-connect %DEBUG_IP%
if "%C%"=="3" set TARGET=-captive-runtime
call bat\Packager.bat
if "%PLATFORM%"=="android" goto android-package
:android-package
if "%ARCH%"=="4" goto end
adb devices
echo.
echo Installing %OUTPUT% on the device...
echo.
adb -d install -r "%OUTPUT%"
if errorlevel 1 goto installfail
goto end
:installfail
echo.
echo Installing the app on the device failed
:end
pause
File: Packager.bat
@echo off
:: Set working dir
cd %~dp0 & cd ..
if "%PLATFORM%"=="android" goto android-config
`
goto start
:android-config
set CERT_FILE=%AND_CERT_FILE%
set SIGNING_OPTIONS=%AND_SIGNING_OPTIONS%
set ICONS=%AND_ICONS%
set DIST_EXT=apk
set TYPE=apk
:: which architecture?
echo.
echo Please select your target architecture for Android:
echo.
echo [1] armv7 ^(32-bit ARM devices^)
echo [2] x86 ^(Intel products^)
echo [3] armv8 ^(64-bit ARM devices^)
echo [4] Bundle
echo.
set /P ARCH=[Choice:]
echo.
if "%ARCH%"=="1" set OPTIONS=%OPTIONS% -arch armv7
if "%ARCH%"=="2" set OPTIONS=%OPTIONS% -arch x86
if "%ARCH%"=="3" set OPTIONS=%OPTIONS% -arch armv8
if "%ARCH%"=="1" set BITS=x32
if "%ARCH%"=="2" set BITS=x86
if "%ARCH%"=="3" set BITS=x64
if "%ARCH%"=="4" goto bundle
goto start
:start
if not exist "%CERT_FILE%" goto certificate
:: Output file
set FILE_OR_DIR=%FILE_OR_DIR% -C "%ICONS%" .
if not exist "%DIST_PATH%" md "%DIST_PATH%"
set OUTPUT=%DIST_PATH%\%DIST_NAME%%TARGET%-%BITS%.%DIST_EXT%
:: Package
echo Packaging: %OUTPUT%
echo using certificate: %CERT_FILE%...
echo.
call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR% -extdir D:/build/_ext
::-resdir bin/res
echo.
if errorlevel 1 goto failed
goto end
:bundle
if not exist "%CERT_FILE%" goto certificate
:: Output file
set DIST_EXT=aab
set TYPE=aab
set FILE_OR_DIR=%FILE_OR_DIR% -C "%ICONS%" .
if not exist "%DIST_PATH%" md "%DIST_PATH%"
set OUTPUT=%DIST_PATH%\%DIST_NAME%%TARGET%.%DIST_EXT%
:: Package
echo Packaging Bundle: %OUTPUT%
echo using certificate: %CERT_FILE%...
echo.
call adt -package -target aab %SIGNING_OPTIONS% %OUTPUT% "%APP_XML%" %FILE_OR_DIR% -extdir D:/build/_ext
echo.
if errorlevel 1 goto failed
goto end
:certificate
echo Certificate not found: %CERT_FILE%
echo.
echo Android:
echo - generate a default certificate using 'bat\CreateCertificate.bat'
echo or configure a specific certificate in 'bat\SetupApp.bat'.
echo.
echo iOS:
echo - configure your developer key and project's Provisioning Profile
echo in 'bat\SetupApp.bat'.
echo.
if %PAUSE_ERRORS%==1 pause
exit
:failed
echo APK setup creation FAILED.
echo.
echo Troubleshooting:
echo - verify AIR SDK target version in %APP_XML%
echo.
if %PAUSE_ERRORS%==1 pause
exit
:end