Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenclaw900 committed Nov 6, 2021
2 parents 80c6ce5 + fea39d9 commit 77cf652
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,17 @@ To install, use one of the [precompiled releases](#release), [nightly builds](#n
#### Release:

```sh
# Get architecture
dpdashboardarch=
if (( $G_HW_ARCH == 10 )); then
dpdashboardarch='amd64'
elif (( $G_HW_ARCH == 3 )); then
dpdashboardarch='armv8'
elif (( $G_HW_ARCH == 2 )); then
dpdashboardarch='armv7'
else
dpdashboardarch='armv6'
fi
curl -L $(curl -sS 'https://api.github.com/repos/ravenclaw900/dietpi-dashboard/releases/latest' | mawk -F\" "/\"browser_download_url\": \".*dietpi-dashboard-$dpdashboardarch\"/{print \$4}") -o dietpi-dashboard # Download latest binary for current architecture
unset dpdashboardarch # Remove architecture variable
curl -fL "$(curl -sSf 'https://api.github.com/repos/ravenclaw900/dietpi-dashboard/releases/latest' | mawk -F\" "/\"browser_download_url\": \".*dietpi-dashboard-$G_HW_ARCH_NAME\"/{print \$4}")" -o dietpi-dashboard # Download latest binary for current architecture
chmod +x dietpi-dashboard # Make binary exectuable
./dietpi-dashboard # Run binary
```

#### Nightly:

```sh
# Get architecture
dpdashboardarch=
if (( $G_HW_ARCH == 10 )); then
dpdashboardarch='amd64'
elif (( $G_HW_ARCH == 3 )); then
dpdashboardarch='armv8'
elif (( $G_HW_ARCH == 2 )); then
dpdashboardarch='armv7'
else
dpdashboardarch='armv6'
fi
curl -L "https://nightly.link/ravenclaw900/DietPi-Dashboard/workflows/push-build/main/dietpi-dashboard-$dpdashboardarch.zip" -o dietpi-dashboard.zip # Download latest nightly build for current architecture
curl -fL "https://nightly.link/ravenclaw900/DietPi-Dashboard/workflows/push-build/main/dietpi-dashboard-$G_HW_ARCH_NAME.zip" -o dietpi-dashboard.zip # Download latest nightly build for current architecture
unzip dietpi-dashboard.zip # Unzip binary
unset dpdashboardarch # Remove architecture variable
rm dietpi-dashboard.zip # Remove archive
chmod +x dietpi-dashboard # Make binary exectuable
./dietpi-dashboard # Run binary
```
Expand Down

0 comments on commit 77cf652

Please sign in to comment.