Skip to content

Commit d36d8de

Browse files
committed
🛠️ Update packager plugin
1 parent 9b5cef3 commit d36d8de

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"type": "module",
33
"name": "animated_java",
44
"title": "Animated Java",
5+
"icon": "icon.svg",
6+
"description": "A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.",
57
"version": "1.5.0",
68
"display_version": "1.5.0",
79
"min_blockbench_version": "4.11.1",
@@ -63,7 +65,6 @@
6365
"type": "github",
6466
"url": "https://github.com/Animated-Java/animated-java"
6567
},
66-
"description": "A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.",
6768
"main": "./dist/index.js",
6869
"types": "./dist/src/index.d.ts",
6970
"private": true,

tools/plugins/packagerPlugin.ts

+8
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,15 @@ function plugin(): Plugin {
4848
fs.rmSync(PLUGIN_REPO_PATH, { recursive: true, force: true })
4949
fs.cpSync(DIST_PATH, PLUGIN_REPO_PATH, { recursive: true })
5050
const manifest = JSON.parse(fs.readFileSync(PLUGIN_MANIFEST_PATH, 'utf-8'))
51+
manifest.animated_java.title = PACKAGE.title
52+
manifest.animated_java.author = PACKAGE.author.name
53+
manifest.animated_java.icon = PACKAGE.icon
54+
manifest.animated_java.description = PACKAGE.description
5155
manifest.animated_java.version = PACKAGE.version
56+
manifest.animated_java.min_version = PACKAGE.min_version
57+
manifest.animated_java.variant = PACKAGE.variant
58+
manifest.animated_java.tags = PACKAGE.tags
59+
5260
fs.writeFileSync(
5361
PLUGIN_MANIFEST_PATH,
5462
prettier.format(JSON.stringify(manifest, null, '\t'), {

0 commit comments

Comments
 (0)