mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
Various little fixes
This commit is contained in:
@@ -23,9 +23,8 @@ 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,
|
If a `ProjectName.icns` file is provided,
|
||||||
the script will use it to set the game icon on MacOS.
|
the script will use it to set the game icon on MacOS.
|
||||||
If a `ProjectName.ico` file is provided, and that Wine
|
If a `ProjectName.ico` file is provided, and that Wine is installed,
|
||||||
and Resource Hacker are installed, the script will use them
|
the script will use it to set the game icon on Windows.
|
||||||
to set the game icon on Windows.
|
|
||||||
|
|
||||||
### OPTIONS
|
### OPTIONS
|
||||||
`-h` Print a short help
|
`-h` Print a short help
|
||||||
@@ -111,7 +110,7 @@ but if provided it can use them.
|
|||||||
- if you want to create Windows icons (.ico), you can
|
- if you want to create Windows icons (.ico), you can
|
||||||
- use [icoutils](http://www.nongnu.org/icoutils/) to create the icon,
|
- use [icoutils](http://www.nongnu.org/icoutils/) to create the icon,
|
||||||
- then [Wine](http://www.winehq.org/) and [Resource Hacker](http://www.angusj.com/resourcehacker/) to set the icon.
|
- then [Wine](http://www.winehq.org/) and [Resource Hacker](http://www.angusj.com/resourcehacker/) to set the icon.
|
||||||
This last step can be automatically done, assuming Wine and Resource Hacker are installed.
|
This last step can be automatically done, assuming Wine is installed.
|
||||||
|
|
||||||
If you want to add icons in the debian package,
|
If you want to add icons in the debian package,
|
||||||
open it and put the icons in `/usr/share/icons/hicolor/YYxYY/apps/`,
|
open it and put the icons in `/usr/share/icons/hicolor/YYxYY/apps/`,
|
||||||
|
@@ -21,8 +21,7 @@ it will automatically detect which version your project uses.
|
|||||||
If a \fIProjectName.icns\fR file is provided,
|
If a \fIProjectName.icns\fR file is provided,
|
||||||
the script will use it to set the game icon on MacOS.
|
the script will use it to set the game icon on MacOS.
|
||||||
If a \fIProjectName.ico\fR file is provided, and that \fBWine\fR
|
If a \fIProjectName.ico\fR file is provided, and that \fBWine\fR
|
||||||
and \fBResource Hacker\fR are installed, the script will use them
|
is installed, the script will use it to set the game icon on Windows.
|
||||||
to set the game icon on Windows.
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.B \-h
|
.B \-h
|
||||||
@@ -147,7 +146,7 @@ If you want to create Windows icons (\fI.ico\fR),
|
|||||||
you can use \fIicoutils\fR to create the icon,
|
you can use \fIicoutils\fR to create the icon,
|
||||||
then Wine and Resource Hacker to set the icon.
|
then Wine and Resource Hacker to set the icon.
|
||||||
This last step can be automatically done,
|
This last step can be automatically done,
|
||||||
assuming Wine and Resource Hacker are installed.
|
assuming Wine is installed.
|
||||||
.br
|
.br
|
||||||
If you want to add icons in the debian package,
|
If you want to add icons in the debian package,
|
||||||
open it and put the icons in \fI/usr/share/icons/hicolor/YYxYY/apps/\fR,
|
open it and put the icons in \fI/usr/share/icons/hicolor/YYxYY/apps/\fR,
|
||||||
|
@@ -70,6 +70,7 @@ LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
|
|||||||
# Global variables
|
# Global variables
|
||||||
ARGS=( "$@" )
|
ARGS=( "$@" )
|
||||||
SCRIPT_ARGS="$SCRIPT_ARGS h; v: refresh help"
|
SCRIPT_ARGS="$SCRIPT_ARGS h; v: refresh help"
|
||||||
|
SCRIPT_ARGS=$(printf '%s\n' $SCRIPT_ARGS | sort -u)
|
||||||
|
|
||||||
PROJECT_FILES=
|
PROJECT_FILES=
|
||||||
EXCLUDE_FILES=$(/bin/ls -A | grep "^[.]" | tr '\n' ' ')
|
EXCLUDE_FILES=$(/bin/ls -A | grep "^[.]" | tr '\n' ' ')
|
||||||
@@ -161,10 +162,10 @@ remove_love_file ()
|
|||||||
|
|
||||||
exit_module ()
|
exit_module ()
|
||||||
{
|
{
|
||||||
if [ -z $2 ]; then
|
if [ -z "$2" ]; then
|
||||||
echo "Done !"
|
echo "Done !"
|
||||||
else
|
else
|
||||||
echo $2
|
echo -e "$2"
|
||||||
fi
|
fi
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
@@ -9,7 +9,7 @@ do
|
|||||||
PROJECT_ICO=$OPTARG
|
PROJECT_ICO=$OPTARG
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
EXCLUDE_FILES="$EXCLUDE_FILES $PROJECT_ICO test"
|
EXCLUDE_FILES="$EXCLUDE_FILES $PROJECT_ICO"
|
||||||
|
|
||||||
# Wine
|
# Wine
|
||||||
FOUND_WINE=true
|
FOUND_WINE=true
|
||||||
|
Reference in New Issue
Block a user