Compile troubles

I’m trying to compile a droid app that uses the adobe air3’sNative extension for mobile devices. The trouble is that you have to compile it in the command line and the tutorial I was going from gave me a compile script for mac.

I never really learned much about writing batch files, so I have no idea how to convert this.

# path to YOUR Android SDK
export AIR_ANDROID_SDK_HOME="/Users/leebrimelow/Documents/SDKs/android-sdk/"


# path to the ADT tool in Flash Builder sdks
ADT="/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/bin/adt"


# native project folder
NATIVE_FOLDER=jar


# AS lib folder
LIB_FOLDER=lib


# app folder
APP_PROJECT=Napp


# name of ANE file
ANE_NAME=notification.ane


# JAR filename
JAR_NAME=notification.jar


# APK name
APK_NAME=NotifyApp.apk


# cert path
CERT_NAME=cert.p12


# cert password
CERT_PASS=password


#===================================================================


echo "****** preparing ANE package sources *******"


rm ${ANE_NAME}
rm -rf ./build/ane
mkdir -p ./build/ane
mkdir -p ./build/ane/Android-ARM
mkdir -p ./build/ane/Android-ARM/res


# copy resources
cp -R ./${NATIVE_FOLDER}/res/* ./build/ane/Android-ARM/res


# create the JAR file
jar cf ./build/ane/Android-ARM/${JAR_NAME} -C ./${NATIVE_FOLDER}/bin .


# grab the extension descriptor and SWC library 
cp ./${LIB_FOLDER}/src/extension.xml ./build/ane/
cp ./${LIB_FOLDER}/bin/*.swc ./build/ane/
unzip ./build/ane/*.swc -d ./build/ane
mv ./build/ane/library.swf ./build/ane/Android-ARM




echo "****** creating ANE package *******"


"$ADT" -package -storetype PKCS12 -keystore ./cert.p12 -storepass password -tsa none \
		-target ane \
		${ANE_NAME} \
		./build/ane/extension.xml \
		-swc ./build/ane/*.swc \
		-platform Android-ARM \
		-C ./build/ane/Android-ARM/ .


echo "****** ANE package created *******"


echo "****** preparing APK package sources *******"


rm ${APK_NAME}
rm -rf ./build/apk
mkdir -p ./build/apk


cp ./${APP_PROJECT}/bin-debug/${APP_PROJECT}-app.xml ./build/apk
cp ./${APP_PROJECT}/bin-debug/${APP_PROJECT}.swf ./build/apk


echo "****** creating APK package *******"


cd ./build/apk


"$ADT" -package -target apk -storetype PKCS12 -keystore ../../${CERT_NAME} -storepass ${CERT_PASS} \
		../../${APK_NAME} \
		./${APP_PROJECT}-app.xml \
		./${APP_PROJECT}.swf -extdir ../..
cd ../..


echo "****** APK package created *******"


adb uninstall air.${APP_PROJECT}.debug
adb install ${APK_NAME}

Could someone please help me, or tell me how to set up cygwin to compile this?

Or link me to a premade compiler.

Thanks in advance. :love: