Skip to content

Commit

Permalink
update perl pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesign committed Feb 21, 2020
1 parent 0a638dc commit ccd943c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ function updateData() {
mkdir -p ${defaultDestDir};
/bin/cp -rf ./template/* ${defaultDestDir};
[ -f ${logoPath} ] && cp ${logoPath} ${defaultDestDir}/icon.png;
perl -pi -e s,{{pluginName}},${pluginName},g ${defaultDestDir}/config.json;
perl -pi -e s,{{pluginIdentifier}},${pluginIdentifier},g ${defaultDestDir}/config.json;
perl -pi -e s,{{pluginDescription}},${pluginDescription},g ${defaultDestDir}/config.json;
perl -pi -e s,{{rssFeedUrl}},${feedUrl},g ${defaultDestDir}/index.js;
perl -pi -e s,{{miniDetail}},${miniDetail},g ${defaultDestDir}/index.js;
perl -pi -e 's/{{pluginName}}/${pluginName}/g' ${defaultDestDir}/config.json;
perl -pi -e 's/{{pluginIdentifier}}/${pluginIdentifier}/g' ${defaultDestDir}/config.json;
perl -pi -e 's/{{pluginDescription}}/${pluginDescription}/g' ${defaultDestDir}/config.json;
perl -pi -e 's|{{rssFeedUrl}}|${feedUrl}|g' ${defaultDestDir}/index.js;
perl -pi -e 's/{{miniDetail}}/${miniDetail}/g' ${defaultDestDir}/index.js;
cd ${defaultDesktop} && zip -rm ${pluginIdentifier}.zip ${pluginIdentifier} -x *.DS_Store* && cd -;
mv ${defaultDesktop}/${pluginIdentifier}.zip ${defaultDesktop}/${pluginIdentifier}.hereplugin;
`)
Expand Down

0 comments on commit ccd943c

Please sign in to comment.