mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 04:04:46 +08:00
build: add snap installation
I ( @boukendesho ) have volunteered to maintain the snap package so this adds it back into the installation instructions. It will set a `snap` tag visible in `rclone version` so we know where it came from for support queries.
This commit is contained in:
parent
cf65e36cf3
commit
923989d1d7
|
@ -19,6 +19,7 @@ Current active maintainers of rclone are:
|
|||
| wiserain | @wiserain | pikpak backend |
|
||||
| albertony | @albertony | |
|
||||
| Chun-Hung Tseng | @henrybear327 | Proton Drive Backend |
|
||||
| Hideo Aoyama | @boukendesho | snap packaging |
|
||||
|
||||
**This is a work in progress Draft**
|
||||
|
||||
|
|
|
@ -290,6 +290,28 @@ docker run --rm \
|
|||
ls ~/data/mount
|
||||
kill %1
|
||||
```
|
||||
## Snap installation {#snap}
|
||||
|
||||
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/rclone)
|
||||
|
||||
Make sure you have [Snapd installed](https://snapcraft.io/docs/installing-snapd)
|
||||
|
||||
```bash
|
||||
$ sudo snap install rclone
|
||||
```
|
||||
Due to the strict confinement of Snap, rclone snap cannot acess real /home/$USER/.config/rclone directory, default config path is as below.
|
||||
|
||||
- Default config directory:
|
||||
- /home/$USER/snap/rclone/current/.config/rclone
|
||||
|
||||
Note: Due to the strict confinement of Snap, `rclone mount` feature is `not` supported.
|
||||
|
||||
If mounting is wanted, either install a precompiled binary or enable the relevant option when [installing from source](#source).
|
||||
|
||||
Note that this is controlled by [community maintainer](https://github.com/boukendesho/rclone-snap) not the rclone developers so it may be out of date. Its current version is as below.
|
||||
|
||||
[![rclone](https://snapcraft.io/rclone/badge.svg)](https://snapcraft.io/rclone)
|
||||
|
||||
|
||||
## Source installation {#source}
|
||||
|
||||
|
|
8
lib/buildinfo/snap.go
Normal file
8
lib/buildinfo/snap.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
//go:build snap
|
||||
// +build snap
|
||||
|
||||
package buildinfo
|
||||
|
||||
func init() {
|
||||
Tags = append(Tags, "snap")
|
||||
}
|
Loading…
Reference in New Issue
Block a user