Ejemplo n.º 1
0
 function processTemplates()
 {
     $data = $this->readTemplate("safari_Info_plist.tpl");
     $data = str_replace("__CFBundleExecutable__", $this->BUNDLE, $data);
     $data = str_replace("__CFBundleIdentifier__", $this->IDENTIFIER, $data);
     $data = str_replace("__WebPluginDescription__", $this->DESCRIPTION, $data);
     $data = str_replace("__WebPluginMIMEType__", "application/" . $this->MIMETYPE, $data);
     $data = str_replace("__WebPluginName__", $this->PLUGINNAME, $data);
     $data = str_replace("__GameName__", getGameProjectName(), $data);
     //TODO: handled by Toolbox
     $data = str_replace("__GameInstallPath__", $this->GAMEFOLDER, $data);
     $this->writeFile('Info.plist', $data);
     WebPlugin::processNPPlugin($this);
 }
Ejemplo n.º 2
0
 function processTemplates()
 {
     $data = $this->readTemplate("firefox_rc.tpl");
     $cd = str_replace(".", ",", $this->VERSION);
     $data = str_replace("__PRODUCTVERSION__", $cd, $data);
     $data = str_replace("__FILEDESCRIPTION__", $this->DESCRIPTION, $data);
     $data = str_replace("__INTERNALNAME__", $this->PRODUCTNAME, $data);
     $data = str_replace("__MIMETYPE__", "application/" . $this->MIMETYPE, $data);
     $data = str_replace("__ORIGINALFILENAME__", $this->PLUGINNAME . '.dll', $data);
     $data = str_replace("__PRODUCTNAME__", $this->PRODUCTNAME, $data);
     $data = str_replace("__COMPANY__", $this->COMPANY, $data);
     $data = str_replace("__COMPANYKEY__", $this->COMPANYKEY, $data);
     $data = str_replace("__PLUGIN__", $this->PLUGIN, $data);
     $this->writeFile('NPWebGamePlugin.rc', $data);
     // handle the sample HTML (and whatever else) that is shared between plugins
     WebPlugin::processNPPlugin($this);
 }