Copy link to clipboard
Copied
Greetings!
I have been following the official Flash Builder directions to produce a captive runtime executable using the command line version of Flash Builder (FlashBuilderC.exe). Unfortunately, all that I seem to get is a signed native installer. Everything works as expected when I go through the Flash Builder IDE. I found this discussion from a year ago that went unanswered that appears to have the same issue. In my case, I'm using Flash Builder 4.7.
Here is the batch file I'm using to try and build my captive runtime executable:
set WORKSPACE=%HOMEPATH%\Adobe Flash Builder 4.7
REM works with either FlashBuilderC.exe or eclipsec.exe
REM previous data parameter: -data "%WORKSPACE%" ^
"C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\FlashBuilderC.exe" ^
--launcher.suppressErrors ^
-noSplash ^
-application org.eclipse.ant.core.antRunner ^
-data "C:\Users\dwyand_2\Adobe Flash Builder 4.7" ^
-file "%cd%\commandlinebuild.xml" main
Here is my commandlinebuid.xml:
<?xml version="1.0"?>
<project default="main">
<target name="main">
<fb.exportReleaseBuild project="Designer" application="src/Designer.as" destdir="bin-release" basefilename="Designer" verbose="true" packagetype="native" certificate="Path/To/Certificate" password="PasswordGoesHere" />
</target>
</project>
And as I'm trying to build a captive runtime, I understand that fb.exportreleaseBuild references .actionScriptProperties, so here it is (saved after doing an Export Release Build in the Flash Builder 4.7 IDE):
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="Designer.as" projectUUID="5eff7f8b-d411-4afd-9ae2-bdf125418538" version="11">
<compiler additionalCompilerArguments="-locale en_US -define SCRATCH::allow3d true" autoRSLOrdering="true" copyDependentFiles="true" flexSDK="Apache Flex 4.11.0 FP 11.6 AIR 3.6 en_US" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" useFlashSDK="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications>
<application path="Designer.as">
<airExcludes/>
</application>
</applications>
<modules/>
<workers/>
<buildCSSFiles/>
<flashCatalyst validateFlashCatalystCompatibility="false"/>
<buildTargets>
<buildTarget buildTargetName="default" platformId="default">
<airSettings airCertificatePath="Path/To/Certificate" airTimestamp="true" anePathSet="true" version="1">
<airExcludes/>
<anePaths/>
<newLaunchParams/>
<modifiedLaunchParams/>
<newPackagingParams/>
<modifiedPackagingParams/>
</airSettings>
<actionScriptSettings version="1"/>
</buildTarget>
</buildTargets>
</actionScriptProperties>
What could I be doing wrong? Thanks!
- Dave
Copy link to clipboard
Copied
Hi dwyand-gg
Thanks for sharing in the issue which you are facing.
Is it possible for you to share a sample app in which the issue is easily reproducible? Also, please do share the additional assets which you have mentioned above like the batch file, commandlinebuild.xml & the steps to reproduce the problem.
Thanks,
Abhinav
Copy link to clipboard
Copied
Thanks, Abhinav. I'll package everything up today and send you a message with the link.
- Dave
Copy link to clipboard
Copied
PM has been sent with the details. Thanks again!
- Dave
Copy link to clipboard
Copied
Hello!
Just checking in to make sure you received my files OK. Thanks!
- Dave
Copy link to clipboard
Copied
I had the same problem and I found that there is one not very well documented packagetype "captive_runtime_bundle" that does what you need.
Here is an example of build.xml:
<?xml version="1.0"?>
<project default="main">
<fb.exportReleaseBuild
project="AppName"
verbose="true"
timestamp="true"
packagetype="captive_runtime_bundle"
certificate="/Path/To/Your/Cert.p12" password="PWD"/>
</target>
</project>
I haven't tried it on Windows yet, but on OS X it gives me the right build with captive runtime (file with *.app extension).