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

Commit

Permalink
Update install instructions and release for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
xarantolus committed Sep 1, 2021
1 parent 5e8ee1b commit 3e20938
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Upduck is a simple HTTP and HTTPS static file server that integrates with [DuckD
**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/).

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

```
$ upduck -h
Expand Down Expand Up @@ -88,19 +88,20 @@ You can either compile this program or download a release.
#### Downloading
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).

On a Raspberry Pi you would copy the link and start downloading the program:
On a Raspberry Pi the following command should download the right executable:

arch=$(uname -m) && wget -O upduck "https://github.com/xarantolus/upduck/releases/latest/download/upduck-raspberrypi-${arch%l}"

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

Mark it as executable:

chmod +x upduck-raspberrypi
chmod +x upduck

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

mv upduck-raspberrypi /usr/bin/upduck
mv upduck /usr/bin/upduck

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.
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.

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):

Expand Down
8 changes: 5 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ GOOS=windows go build -o "releases/$PROGRAM_NAME-windows.exe"

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

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

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

0 comments on commit 3e20938

Please sign in to comment.