update makeVersionTag.pl
This commit is contained in:
parent
31549e440d
commit
683fa3725e
|
@ -45,8 +45,8 @@ close($fh)
|
||||||
@untrackedFiles and die "forgot git add?\n",map{ "- $_\n"} @untrackedFiles;
|
@untrackedFiles and die "forgot git add?\n",map{ "- $_\n"} @untrackedFiles;
|
||||||
|
|
||||||
# 現在のバージョン番号を取得
|
# 現在のバージョン番号を取得
|
||||||
my $buildFile = 'app/build.gradle';
|
my $buildFile = 'app/build.gradle.kts';
|
||||||
`cat $buildFile` =~ /versionName\s+["']([\d\.]+)["']/
|
`cat $buildFile` =~ /versionName\s*=\s*["']([\d\.]+)["']/
|
||||||
or die "missing versionName in $buildFile\n";
|
or die "missing versionName in $buildFile\n";
|
||||||
my($tag)="v$1";
|
my($tag)="v$1";
|
||||||
print "# version=$tag\n";
|
print "# version=$tag\n";
|
||||||
|
|
Loading…
Reference in New Issue