fusepilot / create-cep-extension

A near zero config approach to creating CEP extensions with Webpack and React.
Other
87 stars 16 forks source link

How in CEP Environment. #27

Open fEyebrow opened 6 years ago

fEyebrow commented 6 years ago

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 commented 3 years ago

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