Skip to content

Commit

Permalink
Added command to release script that adds the current version number to
Browse files Browse the repository at this point in the history
the about view. Fix for #18.
  • Loading branch information
b0wter committed Jan 29, 2019
1 parent 6cd5c63 commit 0be5df1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions scripts/create_github_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ source scripts/credentials.sh
source scripts/git_release.sh
echo "The working tag is: $NEW_TAG."

#
# Replace current version in source view.
#
perl -pi -e "s/(?<=You are running version: )\d.\d.\d/$NEW_TAG/;" src/webapi/Views.fs

#
# Create binaries.
#
Expand Down
4 changes: 2 additions & 2 deletions src/webapi/Views.fs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ let aboutView =
a [ _href "https://github.com/b0wter/torpedo"; _class "centered-text margin-top-05em link-text" ] [ str "GitHub"]
span [] [ str "." ]
]
p [] [ small [] [ str "You are running ] ]
p [] [ small [] [ str "You are running version: 1.0.5"] ]
br []
p [] [
a [ _href "javascript:history.back()"; _class "centered-text margin-top-05em link-text" ] [ str "Return"]
]
]
]
|> masterView []
|> masterView []

0 comments on commit 0be5df1

Please sign in to comment.