@@ -42,7 +42,22 @@ All commands are configurable to fit any workflow, with support for:
4242
4343## Getting started
4444
45- Download the binary for your platform from the [ releases page] ( https://github.com/ssc/dtk/releases ) :
45+ ### Homebrew (macOS and Linux)
46+
47+ ``` console
48+ brew tap ssc-php/dtk
49+ brew install dtk
50+ ```
51+
52+ To upgrade:
53+
54+ ``` console
55+ brew upgrade dtk
56+ ```
57+
58+ ### Manual install
59+
60+ Download the binary for your platform from the [ releases page] ( https://github.com/ssc-php/dtk/releases ) :
4661
4762| Platform | Binary | Examples |
4863| ----------------| --------------------------| -----------------------------------------|
@@ -55,15 +70,15 @@ Download the binary for your platform from the [releases page](https://github.co
5570<summary >**🐧 On Linux:**</summary >
5671
5772``` console
58- curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc/dtk/releases/latest/download/dtk-linux-x86_64" -o /tmp/dtk
73+ curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc-php /dtk/releases/latest/download/dtk-linux-x86_64" -o /tmp/dtk
5974
6075install -m 755 -D /tmp/dtk ~/.local/bin/dtk
6176```
6277
6378Verify the checksum:
6479
6580``` console
66- curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc/dtk/releases/latest/download/checksums.txt" \
81+ curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc-php /dtk/releases/latest/download/checksums.txt" \
6782 | grep "dtk-linux-x86_64" | awk '{print $1 " /tmp/dtk"}' | sha256sum --check
6883```
6984
@@ -75,15 +90,15 @@ curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc/dtk/releases/lates
7590<summary >**🍎 On macOS:**</summary >
7691
7792``` console
78- curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc/dtk/releases/latest/download/dtk-macos-aarch64" -o /tmp/dtk
93+ curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc-php /dtk/releases/latest/download/dtk-macos-aarch64" -o /tmp/dtk
7994
8095install -m 755 /tmp/dtk ~/.local/bin/dtk
8196```
8297
8398Verify the checksum:
8499
85100``` console
86- curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc/dtk/releases/latest/download/checksums.txt" \
101+ curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc-php /dtk/releases/latest/download/checksums.txt" \
87102 | grep "dtk-macos-aarch64" | awk '{print $1 " /tmp/dtk"}' | shasum -a 256 --check
88103```
89104
@@ -97,14 +112,14 @@ curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/ssc/dtk/releases/lates
97112
98113``` powershell
99114New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.local\bin" | Out-Null
100- Invoke-WebRequest -Uri "https://github.com/ssc/dtk/releases/latest/download/dtk-windows-x86_64.exe" -OutFile "$env:TEMP\dtk.exe"
115+ Invoke-WebRequest -Uri "https://github.com/ssc-php /dtk/releases/latest/download/dtk-windows-x86_64.exe" -OutFile "$env:TEMP\dtk.exe"
101116```
102117
103118Verify the checksum:
104119
105120``` powershell
106121$hash = (Get-FileHash "$env:TEMP\dtk.exe" -Algorithm SHA256).Hash.ToLower()
107- $expected = (Invoke-WebRequest -Uri "https://github.com/ssc/dtk/releases/latest/download/checksums.txt").Content -split '\r?\n' |
122+ $expected = (Invoke-WebRequest -Uri "https://github.com/ssc-php /dtk/releases/latest/download/checksums.txt").Content -split '\r?\n' |
108123 Where-Object { $_ -match "dtk-windows-x86_64.exe" } | ForEach-Object { ($_ -split '\s+')[0] }
109124if ($hash -ne $expected) { throw "Checksum mismatch" }
110125```
@@ -144,7 +159,7 @@ Further documentation can be found in:
144159You can see the current and past versions using one of the following:
145160
146161* the ` git tag ` command
147- * the [ releases page on Github] ( https://github.com/ssc/dtk/releases )
162+ * the [ releases page on Github] ( https://github.com/ssc-php /dtk/releases )
148163* the file listing the [ changes between versions] ( CHANGELOG.md )
149164
150165And finally some meta documentation:
0 commit comments