fix: img assets on build (hopefully temp)

This commit is contained in:
David Ralph
2024-05-17 22:48:50 +01:00
parent b102269161
commit c46c433111
2 changed files with 18 additions and 5 deletions

View File

@@ -43,6 +43,14 @@ const prepareBuilds = () => ({
recursive: true,
},
);
fs.mkdirSync(path.resolve(__dirname, './build/chrome/src/assets'), { recursive: true });
fs.cpSync(
path.resolve(__dirname, './src/assets'),
path.resolve(__dirname, './build/chrome/src/assets'),
{
recursive: true,
},
);
// firefox
fs.mkdirSync(path.resolve(__dirname, './build/firefox'), { recursive: true });
@@ -64,6 +72,13 @@ const prepareBuilds = () => ({
recursive: true,
},
);
fs.cpSync(
path.resolve(__dirname, './src/assets'),
path.resolve(__dirname, './build/firefox/src/assets'),
{
recursive: true,
},
);
// create zip
const zip = new ADMZip();