Add Love default version. Can be updated to follow Love dev.

This commit is contained in:
Antonin Décimo
2014-01-21 20:19:36 +01:00
parent dcfe22a001
commit 3c06184a18
2 changed files with 21 additions and 16 deletions

View File

@@ -5,9 +5,10 @@
`love-release.sh [-lmw] [-n project_name] [-r release_dir] [-u company_name] [-v love_version] [FILES...]` `love-release.sh [-lmw] [-n project_name] [-r release_dir] [-u company_name] [-v love_version] [FILES...]`
### DESCRIPTION ### DESCRIPTION
You can use love-release.sh to generate Love 2D game applications and get over the fastidious zipping commands you had to do. You can use love-release.sh to generate Love 2D game applications and get over the fastidious zipping commands you had to do.
The script fully supports Windows, MacOS either on x86 or x64. The script fully supports Windows, MacOS either on x86 or x64.
It needs an Internet connection to download Love files, and relies on curl, zip and unzip commands. It needs an Internet connection to download Love files, and relies on curl, zip and unzip commands.
To set the default Love version to use, you can edit the very beginning of the script.
### OPTIONS ### OPTIONS
`-h` Print a short help `-h` Print a short help
@@ -18,7 +19,7 @@ It needs an Internet connection to download Love files, and relies on curl, zip
Mostly aimed at Linux players or developpers and the most common distribution process. Mostly aimed at Linux players or developpers and the most common distribution process.
`-m` Create MacOS application. `-m` Create MacOS application.
Starting with Love 0.9.0, Love no longer supports old x86 Macintosh. Starting with Love 0.9.0, Love no longer supports old x86 Macintosh.
If you are targeting one of these, your project must be developped with Love 0.8.0 or lower. If you are targeting one of these, your project must be developped with Love 0.8.0 or lower.
Depending on the Love version used, the script will choose which one, between x64 only or Universal Build to create. Depending on the Love version used, the script will choose which one, between x64 only or Universal Build to create.
@@ -48,4 +49,4 @@ It needs an Internet connection to download Love files, and relies on curl, zip
### SEE ALSO ### SEE ALSO
[https://www.love2d.org](https://www.love2d.org) [https://www.love2d.org](https://www.love2d.org)
[https://www.love2d.org/wiki/Game_Distribution](https://www.love2d.org/wiki/Game_Distribution) [https://www.love2d.org/wiki/Game_Distribution](https://www.love2d.org/wiki/Game_Distribution)
[https://www.github.org/MisterDA/love-release](https://www.github.org/MisterDA/love-release) [https://www.github.org/MisterDA/love-release](https://www.github.org/MisterDA/love-release)

View File

@@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
## Edit this if you want to use another Löve version.
LOVE_VERSION=0.9.0
## Short help ## ## Short help ##
function short_help() function short_help()
{ {
@@ -28,8 +32,9 @@ SYNOPSIS
DESCRIPTION DESCRIPTION
You can use love-release.sh to generate Love 2D game applications and get over the fastidious zipping commands you had to do. You can use love-release.sh to generate Love 2D game applications and get over the fastidious zipping commands you had to do.
The script fully supports Windows, MacOS either on x86 or x64. The script fully supports Windows, MacOS either on x86 or x64.
It needs an Internet connection to download Love files, and relies on curl, zip and unzip commands. It needs an Internet connection to download Love files, and relies on curl, zip and unzip commands.
To set the default Love version to use, you can edit the very beginning of the script.
OPTIONS OPTIONS
-h Print a short help -h Print a short help
@@ -38,9 +43,9 @@ OPTIONS
OPERATING SYSTEMS OPERATING SYSTEMS
-l Create a plain Love file. It is just a zip of your sources, renamed in *.love. -l Create a plain Love file. It is just a zip of your sources, renamed in *.love.
Mostly aimed at Linux players or developpers and the most common distribution process. Mostly aimed at Linux players or developpers and the most common distribution process.
-m Create MacOS application. -m Create MacOS application.
Starting with Love 0.9.0, Love no longer supports old x86 Macintosh. Starting with Love 0.9.0, Love no longer supports old x86 Macintosh.
If you are targeting one of these, your project must be developped with Love 0.8.0 or lower. If you are targeting one of these, your project must be developped with Love 0.8.0 or lower.
Depending on the Love version used, the script will choose which one, between x64 only or Universal Build to create. Depending on the Love version used, the script will choose which one, between x64 only or Universal Build to create.
@@ -54,11 +59,11 @@ OPTIONS
PROJECT OPTIONS PROJECT OPTIONS
-n Set the projects name. By default, the name of the current directory is used. -n Set the projects name. By default, the name of the current directory is used.
-r Set the release directory. By default, a subdirectory called releases is created. -r Set the release directory. By default, a subdirectory called releases is created.
-u Set the company name. Provide it for MacOS CFBundleIdentifier. -u Set the company name. Provide it for MacOS CFBundleIdentifier.
-v Love version. Default is 0.9.0. -v Love version. Default is 0.9.0.
Starting with Love 0.8.0, a release is specially available for Windows x64. Starting with Love 0.8.0, a release is specially available for Windows x64.
Starting with Love 0.9.0, Love no longer supports old x86 Macintosh. Starting with Love 0.9.0, Love no longer supports old x86 Macintosh.
@@ -176,15 +181,14 @@ RELEASE_LOVE=false
RELEASE_OSX=false RELEASE_OSX=false
RELEASE_WIN_32=false RELEASE_WIN_32=false
RELEASE_WIN_64=false RELEASE_WIN_64=false
LOVE_GT_080=1 # Support Windows x64 LOVE_VERSION_MAJOR=`echo "$LOVE_VERSION" | grep -Eo '^[0-9]+\.?[0-9]*'`
LOVE_GT_090=1 # Support MacOS x64 LOVE_GT_080=`echo "$LOVE_VERSION_MAJOR>=0.8" | bc`
LOVE_GT_090=`echo "$LOVE_VERSION_MAJOR>=0.9" | bc`
PROJECT_FILES= PROJECT_FILES=
PROJECT_NAME=${PWD##/*/} PROJECT_NAME=${PWD##/*/}
COMPANY_NAME=love2d COMPANY_NAME=love2d
RELEASE_DIR=$PWD/releases RELEASE_DIR=$PWD/releases
LOVE_VERSION=0.9.0
LOVE_VERSION_MAJOR=0.9
DEBUG=false DEBUG=false
CACHE_DIR=~/.cache/love-release CACHE_DIR=~/.cache/love-release
@@ -535,4 +539,4 @@ then
rm $PROJECT_NAME.love rm $PROJECT_NAME.love
fi fi
echo "Done !" echo "Done !"