From 683fa3725ee5955d481b8e25f651ded2c1a5091b Mon Sep 17 00:00:00 2001 From: tateisu Date: Sat, 9 Sep 2023 21:48:13 +0900 Subject: [PATCH] update makeVersionTag.pl --- makeVersionTag.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makeVersionTag.pl b/makeVersionTag.pl index de8007a0..911dcc2b 100644 --- a/makeVersionTag.pl +++ b/makeVersionTag.pl @@ -45,8 +45,8 @@ close($fh) @untrackedFiles and die "forgot git add?\n",map{ "- $_\n"} @untrackedFiles; # 現在のバージョン番号を取得 -my $buildFile = 'app/build.gradle'; -`cat $buildFile` =~ /versionName\s+["']([\d\.]+)["']/ +my $buildFile = 'app/build.gradle.kts'; +`cat $buildFile` =~ /versionName\s*=\s*["']([\d\.]+)["']/ or die "missing versionName in $buildFile\n"; my($tag)="v$1"; print "# version=$tag\n";