I have simple C++ daemon (backup app) and it use 2 libraries. I want make snap for it. Now I have my project stored locally, but I got an error:
$ snapcraft --debug Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory. Launching a VM. snap "core18" has no updates available Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory. Failed to pull source: unable to determine source type of 'Src/Libs/Common'. Check that the URL is correct or consider specifying `source-type` for this part. See `snapcraft help sources` for more information. I suppose I wrongly set source or source-subdir variables. I assume those variables are related to ../ directory where snapcraft.yaml is stored (in my case it is Snap dir). My snapcraft.yaml file is as follow: name: backup version: '0.1' summary: Simple backup daemon description: | Simple backup daemon. grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots base: core18 apps: kopia: command: desktop-launch $SNAP/bin/Kopia # environment: # LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/local/lib parts: smtpclient: plugin: qmake source: Src/Libs/SmtpClient-for-Qt-1.1 source-subdir: Src/Libs/SmtpClient-for-Qt-1.1 common: plugin: qmake source: Src/Libs/Common source-subdir: Src/Libs/Common kopia: after: [desktop-qt5, common, smtpclient] plugin: qmake source: Src/Kopia/ source-subdir: Src/Kopia/ options: [LIBS+=-L../../../stage/usr/local/lib] # options: [QT_INSTALL_LIBS=../../../stage/usr/local/lib] build-packages: - build-essential - qttools5-dev stage-packages: - coreutils - p7zip - libqt5core5a - libqt5network5 - libxcomposite1 - libxcursor1 - libxinerama1 - libxrandr2 - libatk1.0-0 - libgtk2.0-0
My questions are:
- Is this allowed to create snap from simple local file system based C++ project?
- Do I have to create git repository in order to properly create snap?