@spicemod/creator 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +5 -4
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -143,7 +143,7 @@ const customAppEntryFilePath = dist("templates/customAppEntry.js", import.meta.u
|
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region package.json
|
|
145
145
|
var name = "@spicemod/creator";
|
|
146
|
-
var version = "0.0.
|
|
146
|
+
var version = "0.0.26";
|
|
147
147
|
|
|
148
148
|
//#endregion
|
|
149
149
|
//#region src/utils/common.ts
|
|
@@ -1073,14 +1073,15 @@ function wrapWithLoader({ config, cache, outFiles, server, dev = false, logger =
|
|
|
1073
1073
|
});
|
|
1074
1074
|
await Promise.all(transformPromises);
|
|
1075
1075
|
if (type === "custom-app") {
|
|
1076
|
-
const icon = config.icon;
|
|
1076
|
+
const icon = readFileSync(config.icon.default).toString();
|
|
1077
|
+
const activeIcon = config.icon.active ? readFileSync(config.icon.active).toString() : icon;
|
|
1077
1078
|
const manifestPath = join(outdir, "manifest.json");
|
|
1078
1079
|
const manifest = {
|
|
1079
1080
|
name: config.name,
|
|
1080
1081
|
subfiles: [],
|
|
1081
1082
|
subfiles_extension: ["extension.js"],
|
|
1082
|
-
icon
|
|
1083
|
-
|
|
1083
|
+
icon,
|
|
1084
|
+
activeIcon
|
|
1084
1085
|
};
|
|
1085
1086
|
const manifestString = JSON.stringify(manifest, null, 2);
|
|
1086
1087
|
const currentHash = createHash("md5").update(manifestString).digest("hex");
|