Hi Om, I'd have to check with Adobe people on bypassing acceptance of Adobe agreements. Before I bother them, why is this bypass required? We did already get approval to store that you have accepted once so future installs don't require license acceptance. Is there a way to do something like that instead?
Thanks, -Alex On 5/19/18, 5:11 PM, "bigosma...@apache.org" <bigosma...@apache.org> wrote: This is an automated email from the ASF dual-hosted git repository. bigosmallm pushed a commit to branch issues/230-Add_License_Agreement_Env in repository https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.git&data=02%7C01%7Caharui%40adobe.com%7C4291890b8b8b449e0e0808d5bde627c1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636623718625660132&sdata=l0bfzrXIAm%2B52%2B8MBhX4q7Ddgj8R%2BD%2FQ1ebponx1NNU%3D&reserved=0 commit 614753f1d0046593402e0e2b126e73344f10e7df Author: Om Muppirala <bigosma...@apache.org> AuthorDate: Sat May 19 17:10:07 2018 -0700 Allow acceptance of licenses by setting ACCEPT_ALL_ROYALE_LICENSES=true environment variable. --- npm/README.md | 12 ++++++++++-- npm/js-swf/dependencies/AdobeAIR.js | 8 +++++++- npm/js-swf/dependencies/FlashPlayerGlobal.js | 8 +++++++- npm/js-swf/dependencies/FlatUI.js | 8 +++++++- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/npm/README.md b/npm/README.md index d637783..3f9fb00 100644 --- a/npm/README.md +++ b/npm/README.md @@ -8,7 +8,9 @@ The **Apache Royale** NPM packages are distributed under the Apache-Royale NPM o The package: `@apache-royale/royale-js` supports only the JS/HTML output. The package: `@apache-royale/royale-js-swf` supports both JS/HTML and SWF/AIR output. -**For End Users** +##For End Users + +**Manual installs** To install these packages, users need to run the following commands: @@ -17,7 +19,13 @@ npm install @apache-royale/royale-js -g npm install @apache-royale/royale-js-swf -g ``` -**For Release Managers:** +**Automated installs** + +Set the environment variable: `ACCEPT_ALL_ROYALE_LICENSES=true` to accept all the licenses prompted +by the npm installer script. This lets you use the installer in a automated environment without +interactive prompts. + +##For Release Managers To setup the publish scripts, first run: diff --git a/npm/js-swf/dependencies/AdobeAIR.js b/npm/js-swf/dependencies/AdobeAIR.js index 30c77da..4261212 100644 --- a/npm/js-swf/dependencies/AdobeAIR.js +++ b/npm/js-swf/dependencies/AdobeAIR.js @@ -96,5 +96,11 @@ function extract() AdobeAIR.install = function() { - promptForAdobeAIR(); + if(process.env.ACCEPT_ALL_ROYALE_LICENSES === 'true') + { + downloadAdobeAIR(); + } + else { + promptForAdobeAIR(); + } }; \ No newline at end of file diff --git a/npm/js-swf/dependencies/FlashPlayerGlobal.js b/npm/js-swf/dependencies/FlashPlayerGlobal.js index ca2abd2..bfb6edd 100644 --- a/npm/js-swf/dependencies/FlashPlayerGlobal.js +++ b/npm/js-swf/dependencies/FlashPlayerGlobal.js @@ -97,5 +97,11 @@ function handleInstallComplete(event) FlashPlayerGlobal.install = function() { - FlashPlayerGlobal.promptForFlashPlayerGlobal(); + if(process.env.ACCEPT_ALL_ROYALE_LICENSES === 'true') + { + FlashPlayerGlobal.downloadFlashPlayerGlobal(); + } + else { + FlashPlayerGlobal.promptForFlashPlayerGlobal(); + } }; \ No newline at end of file diff --git a/npm/js-swf/dependencies/FlatUI.js b/npm/js-swf/dependencies/FlatUI.js index ea4a88c..41cb89a 100644 --- a/npm/js-swf/dependencies/FlatUI.js +++ b/npm/js-swf/dependencies/FlatUI.js @@ -127,5 +127,11 @@ function extract() FlatUI.install = function() { - FlatUI.prompt(); + if(process.env.ACCEPT_ALL_ROYALE_LICENSES === 'true') + { + FlatUI.downloadFlatUI(); + } + else { + FlatUI.prompt(); + } }; \ No newline at end of file -- To stop receiving notification emails like this one, please contact bigosma...@apache.org.