Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to build snap of fswebcam #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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 [email protected]: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 [email protected]: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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant