Skip to content

Commit a040d88

Browse files
authored
Merge pull request #2 from krypciak/master
Add ccmod.json
2 parents 2cafc76 + a82b47e commit a040d88

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
README.md.html
2+
*.ccmod

ccmod.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"id": "input-api",
3+
"version": "1.0.2",
4+
"title": "input-api",
5+
"description": "Allows mods to add rebindable key bindings",
6+
"repository": "https://github.com/CCDirectLink/input-api",
7+
"tags": ["library"],
8+
"authors": "dmitmel",
9+
"postload": "postload.js"
10+
}

pack.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
BASE_NAME="$(jq '.id' ccmod.json | sed 's/^"//;s/"$//')"
3+
NAME="${BASE_NAME}.ccmod"
4+
rm -rf "$BASE_NAME"*
5+
zip -r "$NAME" ./ -x "*.ccmod" "*.zip" "node_modules/*" ".git*" "*.ts" "*.md" \
6+
"tsconfig.json" "*.sh" "package-lock.json" "pack/*" "bundle.zip" ".prettierrc.json" \
7+
"*.kra" "*.kra~" "*.png~" "src/*"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "input-api",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Allows mods to add rebindable key bindings",
55
"license": "MIT",
6-
"homepage": "https://github.com/dmitmel/input-api",
6+
"homepage": "https://github.com/CCDirectLink/input-api",
77
"module": true,
88
"postload": "postload.js"
99
}

0 commit comments

Comments
 (0)