apm
apm copied to clipboard
Install an airsdk without AIR on macOS and linux
Implements the functionality with bash.
Depends on python
, curl
and unzip
(which are present by default on macOS, AFAIK).
Note: I realize this only supports macOS at the moment, as the download URL used here is the one for macOS. The correct link can be figured out by checking the OS with uname
.
Note 2: Maybe setting license=accepted
is a little borderline? What could be done? I'm thinking an environment variable AIRSDK_ACCEPT_LICENSE=yes
(DONE)
Interesting idea!
The reason we haven't been down this path is that we are hoping to eventually use a captive runtime app for APM which would negate this need. However this approach could be a decent intermediate one if you could find an equivalent approach for windows?
...equivalent approach for windows?
Not having used a windows computer since 1998, I have very little idea how you would do this.
Maybe from the batch script (apm.bat
) or by building a native launcher tool apm.exe
(.NET? Java? Whichever windows computer might have by default). The tool will forward all calls to the swf
cli, except the SDK download features, implemented natively.
So can this be merged before a windows implementation is available? I'm using the feature so I can rely on apm
to install the AIR SDK on our CI pipeline. If it can't be merged in, I'll move this code to an external tool.
I suggest moving this to an external tool currently, as we are still in discussions with Harman around an sdk manager and the direction of the airsdk commands. We may be moving them to a separate tool.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.