Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How in CEP Environment. #27

Open
fEyebrow opened this issue Jun 22, 2018 · 1 comment
Open

How in CEP Environment. #27

fEyebrow opened this issue Jun 22, 2018 · 1 comment

Comments

@fEyebrow
Copy link

how to make "inCEPEnvironment() == true"

this is my File directory:
image

this is my code in manifest.xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ExtensionManifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ExtensionBundleId="my.cep.extension" ExtensionBundleName="My CEP Extension" ExtensionBundleVersion="0.1.0" Version="6.0">
  <ExtensionList>
    <Extension Id="my.cep.extension" Version="0.1.0"/>
  </ExtensionList>
  <ExecutionEnvironment>
    <HostList>
      <Host Name="PHXS" Version="[0.0,99.9]" />
      <Host Name="PHSP" Version="[0.0,99.9]" />
      <Host Name="IDSN" Version="[0.0,99.9]" />
      <Host Name="AICY" Version="[0.0,99.9]" />
      <Host Name="ILST" Version="[0.0,99.9]" />
      <Host Name="PPRO" Version="[0.0,99.9]" />
      <Host Name="AEFT" Version="[0.0,99.9]" />
      <Host Name="PRLD" Version="[0.0,99.9]" />
      <Host Name="FLPR" Version="[0.0,99.9]" />
      <Host Name="DRWV" Version="[0.0,99.9]" />
    </HostList>
    <LocaleList>
      <Locale Code="All"/>
    </LocaleList>
    <RequiredRuntimeList>
      <RequiredRuntime Name="CSXS" Version="6.0"/>
    </RequiredRuntimeList>
  </ExecutionEnvironment>
  <DispatchInfoList>
    <Extension Id="my.cep.extension">
      <DispatchInfo>
        <Resources>
          <MainPath>./public/index.html</MainPath>
           <ScriptPath>./extendscript/index.jsx</ScriptPath>
          <CEFCommandLine>
            <Parameter>--allow-file-access-from-files</Parameter>
            <Parameter>--allow-file-access</Parameter>
            <Parameter>--enable-nodejs</Parameter>
            <Parameter>--mixed-context</Parameter>
          </CEFCommandLine>
        </Resources>
        <Lifecycle>
          <AutoVisible>true</AutoVisible>
        </Lifecycle>
        <UI>
          <Type>Panel</Type>
          <Menu>达文西</Menu>
          <Geometry>
            <Size>
              <Height>600</Height>
              <Width>600</Width>
            </Size>
          </Geometry>
          <Icons>
            <Icon Type="Normal"></Icon>
            <Icon Type="RollOver"></Icon>
            <Icon Type="DarkNormal"></Icon>
            <Icon Type="DarkRollOver"></Icon>
          </Icons>
        </UI>
      </DispatchInfo>
    </Extension>
  </DispatchInfoList>
</ExtensionManifest>
@quetslaurent
Copy link

Hi, how did u write the script path inside of the manifest as a new one is generated each time I do "npm start", please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants