# Working with a snap file

## Creating a snap file

Use in the source code root directory the command

    qmake
    snapcraft cleanbuild

This creates a file with the format name "speckleonline_[VERSION]_[ARCHITECTURE].snap", by example: speckleonline_1.2.2_i386.snap or speckleonline_1.2.2_amd64.snap.

## Instaling the snap file

To install the speckleonline program from a snap file use the next commands, to 64 bits machines:

    sudo snap install --dangerous speckleonline_0.1.0_amd64.snap
    sudo snap connect speckleonline:raw-usb
    sudo snap connect speckleonline:camera


## Run the speckleonline program

    speckleonline


## Uninstall the speckleonline program

    sudo snap remove speckleonline

## Debug  the speckleonline program

    sudo /snap/bin/snappy-debug.security scanlog speckleonline

