diff --git a/snapcraft-dev.yaml b/snapcraft-dev.yaml index 06c70a493..f4af5bc9e 100644 --- a/snapcraft-dev.yaml +++ b/snapcraft-dev.yaml @@ -1,21 +1,25 @@ -name: rclone-dev -version: dev-latest +name: rclone-beta +version: rclone-latest summary: rsync for cloud storage description: Rclone is a command line program to sync files to and from cloud storage providers such as Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, OneDrive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files. confinement: strict -grade: devel +grade: stable apps: rclone: - command: usr/bin/rclone + command: bin/rclone plugs: [home, network, network-bind, fuse-support] parts: rclone: - plugin: make + plugin: go source: https://github.com/ncw/rclone source-type: git stage-packages: [fuse] build-packages: [gcc, libgudev-1.0-dev, fuse] + go-importpath: github.com/ncw/rclone + # Snapcraft's go plugin tries to build binaries for all dependencies, but rclone doesn't need them. + # This instruct it to only build rclone. + go-packages: [github.com/ncw/rclone] diff --git a/snapcraft.yaml b/snapcraft.yaml index 317067586..6f0acf0c4 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -9,14 +9,18 @@ grade: stable apps: rclone: - command: usr/bin/rclone + command: bin/rclone plugs: [home, network, network-bind, fuse-support] parts: rclone: - plugin: make + plugin: go source: https://github.com/ncw/rclone source-tag: v1.37 source-type: git stage-packages: [fuse] build-packages: [gcc, libgudev-1.0-dev, fuse] + go-importpath: github.com/ncw/rclone + # Snapcraft's go plugin tries to build binaries for all dependencies, but rclone doesn't need them. + # This instruct it to only build rclone. + go-packages: [github.com/ncw/rclone]