0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Flutter🐬でビルド時にAuto increment する

Last updated at Posted at 2023-02-28

Flutter のアプリビルド時に、自動で

  • version number
  • version code
    の両方をAuto inclement したい。

と思ったので、共有します。

以下のコマンドを実行することでインクリメントできます。

increment.sh
# Increment version
perl -i -pe 's/^(version:\s+\d+\.\d+\.\d+\+)(\d+)$/$1.($2+1)/e' pubspec.yaml

もっと言えば、シェルスクリプトで実行するとシンプルになります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?