Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
fix: update readme, update repo links
Browse files Browse the repository at this point in the history
  • Loading branch information
devklick committed Sep 12, 2024
1 parent 8e72fa6 commit 624fcaa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<br/>
<br/>

> [!IMPORTANT]
> This is the legacy version of GDMan written in .Net. It will no longer be maintained.
> The alternative can be found at https://github.com/devklick/gdman.

## Motivation

While working with Godot on Linux, I find it a chore having to download new versions,
Expand All @@ -29,7 +34,7 @@ one of the install scripts. The same process can be used for updating to the lat

You can manually install GDMan in a few steps:

- Download the [latest release](https://github.com/devklick/GDMan/releases/latest)
- Download the [latest release](https://github.com/devklick/GDMan.Net/releases/latest)
for your operating system
- Extract it to a folder of your choice, e.g. `~/gdman`
- Update your path, adding your new folder to it. In the above example,
Expand All @@ -47,7 +52,7 @@ Rather than running through the steps manually, you can run the
Run the following in a Admin PowerShell prompt:

```ps1
. {iwr -useb https://raw.githubusercontent.com/devklick/GDMan/master/install/install-windows.ps1} | iex;
. {iwr -useb https://raw.githubusercontent.com/devklick/GDMan.Net/master/install/install-windows.ps1} | iex;
```

</details>
Expand All @@ -58,7 +63,7 @@ Run the following in a Admin PowerShell prompt:
You can run the following to use the [install script for Linux](/install/install-unix.sh):

```
wget -q https://raw.githubusercontent.com/devklick/GDMan/master/install/install-unix.sh -O - | bash -s linux
wget -q https://raw.githubusercontent.com/devklick/GDMan.Net/master/install/install-unix.sh -O - | bash -s linux
```

The script will require the following tools to be available on the machine:
Expand All @@ -77,7 +82,7 @@ There's no bespoke script for installing on MacOS, however if you have the right
available on your Mac, you can probably use the Linux install script and pass in `osx` as an argument:

```
wget -q https://raw.githubusercontent.com/devklick/GDMan/master/install/install-unix.sh -O - | bash -s osx
wget -q https://raw.githubusercontent.com/devklick/GDMan.Net/master/install/install-unix.sh -O - | bash -s osx
```

The script will require the following tools to be available on the machine:
Expand Down
2 changes: 1 addition & 1 deletion install/install-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ d="$HOME/gdman"

# Find the latest release for the target OS
echo Finding latest version
r=$(curl -s https://api.github.com/repos/devklick/GDMan/releases/latest)
r=$(curl -s https://api.github.com/repos/devklick/GDMan.Net/releases/latest)
u=$(echo "$r" | jq -r --arg t "$t" '.assets[] | select(.name | test($t)) | .browser_download_url')
v=$(echo "$r" | jq -r '.tag_name')
echo Found $v;
Expand Down
2 changes: 1 addition & 1 deletion install/install-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $z = Join-Path -Path $env:USERPROFILE -ChildPath "Downloads\gdman.zip"
$d = Join-Path -Path $env:USERPROFILE -ChildPath "gdman"

Write-Host Finding latest version
$r = (iwr -useb https://api.github.com/repos/devklick/GDMan/releases/latest | ConvertFrom-Json)
$r = (iwr -useb https://api.github.com/repos/devklick/GDMan.Net/releases/latest | ConvertFrom-Json)
$a = $r.assets | Where-Object { $_.name -match 'win-x64.zip' }
$u = $a | Select-Object -ExpandProperty browser_download_url
$v = $r.tag_name
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "[email protected]",
"license": "ISC",
"bugs": {
"url": "https://github.com/devklick/GDMan/issues"
"url": "https://github.com/devklick/GDMan.Net/issues"
},
"homepage": "https://github.com/devklick/GDMan#readme",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/GDMan.Core/Services/UpdateCheckerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ private static string[] GetUpdateInstructions()
{
return [
"Run the following in PowerShell to update:",
". {iwr -useb https://raw.githubusercontent.com/devklick/GDMan/master/install/install-windows.ps1} | iex;"
". {iwr -useb https://raw.githubusercontent.com/devklick/GDMan.Net/master/install/install-windows.ps1} | iex;"
];
}
if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS())
{
var os = OperatingSystem.IsLinux() ? "linux" : "osx";
return [
"Run the following to update:",
$"wget -q https://raw.githubusercontent.com/devklick/GDMan/master/install/install-unix.sh -O - | bash -s {os}"
$"wget -q https://raw.githubusercontent.com/devklick/GDMan.Net/master/install/install-unix.sh -O - | bash -s {os}"
];
}
return [
Expand Down

0 comments on commit 624fcaa

Please sign in to comment.