Skip to content

Commit b8dc605

Browse files
committed
[update] release script
1 parent 8bbc5cf commit b8dc605

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: terrun
2-
description: A sample command-line application.
3-
version: 1.0.0
2+
description: terrun - efficient terminal runner
3+
version: 0.0.1
44
repository: https://github.com/mikeborodin/menusc
55

66
environment:

scripts/release.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ cd build
44
tar -czf terrun.tar.gz terrun
55
sha=`shasum -a 256 terrun.tar.gz | cut -d " " -f 1`
66
echo $sha
7-
version="v0.0.1"
7+
8+
89
cd ..
10+
versionNotSplitted=`awk '/version:/ {print $2}' pubspec.yaml | sed "s/[,']//g"`
11+
version=`awk -F+ '{print $1}' <<< "$versionNotSplitted"`
912

1013
gh release create $version build/terrun.tar.gz --generate-notes
1114

0 commit comments

Comments
 (0)