MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / addRootMediaForDocker

Function addRootMediaForDocker

scripts/create-github-source-zip.js:54–70  ·  view source on GitHub ↗
(set)

Source from the content-addressed store, hash-verified

52}
53
54function addRootMediaForDocker(set) {
55 let names;
56 try {
57 names = fs.readdirSync(projectRoot);
58 } catch {
59 return;
60 }
61 for (const name of names) {
62 if (!/\.(png|jpg|jpeg|bmp)$/i.test(name)) continue;
63 const abs = path.join(projectRoot, name);
64 try {
65 if (fs.statSync(abs).isFile()) set.add(name);
66 } catch {
67 /* skip */
68 }
69 }
70}
71
72function addElectronBuildResources(set, pkg) {
73 const mac = pkg.build?.mac || {};

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected