Copy link to clipboard
Copied
Caught in a circle here when publishing an AIR desktop app that is using NativeProcess.
In the publish setting s in Animate I tick JUST the ExtendedDesktop, so that NativeProcess will work. When I test my app in Animate (Ctrl-Enter) it works fine - a python .exe I'm connecting to through NativeProcess works. However, if I try to publish the app in Animate, I get this error:
Error creating files. O:\SBDB Software\SongbookDB\SongbookDB Pal\Project files\songbookdb_pal_2024-app.xml: error 306: descriptor must support one of the following profiles:desktop, mobileDevice, extendedMobileDevice, tv, mobileDeviceBase
If I select Desktop and Extended Desktop, the file publishes, but when testing in Animate the following line throws an error:
process.start(processStartupInfo);
Error #3219: The NativeProcess could not be started. 'Not supported in current profile.'
at Error$/throwError()
at flash.desktop::NativeProcess/start()
...and when installing and running the AIR file, the app doesn't work at all.
If I manually editing the descriptor file Animate just overwrites it when I publish it.
If i remove the NativeProcess imports and functions from my class, the app pubslishes and runs fine, albeit without the NativeProcessfunctionality that I need, if Desktop and ExtedndedDesktop are selected, but gives but if just Extended Desktop is selected it give error 306 like above.
How do I get an app that needs NativeProcess to publish please?
Copy link to clipboard
Copied
Just realised it's because the file needs to be published as an .exe, not .air: https://help.adobe.com/en_US/air/html/dev/WSb2ba3b1aad8a27b060d22f991220f00ad8a-8000.html
Find more inspiration, events, and resources on the new Adobe Community
Explore Now