Skip to content

Commit

Permalink
Merge pull request #2 from krypciak/master
Browse files Browse the repository at this point in the history
Add ccmod.json
  • Loading branch information
2767mr authored Feb 21, 2024
2 parents 2cafc76 + a82b47e commit a040d88
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
README.md.html
*.ccmod
10 changes: 10 additions & 0 deletions ccmod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "input-api",
"version": "1.0.2",
"title": "input-api",
"description": "Allows mods to add rebindable key bindings",
"repository": "https://github.com/CCDirectLink/input-api",
"tags": ["library"],
"authors": "dmitmel",
"postload": "postload.js"
}
7 changes: 7 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
BASE_NAME="$(jq '.id' ccmod.json | sed 's/^"//;s/"$//')"
NAME="${BASE_NAME}.ccmod"
rm -rf "$BASE_NAME"*
zip -r "$NAME" ./ -x "*.ccmod" "*.zip" "node_modules/*" ".git*" "*.ts" "*.md" \
"tsconfig.json" "*.sh" "package-lock.json" "pack/*" "bundle.zip" ".prettierrc.json" \
"*.kra" "*.kra~" "*.png~" "src/*"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "input-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "Allows mods to add rebindable key bindings",
"license": "MIT",
"homepage": "https://github.com/dmitmel/input-api",
"homepage": "https://github.com/CCDirectLink/input-api",
"module": true,
"postload": "postload.js"
}

0 comments on commit a040d88

Please sign in to comment.