Skip to content

Commit d547ab5

Browse files
author
Your Name
committed
add version data to install
1 parent de9ba07 commit d547ab5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

script/install-linux.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/sh
2-
LASTEST="test"
2+
LASTEST="0.1.0"
33

44
if [ -f "$HOME/.local/bin/kt-encabulator" ]; then
55
echo -e "\n> Found existing binary in local bin. Do you wish to Continue? \e[1;34m(y/n)\e[0m"
@@ -16,4 +16,6 @@ curl -L -o "$HOME/.local/bin/kt-encabulator" "https://github.com/Olypolyu/Kotlin
1616
chmod +x "$HOME/.local/bin/kt-encabulator"
1717

1818
echo -e "\n\e[1;32mReady to go!\e[0m Execute with \"\e[1;34mkt-encabulator\e[0m\""
19-
echo " - Run with -h or --help for documentation. \n"
19+
echo " - Run with -h or --help for documentation. \n"
20+
21+
echo $LASTEST >> "$HOME/.local/bin/.kt-encabulator.version.txt"

script/install-win.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$latest = "test"
1+
$latest = "0.1.0"
22
$binPath = "$env:USERPROFILE\.local\bin"
33
$exePath = Join-Path $binPath "kt-encabulator.exe"
44

@@ -23,6 +23,7 @@ if (-Not (Test-Path -Path $binPath)) {
2323

2424
Write-Host "`n> Downloading binary with Invoke-WebRequest..."
2525
Invoke-WebRequest -Uri "https://github.com/Olypolyu/Kotlin-Encabulator/releases/download/$latest/kt-encabulator.exe" -OutFile $exePath
26+
Out-File $latest -FilePath Join-Path $binPath ".kt-encabulator.version.txt"
2627

2728
Write-Host -NoNewline "`nReady to go! " -ForegroundColor Green
2829
Write-Host -NoNewline "Execute with "

0 commit comments

Comments
 (0)