Skip to content

Commit f8e41f4

Browse files
author
fdelapena
authored
Merge pull request #2975 from Ghabry/release/0.8
Release/0.8
2 parents 717fbad + 5c957f6 commit f8e41f4

File tree

6 files changed

+26
-16
lines changed

6 files changed

+26
-16
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cmake_minimum_required(VERSION 3.13...3.24 FATAL_ERROR)
22

3-
project(EasyRPG_Player
4-
VERSION 0.7
3+
project(EasyRPG_Player VERSION 0.8
54
DESCRIPTION "Interpreter for RPG Maker 2000/2003 games"
65
HOMEPAGE_URL "https://easyrpg.org"
76
LANGUAGES CXX)
@@ -808,8 +807,9 @@ if(PLAYER_BUILD_LIBLCF)
808807
target_link_libraries(${PROJECT_NAME} lcf)
809808
else()
810809
# Use system package
811-
find_package(liblcf REQUIRED CONFIG)
812-
target_link_libraries(${PROJECT_NAME} liblcf::liblcf)
810+
player_find_package(NAME liblcf VERSION 0.8
811+
TARGET liblcf::liblcf
812+
REQUIRED)
813813
endif()
814814

815815
# Detect all required libraries

builds/android/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# To use them simply prefix them with "ORG_GRADLE_PROJECT_", e.g. ORG_GRADLE_PROJECT_toolchainDirs
44

55
# Human readable version name
6-
VERSION_NAME=0.7
6+
VERSION_NAME=0.8
77

88
# Internal version number
99
# Must be increased before publishing a new APK
10-
VERSION_CODE=8073
10+
VERSION_CODE=8843
1111

1212
# Architectures to build for when developing (debug)
1313
ABI_FILTERS_DEBUG=armeabi-v7a

builds/release-helper.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,18 @@ IFS='.' read -r _maj _min _pat _twk <<< $version
5151
_pat=${_pat:-0}
5252
_twk=${_twk:-0}
5353

54+
if [ $_pat == 0 ]; then
55+
lcfversion="${_maj}.${_min}"
56+
else
57+
lcfversion="${_maj}.${_min}.${_pat}"
58+
fi
59+
5460
echo "Updating Version in:"
5561

5662
file="CMakeLists.txt"
5763
print_file
5864
sed -i "/EasyRPG_Player VERSION/,1 s/[0-9]\(.[0-9]\)\{1,3\}/$version/" $file
65+
sed -i "/liblcf VERSION/,1 s/[0-9]\(.[0-9]\)\{1,3\}/$lcfversion/" $file
5966
print_verbose " VERSION " $file
6067

6168
file=configure.ac
@@ -64,11 +71,14 @@ sed -i -e "/ep_version_major/,1 s/\[[0-9]\+\]/[$_maj]/" \
6471
-e "/ep_version_minor/,1 s/\[[0-9]\+\]/[$_min]/" \
6572
-e "/ep_version_patch/,1 s/\[[0-9]\+\]/[$_pat]/" \
6673
-e "/ep_version_tweak/,1 s/\[[0-9]\+\]/[$_twk]/" $file
74+
sed -i "/liblcf >= /,1 s/[0-9]\(.[0-9]\)\{1,3\}/$lcfversion/" $file
6775
print_verbose 'm4_define(\[ep_version_' $file
76+
print_verbose "liblcf >= [0-9]" $file
6877

78+
# + 2 because of two extra commits: version commit itself & merge commit
6979
file="builds/android/gradle.properties"
7080
print_file
71-
_android_commits=`git rev-list HEAD --count`
81+
_android_commits=$((`git rev-list HEAD --count` + 2))
7282
sed -i -e "/VERSION_NAME/,1 s/[0-9]\(.[0-9]\)\{1,3\}/$version/" \
7383
-e "/VERSION_CODE/,1 s/[0-9]\+/${_android_commits}/" $file
7484
print_verbose 'VERSION_.*=[0-9]' $file

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AC_PREREQ([2.69])
55

66
# version magic
77
m4_define([ep_version_major], [0])
8-
m4_define([ep_version_minor], [7])
8+
m4_define([ep_version_minor], [8])
99
m4_define([ep_version_patch], [0])
1010
m4_define([ep_version_tweak], [0])
1111
m4_define([ep_version], [ep_version_major.ep_version_minor])
@@ -68,7 +68,7 @@ AC_DEFUN([EP_PKG_CHECK],[ dnl VARIABLE-PREFIX, MODULES, [DESCRIPTION], [DEFAULT=
6868
])
6969
])
7070

71-
PKG_CHECK_MODULES([LCF],[liblcf])
71+
PKG_CHECK_MODULES([LCF],[liblcf >= 0.8])
7272
PKG_CHECK_MODULES([PIXMAN],[pixman-1])
7373
PKG_CHECK_MODULES([ZLIB],[zlib])
7474
PKG_CHECK_MODULES([PNG],[libpng])

docs/BUILDING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Building requirements:
1818

1919
Step-by-step instructions:
2020

21-
tar xf easyrpg-player-0.7.tar.xz # unpack the tarball
22-
cd easyrpg-player-0.7 # enter in the package directory
21+
tar xf easyrpg-player-0.8.tar.xz # unpack the tarball
22+
cd easyrpg-player-0.8 # enter in the package directory
2323
./configure # find libraries, set options
2424
make # compile the executable
2525

@@ -43,8 +43,8 @@ Building requirements:
4343

4444
Step-by-step instructions:
4545

46-
tar xf easyrpg-player-0.7.tar.xz # unpack the tarball
47-
cd easyrpg-player-0.7 # enter in the package directory
46+
tar xf easyrpg-player-0.8.tar.xz # unpack the tarball
47+
cd easyrpg-player-0.8 # enter in the package directory
4848
cmake . -DCMAKE_BUILD_TYPE=Release # configure project
4949
cmake --build . # compile the executable
5050
sudo cmake --build . --target install # install system-wide
@@ -78,8 +78,8 @@ Building requirements:
7878

7979
Step-by-step instructions:
8080

81-
tar xf easyrpg-player-0.7.tar.xz # unpack the tarball
82-
cd easyrpg-player-0.7/builds/android # enter in the android directory
81+
tar xf easyrpg-player-0.8.tar.xz # unpack the tarball
82+
cd easyrpg-player-0.8/builds/android # enter in the android directory
8383
./gradlew -PtoolchainDirs="DIR1;DIR2" assembleRelease # create the APK
8484

8585
Replace ``DIR1`` etc. with the path to the player dependencies. You can use

src/version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
// Set by release-helper.sh
2929
#define EP_VERSION_MAJOR 0
30-
#define EP_VERSION_MINOR 7
30+
#define EP_VERSION_MINOR 8
3131
#define EP_VERSION_PATCH 0
3232
#define EP_VERSION_TWEAK 0
3333

0 commit comments

Comments
 (0)