Skip to content

Commit

Permalink
Fixed new distro detect regression + prepared v0.16 release
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdb committed Jul 17, 2024
1 parent 83ea1c9 commit bf3dd42
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ If this repo was useful to you, feel free to buy us some coffee! :)

### VERSIONS


#### v0.16

- Really fixed cargo command check this time... v0.15 didn't do the trick
- Fixed distro support regression identified by @AnonJervis specifically making LinuxMint work again


#### v0.15

- Fixed cargo command check to include $HOME/.cargo/bin/cargo so that it handles non-package-manager installed cargo properly
Expand Down
4 changes: 2 additions & 2 deletions cli/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func GetEnv() {
env.AppImage = false
}

id, err := exec.Command(env.Bash, "-c", "cat /etc/*-release | grep \"^ID=\" | head -1 | cut -d '=' -f 2").Output()
id, err := exec.Command(env.Bash, "-c", "cat /etc/os-release | grep \"^ID=\" | head -1 | cut -d '=' -f 2").Output()
if err != nil {
fmt.Print(utils.ColorRed, "Unable to determine distribution... Exiting...\n\n", utils.ColorReset)
os.Exit(1)
Expand All @@ -101,7 +101,7 @@ func GetEnv() {
//fmt.Println("Distro:", distro)
env.Distro = distro

i, err := exec.Command(env.Bash, "-c", "cat /etc/*-release").Output()
i, err := exec.Command(env.Bash, "-c", "cat /etc/os-release").Output()
if err != nil {
fmt.Print(utils.ColorRed, "Unable to determine base distribution... Exiting...\n\n", utils.ColorReset)
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion dist/getapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# app installer #
#################

VER="v0.15"
VER="v0.16"
CYAN='\033[0;36m'
GREEN='\033[1;32m'
NC='\033[0m'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<a target="_blank" href="https://github.com/hkdb/app"><img class="logo" src="github.png"></a>
</div>
<div>
<p class="version">Latest: v0.15 (ALPHA)</p>
<p class="version">Latest: v0.16 (ALPHA)</p>
</div>
<script>
// Get the <pre> element
Expand Down
2 changes: 1 addition & 1 deletion dist/updateapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# app updater #
###############

VER="v0.15"
VER="v0.16"
CYAN='\033[0;36m'
GREEN='\033[1;32m'
NC='\033[0m'
Expand Down
2 changes: 1 addition & 1 deletion dist/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.15
v0.16
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func main() {

utils.LogLaunchBanner("v0.15.01")
utils.LogLaunchBanner("v0.16")

// Detect environment
cli.GetEnv()
Expand Down

0 comments on commit bf3dd42

Please sign in to comment.