-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New build system, Pre-release 1.0.0-rc.1
- Loading branch information
Stefan Wimmer
committed
Jul 13, 2016
1 parent
6c9ad2e
commit a17b1e7
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Get version | ||
version="$(node <<< "console.log(require(\"./package.json\").version);")" | ||
# Write version | ||
while IFS="" read line | ||
do | ||
if [ "${line:0:10}" == "version = " ] | ||
then | ||
old_version="${line}" | ||
fi | ||
done < build.gradle | ||
sed -i "/${old_version}/c\version = \"${version}\"" build.gradle | ||
# Build | ||
./gradlew clean build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "morefood", | ||
"version": "1.0.0-rc.1", | ||
"description": "This Minecraft Mod will add additional food to Mincraft to provide a healthy variety.", | ||
"scripts": { | ||
"build": "./build.sh" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/teammion/morefood.git" | ||
}, | ||
"keywords": [ | ||
"morefood" | ||
], | ||
"author": "Stefan Wimmer <[email protected]>", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/teammion/morefood/issues" | ||
}, | ||
"homepage": "https://github.com/teammion/morefood#readme" | ||
} |