-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
44 lines (34 loc) · 1.2 KB
/
build.sh
File metadata and controls
44 lines (34 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
[ ! "${EUID}" = "0" ] && {
echo "Execute esse script como root:"
echo
echo " sudo ${0}"
echo
exit 1
}
HERE="$(dirname "$(readlink -f "${0}")")"
working_dir=$(mktemp -d)
mkdir -p "${working_dir}/usr/lib/tiger-os/"
mkdir -p "${working_dir}/usr/share/applications/"
mkdir -p "${working_dir}/DEBIAN/"
cp -v "${HERE}/jitsi-launcher.sh" "${working_dir}/usr/lib/tiger-os/"
cp -v "${HERE}/jitsi-web-launcher.sh" "${working_dir}/usr/lib/tiger-os/"
cp -v "${HERE}/jitsi.png" "${working_dir}/usr/lib/tiger-os/"
cp -v "${HERE}/jitsi-web-launcher.desktop" "${working_dir}/usr/share/applications/"
chmod +x "${working_dir}/usr/lib/tiger-os/jitsi-launcher.sh"
chmod +x "${working_dir}/usr/lib/tiger-os/jitsi-web-launcher.sh"
(
echo "Package: jitsi"
echo "Priority: optional"
echo "Version: $(date +%y.%m.%d%H%M%S)"
echo "Architecture: all"
echo "Maintainer: Daigo Asuka"
echo "Depends: "
echo "Description: Solução de videoconferência totalmente criptografada e 100% de código aberto"
echo
) > "${working_dir}/DEBIAN/control"
dpkg -b ${working_dir}
rm -rfv ${working_dir}
mv "${working_dir}.deb" "${HERE}/jitsi.deb"
chmod 777 "${HERE}/jitsi.deb"
chmod -x "${HERE}/jitsi.deb"