Skip to content

A script to update the version of your flutter project. You can use it in a git's hook, for example pre-commit.

Notifications You must be signed in to change notification settings

Martin-Fenocchio/flutter-auto-update-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto version updater

A script to update the version number of your flutter project's pubspec.yaml file, done with JavaScript.


Setup

  1. Clone this project.
    git clone https://github.com/Novak-Fenocchio/Flutter-auto-update-version.git

  2. Download libraries:
    npm install

  3. Set env var:
    You need to define your pubspect.yaml's path, of your app. the var is called "pubspecPath"

  4. Run script:
    node index.js


Use in git hook

The main utility use for this script is in a git hook, in my case, in a pre-commit hook. To set this up, you can follow the instructions in this blog post, written by me.

https://medium.com/@martin_feno/how-to-update-the-number-version-automatically-in-a-flutter-app-265ed5e3eee4

About

A script to update the version of your flutter project. You can use it in a git's hook, for example pre-commit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published