mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
Remove fallback to .love, print error msg instead. Fix doc. Close #10
This commit is contained in:
@@ -6,8 +6,7 @@ Clone and run as root `install.sh`, or edit `install.sh` to choose
|
|||||||
locations in user-space.
|
locations in user-space.
|
||||||
|
|
||||||
### SYNOPSIS
|
### SYNOPSIS
|
||||||
`love-release.sh [-dlmw] [-n project_name] [-r release_dir]
|
`love-release.sh [-dglmw] [-n project_name] [-r release_dir] [-v love_version] [FILES...]`
|
||||||
[-u company_name] [-v love_version] [FILES...]`
|
|
||||||
|
|
||||||
### DESCRIPTION
|
### DESCRIPTION
|
||||||
love-release.sh can be used to generate Love 2D game applications
|
love-release.sh can be used to generate Love 2D game applications
|
||||||
@@ -31,7 +30,7 @@ the script will use it to set the game icon on Windows.
|
|||||||
`--help` Print this longer help
|
`--help` Print this longer help
|
||||||
|
|
||||||
#### OPERATING SYSTEMS
|
#### OPERATING SYSTEMS
|
||||||
`-a` Create an Android package.
|
`-g` Create an Android package.
|
||||||
In order to create an Android package, you must have installed the Android SDK.
|
In order to create an Android package, you must have installed the Android SDK.
|
||||||
See [Building LÖVE for Android](https://bitbucket.org/MartinFelis/love-android-sdl2/wiki/Building_L%C3%96VE_for_Android_-_Linux),
|
See [Building LÖVE for Android](https://bitbucket.org/MartinFelis/love-android-sdl2/wiki/Building_L%C3%96VE_for_Android_-_Linux),
|
||||||
but there is no need to install the [LÖVE port to Android](https://bitbucket.org/MartinFelis/love-android-sdl2),
|
but there is no need to install the [LÖVE port to Android](https://bitbucket.org/MartinFelis/love-android-sdl2),
|
||||||
@@ -99,7 +98,6 @@ with eventual underscores (i.e. [a-zA-Z0-9\_]), otherwise you'll get errors.
|
|||||||
#### OTHERS
|
#### OTHERS
|
||||||
`--clean` Clean the cache located in `~/.cache/love-release`.
|
`--clean` Clean the cache located in `~/.cache/love-release`.
|
||||||
One can replace the Love files there.
|
One can replace the Love files there.
|
||||||
`--debug` Dump the scripts variables without making releases.
|
|
||||||
|
|
||||||
#### ICONS
|
#### ICONS
|
||||||
The script doesn’t yet handle the process of creating icons,
|
The script doesn’t yet handle the process of creating icons,
|
||||||
|
@@ -3,8 +3,7 @@
|
|||||||
love-release.sh \- Bash script to generate Love 2D game releases
|
love-release.sh \- Bash script to generate Love 2D game releases
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B love\-release.sh
|
.B love\-release.sh
|
||||||
[\fB\-dlmw\fR] [\fB\-n\fR \fIproject_name\fR] [\fB\-r\fR \fIrelease_dir\fR]
|
[\fB\-dglmw\fR] [\fB\-n\fR \fIproject_name\fR] [\fB\-r\fR \fIrelease_dir\fR] [\fB\-v\fR \fIlove_version\fR] [\fIFILES...\fR]
|
||||||
[\fB\-u\fR \fIcompany_name\fR] [\fB\-v\fR \fIlove_version\fR] [\fIFILES...\fR]
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B love-release.sh
|
.B love-release.sh
|
||||||
can be used to generate Love 2D game applications
|
can be used to generate Love 2D game applications
|
||||||
@@ -31,7 +30,7 @@ Print a short help
|
|||||||
Print this longer help
|
Print this longer help
|
||||||
.SH OPERATING SYSTEMS
|
.SH OPERATING SYSTEMS
|
||||||
.TP
|
.TP
|
||||||
.B \-a
|
.B \-g
|
||||||
Create an Android package.
|
Create an Android package.
|
||||||
In order to create an Android package, you must have installed the Android SDK,
|
In order to create an Android package, you must have installed the Android SDK,
|
||||||
but there is no need to install the LÖVE port to Android,
|
but there is no need to install the LÖVE port to Android,
|
||||||
@@ -132,9 +131,6 @@ Set the version of your package.
|
|||||||
.B \-\-clean
|
.B \-\-clean
|
||||||
Clean the cache located in \fI~/.cache/love-release\fR.
|
Clean the cache located in \fI~/.cache/love-release\fR.
|
||||||
One can replace the Love files there.
|
One can replace the Love files there.
|
||||||
.TP
|
|
||||||
.B \-\-debug
|
|
||||||
Dump the scripts variables without making releases.
|
|
||||||
.SH ICONS
|
.SH ICONS
|
||||||
The script doesn’t yet handle the process of creating icons,
|
The script doesn’t yet handle the process of creating icons,
|
||||||
but if provided it can use them.
|
but if provided it can use them.
|
||||||
|
@@ -104,13 +104,16 @@ $SHORT_HELP"
|
|||||||
|
|
||||||
|
|
||||||
# Parsing options
|
# Parsing options
|
||||||
|
missing_operands=true
|
||||||
source "$INCLUDE_DIR"/getopt.sh
|
source "$INCLUDE_DIR"/getopt.sh
|
||||||
while getoptex "$SCRIPT_ARGS" "$@"
|
while getoptex "$SCRIPT_ARGS" "$@"
|
||||||
do
|
do
|
||||||
if [ "$OPTOPT" = "h" ]; then
|
if [ "$OPTOPT" = "h" ]; then
|
||||||
echo "$SHORT_HELP"
|
echo "$SHORT_HELP"
|
||||||
|
exit
|
||||||
elif [ "$OPTOPT" = "help" ]; then
|
elif [ "$OPTOPT" = "help" ]; then
|
||||||
:
|
man love-release
|
||||||
|
exit
|
||||||
elif [ "$OPTOPT" = "n" ]; then
|
elif [ "$OPTOPT" = "n" ]; then
|
||||||
PROJECT_NAME=$OPTARG
|
PROJECT_NAME=$OPTARG
|
||||||
elif [ "$OPTOPT" = "r" ]; then
|
elif [ "$OPTOPT" = "r" ]; then
|
||||||
@@ -121,6 +124,7 @@ do
|
|||||||
LOVE_GT_080=$(float_test "$LOVE_VERSION_MAJOR >= 0.8")
|
LOVE_GT_080=$(float_test "$LOVE_VERSION_MAJOR >= 0.8")
|
||||||
LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
|
LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
|
||||||
elif [ "$OPTOPT" = "clean" ]; then
|
elif [ "$OPTOPT" = "clean" ]; then
|
||||||
|
missing_operands=false
|
||||||
rm -rf "$MAIN_CACHE_DIR"
|
rm -rf "$MAIN_CACHE_DIR"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -215,9 +219,11 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# Missing operands
|
||||||
# Fallback if nothing is specified
|
if [ "$missing_operands" = true ]; then
|
||||||
init_module "Love"
|
>&2 echo "./love-release.sh: missing operands.
|
||||||
create_love_file
|
love-release.sh [-dglmw] [-n project_name] [-r release_dir] [-v love_version] [FILES...]
|
||||||
exit_module
|
Try 'love-release.sh --help' for more information."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user