mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
Conflicting options are now prefixed #8
This commit is contained in:
38
README.md
38
README.md
@@ -20,10 +20,6 @@ To set the default Love version to use,
|
|||||||
you can edit the very beginning of the script.
|
you can edit the very beginning of the script.
|
||||||
If `lua` and a `conf.lua` file are found,
|
If `lua` and a `conf.lua` file are found,
|
||||||
it will automatically detect which version your project uses.
|
it will automatically detect which version your project uses.
|
||||||
If a `ProjectName.icns` file is provided,
|
|
||||||
the script will use it to set the game icon on MacOS.
|
|
||||||
If a `ProjectName.ico` file is provided, and that Wine is installed,
|
|
||||||
the script will use it to set the game icon on Windows.
|
|
||||||
|
|
||||||
### OPTIONS
|
### OPTIONS
|
||||||
`-h` Print a short help
|
`-h` Print a short help
|
||||||
@@ -71,31 +67,35 @@ the script will use it to set the game icon on Windows.
|
|||||||
|
|
||||||
`-x` Exclude file or directory.
|
`-x` Exclude file or directory.
|
||||||
|
|
||||||
|
#### WINDOWS
|
||||||
|
`--win-icon` Path to an ico file to use.
|
||||||
|
|
||||||
#### MAC OS X
|
#### MAC OS X
|
||||||
`--maintainer-name` Set the maintainer’s name. Provide it for OS X CFBundleIdentifier.
|
`--osx-icon` Path to an icns file to use.
|
||||||
|
`--osx-maintainer-name` Set the maintainer’s name. Provide it for OS X CFBundleIdentifier.
|
||||||
|
|
||||||
#### DEBIAN
|
#### DEBIAN
|
||||||
`--description` Set the description of your project.
|
`--description` Set the description of your project.
|
||||||
`--homepage` Set the homepage of your project.
|
`--homepage` Set the homepage of your project.
|
||||||
`--maintainer-email` Set the maintainer’s email.
|
`--maintainer-email` Set the maintainer’s email.
|
||||||
`--maintainer-name` Set the maintainer’s name.
|
`--deb-maintainer-name` Set the maintainer’s name.
|
||||||
`--package-name` Set the name of the package and the command that will be used to launch your game.
|
`--deb-package-name` Set the name of the package and the command that will be used to launch your game.
|
||||||
By default, it is the name of your project converted to lowercase,
|
By default, it is the name of your project converted to lowercase,
|
||||||
with eventual spaces replaced by dashes.
|
with eventual spaces replaced by dashes.
|
||||||
`--package-version` Set the version of your package.
|
`--deb-package-version` Set the version of your package.
|
||||||
|
|
||||||
#### ANDROID
|
#### ANDROID
|
||||||
Note that every argument passed to the options should be alphanumerical,
|
Note that every argument passed to the options should be alphanumerical,
|
||||||
with eventual underscores (i.e. [a-zA-Z0-9\_]), otherwise you'll get errors.
|
with eventual underscores (i.e. [a-zA-Z0-9\_]), otherwise you'll get errors.
|
||||||
`--activity` The name of the class that extends GameActivity.
|
`--activity` The name of the class that extends GameActivity.
|
||||||
By default it is the name of the project with ‘Activity’ appended,
|
By default it is the name of the project with ‘Activity’ appended,
|
||||||
eventual spaces and dashes replaced by underscores.
|
eventual spaces and dashes replaced by underscores.
|
||||||
`--maintainer-name` Set the maintainer’s name.
|
`--apk-maintainer-name` Set the maintainer’s name.
|
||||||
It must be only alphanumerical characters, with eventual underscores.
|
It must be only alphanumerical characters, with eventual underscores.
|
||||||
`--package-name` Set the name of the package.
|
`--apk-package-name` Set the name of the package.
|
||||||
By default, it is the name of your project, with eventual spaces replaced by underscores.
|
By default, it is the name of your project, with eventual spaces replaced by underscores.
|
||||||
`--update-android` Update the love-android-sdl2.git repository used in the cache.
|
`--apk-package-version` Set the version of your package.
|
||||||
`--package-version` Set the version of your package.
|
`--update-android` Update the love-android-sdl2.git repository used in the cache.
|
||||||
|
|
||||||
#### OTHERS
|
#### OTHERS
|
||||||
`--clean` Clean the cache located in `~/.cache/love-release`.
|
`--clean` Clean the cache located in `~/.cache/love-release`.
|
||||||
|
@@ -17,10 +17,6 @@ To set the default Love version to use,
|
|||||||
you can edit the very beginning of the script.
|
you can edit the very beginning of the script.
|
||||||
If \fBlua\fR and a \fIconf.lua\fR file are found,
|
If \fBlua\fR and a \fIconf.lua\fR file are found,
|
||||||
it will automatically detect which version your project uses.
|
it will automatically detect which version your project uses.
|
||||||
If a \fIProjectName.icns\fR file is provided,
|
|
||||||
the script will use it to set the game icon on MacOS.
|
|
||||||
If a \fIProjectName.ico\fR file is provided, and that \fBWine\fR
|
|
||||||
is installed, the script will use it to set the game icon on Windows.
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.B \-h
|
.B \-h
|
||||||
@@ -82,9 +78,16 @@ Starting with Love 0.9.0, Love no longer supports old x86 Macintosh.
|
|||||||
.TP
|
.TP
|
||||||
.B \-x \fIfile\fR|\fIdirectory\fR
|
.B \-x \fIfile\fR|\fIdirectory\fR
|
||||||
Exclude file or directory.
|
Exclude file or directory.
|
||||||
|
.SH WINDOWS
|
||||||
|
.TP
|
||||||
|
.B \-\-win\-icon \fIicon\fR
|
||||||
|
Path to an ico file to use.
|
||||||
.SH MAC OS X
|
.SH MAC OS X
|
||||||
.TP
|
.TP
|
||||||
.B \-\-maintainer\-name \fIname\fR
|
.B \-\-osx\-icon \fIicon\fR
|
||||||
|
Path to an icns file to use.
|
||||||
|
.TP
|
||||||
|
.B \-\-osx\-maintainer\-name \fIname\fR
|
||||||
Set the maintainer's name. Provide it for OS X CFBundleIdentifier.
|
Set the maintainer's name. Provide it for OS X CFBundleIdentifier.
|
||||||
.SH DEBIAN
|
.SH DEBIAN
|
||||||
.TP
|
.TP
|
||||||
@@ -97,15 +100,15 @@ Set the homepage of your project.
|
|||||||
.B \-\-maintainer-email \fIemail\fR
|
.B \-\-maintainer-email \fIemail\fR
|
||||||
Set the maintainer's email.
|
Set the maintainer's email.
|
||||||
.TP
|
.TP
|
||||||
.B \-\-maintainer\-name \fIname\fR
|
.B \-\-deb\-maintainer\-name \fIname\fR
|
||||||
Set the maintainer's name.
|
Set the maintainer's name.
|
||||||
.TP
|
.TP
|
||||||
.B \-\-package-name \fIname\fR
|
.B \-\-deb\-package-name \fIname\fR
|
||||||
Set the name of the package and the command that will be use to launch your game.
|
Set the name of the package and the command that will be use to launch your game.
|
||||||
By default, it is the name of your project converted to lowercase,
|
By default, it is the name of your project converted to lowercase,
|
||||||
with eventual spaces replaced by dashes.
|
with eventual spaces replaced by dashes.
|
||||||
.TP
|
.TP
|
||||||
.B \-\-package\-version \fIversion\fR
|
.B \-\-deb\-package\-version \fIversion\fR
|
||||||
Set the version of your package.
|
Set the version of your package.
|
||||||
.SH ANDROID
|
.SH ANDROID
|
||||||
Note that every argument passed to the options should be alphanumerical,
|
Note that every argument passed to the options should be alphanumerical,
|
||||||
@@ -116,19 +119,19 @@ The name of the class that extends GameActivity.
|
|||||||
By default it is the name of the project with 'Activity' appended,
|
By default it is the name of the project with 'Activity' appended,
|
||||||
eventual spaces and dashes replaced by underscores.
|
eventual spaces and dashes replaced by underscores.
|
||||||
.TP
|
.TP
|
||||||
.B \-\-maintainer\-name \fIname\fR
|
.B \-\-apk\|maintainer\-name \fIname\fR
|
||||||
Set the maintainer’s name.
|
Set the maintainer’s name.
|
||||||
It must be only alphanumerical characters, with eventual underscores.
|
It must be only alphanumerical characters, with eventual underscores.
|
||||||
.TP
|
.TP
|
||||||
.B \-\-package\-name \fIname\fR
|
.B \-\-apk\-package\-name \fIname\fR
|
||||||
Set the name of the package.
|
Set the name of the package.
|
||||||
By default, it is the name of your project, with eventual spaces replaced by underscores.
|
By default, it is the name of your project, with eventual spaces replaced by underscores.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-apk\-package\-version \fIversion\fR
|
||||||
|
Set the version of your package.
|
||||||
|
.TP
|
||||||
.B \-\-update\-android
|
.B \-\-update\-android
|
||||||
Update the love-android-sdl2.git repository used in the cache.
|
Update the love-android-sdl2.git repository used in the cache.
|
||||||
.TP
|
|
||||||
.B \-\-package\-version \fIversion\fR
|
|
||||||
Set the version of your package.
|
|
||||||
.SH OTHERS
|
.SH OTHERS
|
||||||
.TP
|
.TP
|
||||||
.B \-\-clean
|
.B \-\-clean
|
||||||
|
@@ -17,16 +17,16 @@ LOVE_VERSION=0.9.1
|
|||||||
SCRIPT_ARGS="l;"
|
SCRIPT_ARGS="l;"
|
||||||
|
|
||||||
## Windows
|
## Windows
|
||||||
SCRIPT_ARGS="w. icon: $SCRIPT_ARGS"
|
SCRIPT_ARGS="w. win-icon: $SCRIPT_ARGS"
|
||||||
|
|
||||||
## Debian
|
## Debian
|
||||||
SCRIPT_ARGS="d; package-version: maintainer-name: maintainer-email: homepage: description: package-name: $SCRIPT_ARGS"
|
SCRIPT_ARGS="d; deb-package-version: deb-maintainer-name: maintainer-email: homepage: description: deb-package-name: $SCRIPT_ARGS"
|
||||||
|
|
||||||
## Android
|
## Android
|
||||||
SCRIPT_ARGS="a; activity: package-version: maintainer-name: package-name: update-android; $SCRIPT_ARGS"
|
SCRIPT_ARGS="a; activity: apk-package-version: apk-maintainer-name: apk-package-name: update-android; $SCRIPT_ARGS"
|
||||||
|
|
||||||
## Mac OS X
|
## Mac OS X
|
||||||
SCRIPT_ARGS="m; icon: maintainer-name: $SCRIPT_ARGS"
|
SCRIPT_ARGS="m; osx-icon: osx-maintainer-name: $SCRIPT_ARGS"
|
||||||
|
|
||||||
|
|
||||||
## Add a short summary of your platform script here
|
## Add a short summary of your platform script here
|
||||||
|
@@ -27,11 +27,11 @@ do
|
|||||||
if [ "$OPTOPT" = "activity" ]; then
|
if [ "$OPTOPT" = "activity" ]; then
|
||||||
ACTIVITY=$OPTARG
|
ACTIVITY=$OPTARG
|
||||||
activity_defined_argument=true
|
activity_defined_argument=true
|
||||||
elif [ "$OPTOPT" = "package-version" ]; then
|
elif [ "$OPTOPT" = "apk-package-version" ]; then
|
||||||
PACKAGE_VERSION=$OPTARG
|
PACKAGE_VERSION=$OPTARG
|
||||||
elif [ "$OPTOPT" = "maintainer-name" ]; then
|
elif [ "$OPTOPT" = "apk-maintainer-name" ]; then
|
||||||
MAINTAINER_NAME=$OPTARG
|
MAINTAINER_NAME=$OPTARG
|
||||||
elif [ "$OPTOPT" = "package-name" ]; then
|
elif [ "$OPTOPT" = "apk-package-name" ]; then
|
||||||
PACKAGE_NAME=$OPTARG
|
PACKAGE_NAME=$OPTARG
|
||||||
package_name_defined_argument=true
|
package_name_defined_argument=true
|
||||||
elif [ "$OPTOPT" = "update-android" ]; then
|
elif [ "$OPTOPT" = "update-android" ]; then
|
||||||
|
@@ -28,17 +28,17 @@ fi
|
|||||||
package_name_defined_argument=false
|
package_name_defined_argument=false
|
||||||
while getoptex "$SCRIPT_ARGS" "$@"
|
while getoptex "$SCRIPT_ARGS" "$@"
|
||||||
do
|
do
|
||||||
if [ "$OPTOPT" = "package-version" ]; then
|
if [ "$OPTOPT" = "deb-package-version" ]; then
|
||||||
PACKAGE_VERSION=$OPTARG
|
PACKAGE_VERSION=$OPTARG
|
||||||
elif [ "$OPTOPT" = "homepage" ]; then
|
elif [ "$OPTOPT" = "homepage" ]; then
|
||||||
PROJECT_HOMEPAGE=$OPTARG
|
PROJECT_HOMEPAGE=$OPTARG
|
||||||
elif [ "$OPTOPT" = "description" ]; then
|
elif [ "$OPTOPT" = "description" ]; then
|
||||||
PROJECT_DESCRIPTION=$OPTARG
|
PROJECT_DESCRIPTION=$OPTARG
|
||||||
elif [ "$OPTOPT" = "maintainer-name" ]; then
|
elif [ "$OPTOPT" = "deb-maintainer-name" ]; then
|
||||||
MAINTAINER_NAME=$OPTARG
|
MAINTAINER_NAME=$OPTARG
|
||||||
elif [ "$OPTOPT" = "maintainer-email" ]; then
|
elif [ "$OPTOPT" = "maintainer-email" ]; then
|
||||||
MAINTAINER_EMAIL=$OPTARG
|
MAINTAINER_EMAIL=$OPTARG
|
||||||
elif [ "$OPTOPT" = "package-name" ]; then
|
elif [ "$OPTOPT" = "deb-package-name" ]; then
|
||||||
PACKAGE_NAME=$OPTARG
|
PACKAGE_NAME=$OPTARG
|
||||||
package_name_defined_argument=true
|
package_name_defined_argument=true
|
||||||
fi
|
fi
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
# - a semicolon ";" if it doesn't require an argument
|
# - a semicolon ";" if it doesn't require an argument
|
||||||
# - a dot "." if it has an optional argument
|
# - a dot "." if it has an optional argument
|
||||||
# - a colon ":" if it requires an argument
|
# - a colon ":" if it requires an argument
|
||||||
|
# If you need options that might conflict by their names with already defined options, please prefix them.
|
||||||
SCRIPT_ARGS="q; wer: ty. uiop $SCRIPT_ARGS"
|
SCRIPT_ARGS="q; wer: ty. uiop $SCRIPT_ARGS"
|
||||||
|
|
||||||
## 2. Add a short summary of your module
|
## 2. Add a short summary of your module
|
||||||
|
@@ -16,9 +16,9 @@ fi
|
|||||||
# Options
|
# Options
|
||||||
while getoptex "$SCRIPT_ARGS" "$@"
|
while getoptex "$SCRIPT_ARGS" "$@"
|
||||||
do
|
do
|
||||||
if [ "$OPTOPT" = "icon" ]; then
|
if [ "$OPTOPT" = "osx-icon" ]; then
|
||||||
PROJECT_ICNS=$OPTARG
|
PROJECT_ICNS=$OPTARG
|
||||||
elif [ "$OPTOPT" = "maintainer-name" ]; then
|
elif [ "$OPTOPT" = "osx-maintainer-name" ]; then
|
||||||
MAINTAINER_NAME=$OPTARG
|
MAINTAINER_NAME=$OPTARG
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@@ -15,7 +15,7 @@ fi
|
|||||||
# Options
|
# Options
|
||||||
while getoptex "$SCRIPT_ARGS" "$@"
|
while getoptex "$SCRIPT_ARGS" "$@"
|
||||||
do
|
do
|
||||||
if [ "$OPTOPT" = "icon" ]; then
|
if [ "$OPTOPT" = "win-icon" ]; then
|
||||||
PROJECT_ICO=$OPTARG
|
PROJECT_ICO=$OPTARG
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user