Skip to content

Commit

Permalink
copy LCN files on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic-DallOsto committed Aug 19, 2024
1 parent 027f326 commit 2c81f9f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions zotero-plugin.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from "zotero-plugin-scaffold";
import pkg from "./package.json";
import { copyFileSync, readdirSync, renameSync } from "fs";
import path from "path";
import { copyFileSync, readdirSync, renameSync, mkdirSync } from "fs";

import fse from "fs-extra";
import { replaceInFileSync } from "zotero-plugin-scaffold/tools";
Expand Down Expand Up @@ -96,6 +95,17 @@ export default defineConfig({
from: /wikicite_prefs_citation-storage-(note|extra)=/g,
to: "$&\n .label=",
});

// Copy local citations network
mkdirSync("build/addon/chrome/content/Local-Citation-Network/");
copyFileSync(
"Local-Citation-Network/index.js",
"build/addon/chrome/content/Local-Citation-Network/index.js",
);
copyFileSync(
"Local-Citation-Network/index.html",
"build/addon/chrome/content/Local-Citation-Network/index.html",
);
},
},
// If you want to checkout update.json into the repository, uncomment the following lines:
Expand Down

0 comments on commit 2c81f9f

Please sign in to comment.