README.md: Update build instructions

This commit is contained in:
Bard 2023-06-23 11:53:57 +08:00 committed by GitHub
parent 1e3d272afa
commit e21b777f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,26 +4,39 @@ A file list program that supports multiple storage.
## How to build
- Install `libfuse` development package.
- ubuntu/debian:
```shell
sudo apt update
sudo apt install libfuse-dev
```
- redhat:
```shell
sudo yum install fuse-devel
```
- Enter in your openwrt dir
- Openwrt official SnapShots
*1. update golang 19.x (Fix build for `openwrt-21.02/22.03` branches)*
*1. requires golang 1.19.x or latest version (Fix build for older branches of OpenWrt.)*
```shell
rm -rf feeds/packages/lang/golang
svn export https://github.com/sbwml/packages_lang_golang/branches/19.x feeds/packages/lang/golang
git clone https://github.com/sbwml/packages_lang_golang -b 20.x feeds/packages/lang/golang
```
*2. get luci-app-alist source & building*
```shell
git clone https://github.com/sbwml/luci-app-alist package/alist
make menuconfig # choose LUCI -> Applications -> luci-app-alist
make V=s
make package/alist/luci-app-alist/compile V=s # build luci-app-alist
```
--------------
## How to install prebuilt packages (OpenWrt 21,22,master)
## How to install prebuilt packages
- Login OpenWrt terminal (SSH)