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

Ability to build snap of fswebcam#30

Open
philroche wants to merge 3 commits intofsphil:masterfrom
philroche:snap
Open

Ability to build snap of fswebcam#30
philroche wants to merge 3 commits intofsphil:masterfrom
philroche:snap

Conversation

@philroche
Copy link

snapcraft.yaml added for producing snap of fswebcam

Using the Snapcraft packaging tool for snappy and the snapcraft.yaml file you can
now build an fswebcam snap and install on any OS with snappy installed.
See http://snapcraft.io/ for more details on snappy.

I have pushed the resulting snap to the snap store - https://myapps.developer.ubuntu.com/dev/click-apps/5794/ . I am currently the owner of that snap but I am happy to transfer to you.

Steps to install from store:
$ sudo snap login %YOURLAUNCHPADUSERSEMAILADDRESS%
$ snap install fswebcam
$ sudo snap connect fswebcam:camera ubuntu-core:camera

Steps to build and install from local:
$ sudo apt install snapcraft
$ git clone git@github.com:philroche/fswebcam.git
$ git checkout snap
$ snapcraft
$ snapcraft install fswebcam_0_amd64.snap --devmode
$ /snap/bin/fswebcam photo.jpg

Philip Roche added 3 commits August 25, 2016 10:55
Using the Snapcraft packaging tool for snappy and the snapcraft.yaml file you can
now build an fswebcam snap and install on any OS with snappy installed.
See http://snapcraft.io/ for more details on snappy.

The current snapcraft.yaml will only work in devmode which is much more
permissive than strict mode. A version using strict mode will follow soon.

Steps:
$ sudo apt install snapcraft
$ git clone git@github.com:philroche/fswebcam.git
$ snapcraft
$ snapcraft install fswebcam_0_amd64.snap --devmode
$ /snap/bin/fswebcam photo.jpg
To use strict mode you must connect the camera interface manually.
See steps below for usage.

Steps to use:
$ snapcraft
$ snap install fswebcam_1_amd64.snap --devmode
$ sudo snap connect fswebcam:camera ubuntu-core:camera
$ /snap/bin/fswebcam photo.jpg
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant