Move snap packaging bits into packaging/ subdirectory
This commit is contained in:
parent
4162e4b7b5
commit
03cb2fe4ff
3 changed files with 3 additions and 3 deletions
8
packaging/snap/snap/gui/anbox.desktop
Normal file
8
packaging/snap/snap/gui/anbox.desktop
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Anbox
|
||||
GenericName=Android in a box
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Icon=${SNAP}/meta/gui/icon.png
|
||||
Exec=anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
|
||||
Terminal=false
|
||||
BIN
packaging/snap/snap/gui/icon.png
Normal file
BIN
packaging/snap/snap/gui/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
115
packaging/snap/snapcraft.yaml
Normal file
115
packaging/snap/snapcraft.yaml
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
name: anbox
|
||||
version: 1-dev
|
||||
summary: Android in a Box
|
||||
description: |
|
||||
Runtime for Android applications which runs a full Android system
|
||||
in a container using Linux namespaces (user, ipc, net, mount) to
|
||||
separate the Android system fully from the host.
|
||||
confinement: devmode
|
||||
grade: devel
|
||||
|
||||
apps:
|
||||
anbox:
|
||||
command: bin/anbox-wrapper.sh
|
||||
container-manager:
|
||||
command: bin/container-manager.sh start
|
||||
stop-command: bin/container-manager.sh stop
|
||||
daemon: simple
|
||||
|
||||
parts:
|
||||
android-images:
|
||||
plugin: dump
|
||||
source: ../../android-images
|
||||
anbox-common:
|
||||
plugin: dump
|
||||
source: ../../scripts
|
||||
organize:
|
||||
snap-wrapper.sh: bin/anbox-wrapper.sh
|
||||
container-manager.sh: bin/container-manager.sh
|
||||
anbox-bridge.sh: bin/anbox-bridge.sh
|
||||
prime:
|
||||
- bin/anbox-bridge.sh
|
||||
- bin/anbox-wrapper.sh
|
||||
- bin/container-manager.sh
|
||||
apparmor:
|
||||
plugin: nil
|
||||
stage-packages:
|
||||
- apparmor
|
||||
lxc:
|
||||
source: https://github.com/lxc/lxc
|
||||
source-type: git
|
||||
source-tag: lxc-2.0.7
|
||||
build-packages:
|
||||
- libapparmor-dev
|
||||
- libcap-dev
|
||||
- libgnutls28-dev
|
||||
- libseccomp-dev
|
||||
- pkg-config
|
||||
plugin: autotools
|
||||
configflags:
|
||||
- --disable-selinux
|
||||
- --disable-python
|
||||
- --disable-lua
|
||||
- --disable-tests
|
||||
- --disable-examples
|
||||
- --disable-doc
|
||||
- --disable-api-docs
|
||||
- --disable-bash
|
||||
- --disable-cgmanager
|
||||
- --disable-apparmor
|
||||
- --disable-seccomp
|
||||
- --enable-capabilities
|
||||
- --with-rootfs-path=/var/snap/anbox/common/lxc/
|
||||
- --libexecdir=/snap/anbox/current/libexec/
|
||||
organize:
|
||||
snap/anbox/current/libexec: libexec
|
||||
prime:
|
||||
- lib/liblxc.so.1
|
||||
- lib/liblxc.so.1.2.0
|
||||
- libexec/lxc/lxc-monitord
|
||||
anbox:
|
||||
plugin: cmake
|
||||
after:
|
||||
- lxc
|
||||
source: ../../
|
||||
configflags:
|
||||
# FIXME: Anbox currently has some paths with hard coded prefixes. Once
|
||||
# that is fixed we can avoid using a prefix here.
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH=/usr
|
||||
build-packages:
|
||||
- build-essential
|
||||
- cmake
|
||||
- cmake-data
|
||||
- debhelper
|
||||
- dbus
|
||||
- google-mock
|
||||
- libboost-dev
|
||||
- libboost-filesystem-dev
|
||||
- libboost-log-dev
|
||||
- libboost-iostreams-dev
|
||||
- libboost-program-options-dev
|
||||
- libboost-system-dev
|
||||
- libboost-test-dev
|
||||
- libboost-thread-dev
|
||||
- libcap-dev
|
||||
- libdbus-1-dev
|
||||
- libdbus-cpp-dev
|
||||
- libegl1-mesa-dev
|
||||
- libgles2-mesa-dev
|
||||
- libglib2.0-dev
|
||||
- libglm-dev
|
||||
- libgtest-dev
|
||||
- libprotobuf-dev
|
||||
- libproperties-cpp-dev
|
||||
- libsdl2-dev
|
||||
- pkg-config
|
||||
- protobuf-compiler
|
||||
stage-packages:
|
||||
- libegl1-mesa
|
||||
- libgles2-mesa
|
||||
- libgl1-mesa-glx
|
||||
- libsdl2-2.0-0
|
||||
- libsdl2-gfx-1.0-0
|
||||
prime:
|
||||
- usr/bin/anbox
|
||||
- usr/lib/*-linux-*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue