Skip to content

Commit

Permalink
v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Feb 29, 2024
1 parent 9e6e28f commit e676a52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
artifacts: |
uploads/tpy.exe
uploads/tpy
uploads/tpy_macos
uploads/tpy-macos
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.changelog_reader.outputs.changes }}

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: uploads
path: tpy_macos
path: tpy-macos

build-windows:
runs-on: windows-latest
Expand Down
11 changes: 9 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ if [ "$version" = "latest" ]; then
json=$(curl -s https://api.github.com/repos/cophilot/templify/releases/latest)

# get the tag name of the latest release
version=$(echo $json | grep -Po '"tag_name": "\K.*?(?=")')
if [ "$macOS" = true ]; then
version=$(echo $json | grep -o '"tag_name": ".*"' | cut -d '"' -f4)
else
version=$(echo $json | grep -Po '"tag_name": "\K.*?(?=")')
fi
echo "Found version: $version"
else
echo "Looking for the release with the tag $version..."
Expand All @@ -62,9 +66,12 @@ fi
url=https://github.com/cophilot/templify/releases/download/$version/tpy

if [ "$macOS" = true ]; then
url=$url_macos
url="$url-macos"
echo "url: $url"
fi

exit 0

echo "Creating installation directory $homePath..."
mkdir -p $homePath/bin

Expand Down
2 changes: 1 addition & 1 deletion src/version_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub fn update(v: String) -> Result<(), Box<dyn std::error::Error>> {
binary_ending = ".exe";
}
if env::is_mac() {
binary_ending = "_macos";
binary_ending = "-macos";
}

let mut version = v;
Expand Down

0 comments on commit e676a52

Please sign in to comment.