Skip to content

Commit

Permalink
feat: release v0.2.5
Browse files Browse the repository at this point in the history
Signed-off-by: rajput-hemant <[email protected]>
  • Loading branch information
rajput-hemant committed Nov 18, 2023
1 parent b6ece5c commit 3b2ed62
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Calculator

**v0.2.4**
**v0.2.5**

### A Simple but elegant Calculator app made with Flutter using Google's Material Design with Currency (Exchange Rate) and Unit Converter.

Expand Down Expand Up @@ -89,15 +89,15 @@ This project is licensed under the GPL-3.0 License - see the [LICENSE](LICENSE)

<!------------------------------------{ apk }----------------------------------->

[universal-release]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.4/Calculator-v0.2.4-universal-release.apk
[arm64]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.4/Calculator-v0.2.4-arm64-v8a-release.apk
[armabi]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.4/Calculator-v0.2.4-armeabi-v7a-release.apk
[x86]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.4/Calculator-v0.2.4-x86_64-release.apk
[universal-release]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.5/Calculator-v0.2.5-universal-release.apk
[arm64]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.5/Calculator-v0.2.5-arm64-v8a-release.apk
[armabi]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.5/Calculator-v0.2.5-armeabi-v7a-release.apk
[x86]: https://github.com/rajput-hemant/calculator/releases/download/v0.2.5/Calculator-v0.2.5-x86_64-release.apk

<!--------------------------------{ source code }------------------------------->

[sc-zip]: https://github.com/rajput-hemant/calculator/archive/refs/tags/v0.2.4.zip
[sc-tar.gz]: https://github.com/rajput-hemant/calculator/archive/refs/tags/v0.2.4.tar.gz
[sc-zip]: https://github.com/rajput-hemant/calculator/archive/refs/tags/v0.2.5.zip
[sc-tar.gz]: https://github.com/rajput-hemant/calculator/archive/refs/tags/v0.2.5.tar.gz

<!----------------------------------{ Labels }--------------------------------->

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: calculator
description: A Simple but elegant Calculator app made with Flutter with Currency (Exchange Rate) & Unit Converter.
publish_to: "none" # to prevent accidental publication of package to pub.dev

version: 0.2.4+6
version: 0.2.5+7

environment:
sdk: ">=3.1.5 <4.0.0"
Expand Down
25 changes: 25 additions & 0 deletions rename
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# Get the version from the command line arguments
version=$1

# Check if version is provided
if [[ -z $version ]]; then
echo "Version not provided. Exiting..."
exit 1
fi

# Set the output directory
output_dir="build/app/outputs/flutter-apk"

# Rename the app-release.apk file
mv "${output_dir}/app-release.apk" "${output_dir}/Calculator-v${version}-universal-release.apk"
mv "${output_dir}/app-release.apk.sha1" "${output_dir}/Calculator-v${version}-universal.sha1"

# Rename the other build files
for file in "${output_dir}/app-"*"-release.apk"; do
new_file="${file/app-/Calculator-v${version}-}"
new_sha1_file="${new_file/.apk/.sha1}"
mv "$file" "$new_file"
mv "${file}.sha1" "$new_sha1_file"
done

0 comments on commit 3b2ed62

Please sign in to comment.