Initial infrastructure to create a click package
This commit is contained in:
parent
720b71f1e8
commit
016b9f6656
5 changed files with 54 additions and 0 deletions
27
create-click.sh
Executable file
27
create-click.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
if [ ! -e android-rootfs.tar ] ; then
|
||||
echo "ERROR: Missing Android rootfs package!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./cross-compile-chroot.sh -a armhf -d vivid
|
||||
|
||||
if [ -e click ] ; then
|
||||
rm -rf click
|
||||
fi
|
||||
|
||||
mkdir click
|
||||
cp data/manifest.json click/
|
||||
cp data/apparmor.json click/
|
||||
cp data/anbox.desktop click/
|
||||
|
||||
(cd click ; tar xf ../android-rootfs.tar ; mv rootfs android-rootfs)
|
||||
|
||||
cp build-armhf-vivid/src/anbox click/
|
||||
cp build-armhf-vivid/src/anbox-container click/
|
||||
|
||||
(cd click ; click build .)
|
||||
BIN
data/.manifest.json.swp
Normal file
BIN
data/.manifest.json.swp
Normal file
Binary file not shown.
7
data/anbox.desktop
Normal file
7
data/anbox.desktop
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Name=Anbox
|
||||
Exec=anbox run --rootfs=android-rootfs
|
||||
Icon=anbox.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-Ubuntu-Touch=true
|
||||
5
data/apparmor.json
Normal file
5
data/apparmor.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"policy_version": 1.3,
|
||||
"template": "unconfined",
|
||||
"policy_groups": []
|
||||
}
|
||||
15
data/manifest.json
Normal file
15
data/manifest.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"architecture": "armhf",
|
||||
"description": "Android in a Box - An application-based approach to run a full Android system",
|
||||
"framework": "ubuntu-sdk-15.04",
|
||||
"hooks": {
|
||||
"anbox": {
|
||||
"apparmor": "apparmor.json",
|
||||
"desktop": "anbox.desktop"
|
||||
}
|
||||
},
|
||||
"maintainer": "Simon Fels <morphis@gravedo.de>",
|
||||
"name": "org.anbox",
|
||||
"title": "Anbox",
|
||||
"version": "0.1"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue