@react-gnome/core
Version:
## Getting Started
19 lines (18 loc) • 453 B
JavaScript
// src/packaging/templates/data/resources.ts
import { appIDToPath } from "../../../utils/app-id-to-path.mjs";
var getDataResources = (params) => (
/* xml */
`
<gresources>
<gresource prefix="/${appIDToPath(params.appID)}">${params.files ? "\n" + params.files.map((f) => (
/* xml */
` <file>${f}</file>`
)).join("\n") : ""}
</gresource>
</gresources>
`.trim()
);
export {
getDataResources
};