Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.

Commit 3e20938

Browse files
committed
Update install instructions and release for aarch64
1 parent 5e8ee1b commit 3e20938

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Upduck is a simple HTTP and HTTPS static file server that integrates with [DuckD
66
**Disclaimer**: Using this program with the `-email` flag signifies your acceptance to the [Let's Encrypt's Subscriber Agreement and/or Terms of Service](https://letsencrypt.org/repository/).
77

88
### How to use
9-
The help section of the program tries to be as helpful as possible:
9+
The help section of the program tries to be as helpful as possible, make sure you read the section with examples:
1010

1111
```
1212
$ upduck -h
@@ -88,19 +88,20 @@ You can either compile this program or download a release.
8888
#### Downloading
8989
You can [download a version for your system](https://github.com/xarantolus/upduck/releases/latest) and move it anywhere you want. It is recommended to put the executable in a directory from your [`$PATH`](https://superuser.com/a/284351).
9090

91-
On a Raspberry Pi you would copy the link and start downloading the program:
91+
On a Raspberry Pi the following command should download the right executable:
92+
93+
arch=$(uname -m) && wget -O upduck "https://github.com/xarantolus/upduck/releases/latest/download/upduck-raspberrypi-${arch%l}"
9294

93-
wget https://github.com/.../upduck-raspberrypi
9495

9596
Mark it as executable:
9697

97-
chmod +x upduck-raspberrypi
98+
chmod +x upduck
9899

99100
Then move it to your `$PATH` to make it accessible everywhere:
100101

101-
mv upduck-raspberrypi /usr/bin/upduck
102+
mv upduck /usr/bin/upduck
102103

103-
Now you should be able to run `upduck` from anywhere. This is especially useful combined with using `-dir .` when [saving settings](#saving-settings) as it will serve the current directory you're in.
104+
Now you should be able to run `upduck` from anywhere. This is especially useful if you set `-dir .` while [saving settings](#saving-settings), as now it always serves directory you're currently in.
104105

105106
If you want to use ports below `1024` and run `upduck` without root (sudo), you can [set the `CAP_NET_BIND_SERVICE` permission](https://stackoverflow.com/a/414258):
106107

release.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ GOOS=windows go build -o "releases/$PROGRAM_NAME-windows.exe"
77

88
GOOS=linux go build -o "releases/$PROGRAM_NAME-linux"
99

10-
GOOS=linux GOARCH=arm GOARM=5 go build -o "releases/$PROGRAM_NAME-raspberrypi-arm5"
11-
GOOS=linux GOARCH=arm GOARM=6 go build -o "releases/$PROGRAM_NAME-raspberrypi-arm6"
12-
GOOS=linux GOARCH=arm GOARM=7 go build -o "releases/$PROGRAM_NAME-raspberrypi-arm7"
10+
GOOS=linux GOARCH=arm GOARM=5 go build -o "releases/$PROGRAM_NAME-raspberrypi-armv5"
11+
GOOS=linux GOARCH=arm GOARM=6 go build -o "releases/$PROGRAM_NAME-raspberrypi-armv6"
12+
GOOS=linux GOARCH=arm GOARM=7 go build -o "releases/$PROGRAM_NAME-raspberrypi-armv7"
1313

14+
# Raspberry Pi 4
15+
GOOS=linux GOARCH=arm64 go build -o "releases/$PROGRAM_NAME-raspberrypi-aarch64"

0 commit comments

Comments
 (0)