Using SDK
Apache Flex 4.16.1 and Adobe AIR 32.0
Procedure
Compiled as captive-runtime-bundle 64-bit - steps taken from https://www.adobe.com/devnet/air/articles/combined-windows-32-bit-and-64-bit-air-sdk.html to ensure a 64-bit bundle, compiled with specific application-descriptor value and environment variable existence, produced:
Result
Having 64-bit captive runtime bundled, latest Adobe AIR SDKs download and uncompress smoothly without any error (previously with 32-bit runtime, we noticed problem during AIR SDK uncompression).
Therefore it pass downloading Playerglobal.swc, but fails to download swfobject zip file.
Observation
Following is the procedural steps that does by Apache Flex SDK Installer source, since using the same source procedures are same for the integrated SDK Installer, too:
in ActionScript:
- Download Apache Flex SDK archive
- Uncompress the archive
- Run
installer.xml
Ant build script resides in the downloaded SDK directory
Following part is completely does at Ant script side:
- Downloads Adobe AIR SDK archive
- Uncompress the archive and verify MD5
- Downloads playerglobal.swc
- Downloads swfobject.zip
- Downloads Adobe font archive
To be noted, swfobject zip file downloads as part of the Ant build process that is written in the Apache Flex SDK's own installer.xml
. I output some log to re-verify which URL is being called precisely in this Ant/download-process (Note all the lines started with MSDKI marker):
Downloading Adobe AIR Runtime Kit for Windows from: https://airdownload.adobe.com/air/win/download/30.0//AdobeAIRSDK.zip
**MSDKI get-with-no-params https://airdownload.adobe.com/air/win/download/30.0//AdobeAIRSDK.zip?ts=201903010450**
Validating download: C:\Users\devsena\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_30.0/in/AdobeAIRSDK.zip
Finished uncompressing: C:\Users\devsena\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_30.0/in/AdobeAIRSDK.zip
Installing Adobe Flash Player playerglobal.swc from: https://fpdownload.macromedia.com/get/flashplayer/installers/archive/playerglobal//playerglobal30_0.swc
**MSDKI get-with-no-params https://fpdownload.macromedia.com/get/flashplayer/installers/archive/playerglobal//playerglobal30_0.swc?ts=201903010450**
Validating download: C:\Users\devsena\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_30.0/frameworks/libs/player/30.0/playerglobal.swc
Downloading 2.2.zip from: https://github.com/swfobject/swfobject/archive
**MSDKI get-with-no-params https://github.com/swfobject/swfobject/archive/2.2.zip?ts=201903010450
Validating download: C:\Users\devsena\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_30.0/in/swfobject_2_2.zip**
SWFObject download failed
All the above download processes are run by same Ant targets - download_using_get
-> get-with-no-params
:
<target name="get-with-no-params" depends="check-params" if="not-local-no-params" >
<echo>MSDKI get-with-no-params ${srcDomain}/${srcFolder}/${srcFile}?ts=${ts}</echo>
<get src="${srcDomain}/${srcFolder}/${srcFile}?ts=${ts}" dest="${dest}"/>
</target>
The URL to SWFObject Zip download: https://github.com/swfobject/swfobject/archive/2.2.zip?ts=201903010450, this works fine on browser.
I ran the same get
code with same URL in separate Ant build script, that ran well. I'm unable to understand at this moment what is causing this download error everytime for swfobject only. This creates 0 bytes of zip file in the target directory and its next step Ant throws error (when tried to uncompress).
Since the installer.xml
is as supplied by Apache Flex SDK and run as a separate process by Ant, I can't imagine any difference of code-situation between integrated SDK Installer and standalone Apache SDK Installer. We are using the latest development
branch of https://github.com/apache/flex-utilities.