|
2013-03-23
, 06:24
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#22
|
OK, you can do it like this..
1. Before packaging you need your_package.aegis file that include this:
2. The .desktop file should look like this:Code:<aegis> <request policy="add"> <credential name="UID::root" /> <credential name="GID::root" /> <credential name="GRP::root" /> <for path="/opt/mytheme/changer/script.sh" /> </request> </aegis>
Code:[Desktop Entry] Type=Application Name=My Theme Exec=/usr/bin/aegis-exec -s -u user -l "/opt/mytheme/changer/script.sh" Icon=/opt/mytheme/icon/icon.png X-Window-Icon= X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
|
2013-03-23
, 06:25
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#23
|
The Following 2 Users Say Thank You to coderus For This Useful Post: | ||
|
2013-03-23
, 09:19
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#24
|
|
2013-03-23
, 10:59
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#25
|
|
2013-03-23
, 11:17
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#26
|
@flotron. how you packaging to geb? you can use aegis-deb-add to inject aegis manifest ot existing deb package.
|
2013-03-23
, 19:44
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#27
|
Can you write please the full command how to do it? And first he need to create the aegis manifest file?
#!/bin/sh #create .deb files for packages (fremantle&harmattan) if [ ! $1 ];then echo Create .deb files for fremantle and harmattan devices echo Usage: make-deb /path/to/package exit 0 fi #step in package directory chdir "$1" #versionnumber and packagename from control file packagename=`grep "Package: " DEBIAN/control | cut -d ' ' -f 2` versionnumber=`grep "Version: " DEBIAN/control | cut -d ' ' -f 2` #remove old md5 and digsig sums rm -f DEBIAN/md5sums 2>/dev/null rm -f DEBIAN/digsigsums 2>/dev/null #list all folders except DEBIAN find | grep -v "./DEBIAN" > ../md5 #get md5 and digsig sums to DEBIAN/ while read line do if [ -f "$line" ]; then #cut "./" from beginning line=`echo "$line" | cut -c 3-` #get md5 md5sum "$line" >> DEBIAN/md5sums #get sha1 for digital signatures echo S 15 com.nokia.maemo H 40 `sha1sum "$line" | cut -c -40` R `expr length "$line"` $line >> DEBIAN/digsigsums fi done < "../md5" #remove temp file list rm -f ../md5 #package control.tar.gz and data.tar.gz tar -cvzf ../control.tar.gz -C DEBIAN/ . >/dev/null tar -cvzf ../data.tar.gz . --exclude=DEBIAN >/dev/null echo 2.0>../debian-binary #step outside package folder cd .. #create debian archive "package_version.deb" ar -rcv $packagename"_"$versionnumber.deb debian-binary control.tar.gz data.tar.gz >/dev/null #remove packaged files rm -f debian-binary control.tar.gz data.tar.gz 2>/dev/null
|
2013-03-23
, 20:13
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#28
|
The Following User Says Thank You to Schturman For This Useful Post: | ||
|
2013-03-23
, 20:21
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#29
|
|
2013-03-23
, 20:53
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#30
|
The Following User Says Thank You to Schturman For This Useful Post: | ||
Tags |
chmod, debian, permission, script, theme |
|
Lausanne & Lyon de descente...
----------------
Schturman's home page
Schturman's repo on openrepos
RPM packaging directly on your Jolla phone.
Root & User SSH access to Jolla via WinSCP.
Root and User SSH access to Jolla via Nautilus on Linux PC.