Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can't get NativeProcess dependent AIR app to publish

Explorer ,
Jul 26, 2024 Jul 26, 2024

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?

 

TOPICS
ActionScript , Publish package
132
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 27, 2024 Jul 27, 2024
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines