Notes/Wiki/SnapCraft.md
2022-05-23 19:31:55 +02:00

1.5 KiB

utworzone tag
2022-05-17 wikipage

referencje:: Linux

Doc

https://snapcraft.io/docs/build-on-lxd

https://askubuntu.com/questions/1061801/not-able-to-create-snap-with-executable

https://snapcraft.io/docs

https://community.kde.org/Guidelines_and_HOWTOs/Snap

Chromium

https://launchpad.net/chromium-browser

https://code.launchpad.net/~chromium-team/chromium-browser/+git/snap-from-source?_ga=2.10487537.49065143.1571746636-2142709030.1571746636

Inicjalizacja

sudo snap install snapcraft
snapcraft init

Konfiguracja

architectures:
  - build-on: all
    run-on: [amd64, i386, armhf]

snap/snapcraft.yaml

Budowanie

Używając aktualnie zainstalowanego ubuntu

snapcraft --destructive-mode

Inne

Shell snapa

snap run --shell <snap>.<command>

Przepakowanie

https://forum.snapcraft.io/t/chromium-configurable-launch-flags/10278/14

snap download chromium
unsquashfs chromium_*.snap
# edit squashfs-root/meta/snap.yaml to add the plug and save
snapcraft pack squashfs-root