Skip to content

Commit

Permalink
fix bug release
Browse files Browse the repository at this point in the history
  • Loading branch information
9-9-9-9 committed Aug 25, 2021
1 parent b060d8b commit d9df1f1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Read image, keep only pixels which has color (eg. FF0000 is red) as the same as
#### Project-wide flags
- `--help` show help for specific application, for example: `./rerun.sh --help`
- `--steam` *(Windows only)* for Bit Heroes on Steam with resolution 800x480
- `--web` *(default)* for Bit Heroes on Web or Mini-client with resolution 800x520
- `--debug` print debug messages, for developers only
- `--img` save screenshot into `./out/images/<app>` directory, only use for debugging purpose
- `--mute` do not push notification to Telegram
Expand Down
1 change: 1 addition & 0 deletions README.release.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Enjoy it
#### Project-wide flags
- `--help` show help for specific application, for example: `./rerun.sh --help`
- `--steam` *(Windows only)* for Bit Heroes on Steam with resolution 800x480
- `--web` *(default)* for Bit Heroes on Web or Mini-client with resolution 800x520
- `--mute` do not push notification to Telegram
- `--img` save screenshot into `./out/images/<app>` directory, only use for debugging purpose

Expand Down
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ rm -f ./BitHeroes.jar
cp ./target/BitHeroes-*-jar-with-dependencies.jar ./BitHeroes.jar
touch user-config.properties
chmod +x ./rerun.sh
chmod +x ./samepix.sh
chmod +x ./keeppix.sh
chmod +x ./fishing.sh
#chmod +x ./samepix.sh
#chmod +x ./keeppix.sh
chmod +x ./matrix.sh

# Generating mini client
Expand Down
3 changes: 3 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,7 @@ rm -rf $DIR
mv ./release $DIR
zip -r $FILE $DIR

echo 'clean up'
rm -rf $DIR

echo 'Done '$FILE
4 changes: 2 additions & 2 deletions src/main/java/bh/bot/common/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public static void info(String format, Object... objs) {
}

public static void warn(String format, Object... objs) {
String text = String.format(format, objs);
if (StringUtil.isBlank(text))
if (StringUtil.isBlank(format))
return;
String text = String.format(format, objs);
println(String.format("** WARNING ** %s", text));
}

Expand Down

0 comments on commit d9df1f1

Please sign in to comment.