Files
Musify/update.sh
Valeri Gokadze 8da62d2c9f Update: v9.8.5
2026-03-02 10:13:02 +04:00

12 lines
316 B
Bash

#!/bin/bash
# Read the version from pubspec.yaml
version=$(grep version pubspec.yaml | awk -F'[ +]' '{print $2}' | tr -d "'")
# Define the variable name and file name
variable="appVersion"
filename="lib/constants/version.dart"
# Write the version to the Dart file
echo "const $variable = '$version';" > $filename