Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit b14036a

Browse files
committed
firmware compatibility of uninstall package
1 parent ba5aa86 commit b14036a

6 files changed

+114
-98
lines changed

ChangeLog.txt

+92-88
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,92 @@
1-
2014-03-09 01:41 chrox
2-
3-
* add support for Kindle PaperWhite 5.4.4
4-
5-
2013-12-01 17:56 chrox
6-
7-
* add more models support for PaperWhite 2
8-
9-
2013-11-21 16:44 chrox
10-
11-
* add support for PaperWhite 2
12-
13-
2013-08-11 23:41 chrox
14-
15-
* disable dictionary backend
16-
17-
2013-07-12 21:14 chrox
18-
19-
* keep current location of native doc browser when launching koreader
20-
21-
2013-06-13 16:29 chrox
22-
23-
* add booklet counter to avoid blank screen
24-
25-
2013-04-25 17:16 chrox
26-
27-
* add dictionary backend for 5.3.5
28-
29-
2013-04-21 16:41 chrox
30-
31-
* enable pillow after starting koreader
32-
33-
2013-04-21 15:47 chrox
34-
35-
* add dictionary backend for 5.3.4
36-
37-
2013-04-16 15:13 chrox
38-
39-
* bugfix parsing float string from certain locales
40-
41-
2013-03-20 18:27 chrox
42-
43-
* add support for KOReader
44-
45-
2013-01-27 18:27 chrox
46-
47-
* add support for Japanese and Canadian 3G PaperWhite
48-
49-
2013-01-21 17:53 chrox
50-
51-
* add a lipc interface on dictionary backend
52-
53-
2013-01-21 00:11 chrox
54-
55-
* open txt and html documents with native reader
56-
57-
2013-01-20 23:12 chrox
58-
59-
* add dictionary backend
60-
61-
2013-01-17 17:35 chrox
62-
63-
* add detail view for additional document formats
64-
65-
2013-01-11 21:43 chrox
66-
67-
* add a backdoor to native PDF reader
68-
69-
2013-01-09 19:25 chrox
70-
71-
* use enumeration approach to find request method
72-
73-
2013-01-08 10:27 chrox
74-
75-
* bugfix booklet handler for Kindle Touch
76-
77-
2013-01-07 23:13 chrox
78-
79-
* add extractors for Kindle Touch
80-
81-
2013-01-07 17:16 chrox
82-
83-
* build update for Kindle Touch 5.1.2
84-
85-
2013-01-07 00:02 chrox
86-
87-
* build update for Kindle Paperwhite 5.3.1
88-
1+
2014-10-11 14:29 chrox
2+
3+
* add support for more models of PaperWhite 2
4+
5+
2014-03-09 01:41 chrox
6+
7+
* add support for Kindle PaperWhite 5.4.4
8+
9+
2013-12-01 17:56 chrox
10+
11+
* add more models support for PaperWhite 2
12+
13+
2013-11-21 16:44 chrox
14+
15+
* add support for PaperWhite 2
16+
17+
2013-08-11 23:41 chrox
18+
19+
* disable dictionary backend
20+
21+
2013-07-12 21:14 chrox
22+
23+
* keep current location of native doc browser when launching koreader
24+
25+
2013-06-13 16:29 chrox
26+
27+
* add booklet counter to avoid blank screen
28+
29+
2013-04-25 17:16 chrox
30+
31+
* add dictionary backend for 5.3.5
32+
33+
2013-04-21 16:41 chrox
34+
35+
* enable pillow after starting koreader
36+
37+
2013-04-21 15:47 chrox
38+
39+
* add dictionary backend for 5.3.4
40+
41+
2013-04-16 15:13 chrox
42+
43+
* bugfix parsing float string from certain locales
44+
45+
2013-03-20 18:27 chrox
46+
47+
* add support for KOReader
48+
49+
2013-01-27 18:27 chrox
50+
51+
* add support for Japanese and Canadian 3G PaperWhite
52+
53+
2013-01-21 17:53 chrox
54+
55+
* add a lipc interface on dictionary backend
56+
57+
2013-01-21 00:11 chrox
58+
59+
* open txt and html documents with native reader
60+
61+
2013-01-20 23:12 chrox
62+
63+
* add dictionary backend
64+
65+
2013-01-17 17:35 chrox
66+
67+
* add detail view for additional document formats
68+
69+
2013-01-11 21:43 chrox
70+
71+
* add a backdoor to native PDF reader
72+
73+
2013-01-09 19:25 chrox
74+
75+
* use enumeration approach to find request method
76+
77+
2013-01-08 10:27 chrox
78+
79+
* bugfix booklet handler for Kindle Touch
80+
81+
2013-01-07 23:13 chrox
82+
83+
* add extractors for Kindle Touch
84+
85+
2013-01-07 17:16 chrox
86+
87+
* build update for Kindle Touch 5.1.2
88+
89+
2013-01-07 00:02 chrox
90+
91+
* build update for Kindle Paperwhite 5.3.1
92+

build-updates.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
HACKNAME="kpvbooklet"
44
PKGNAME="${HACKNAME}"
5-
PKGVER="0.5.4"
5+
PKGVER="0.5.5"
66

77
# We need kindletool (https://github.com/NiLuJe/KindleTool) in $PATH
88
if (( $(kindletool version | wc -l) == 1 )) ; then
@@ -27,9 +27,10 @@ fi
2727

2828
cp -f install.ffs build/install/install.ffs
2929
cp -f build/jar/KPVBooklet.jar build/install/KPVBooklet.jar
30-
cp -f mimes.sql build/install/mimes.sql
30+
cp -f mimes.install.sql build/install/mimes.install.sql
3131

3232
cp -f uninstall.ffs build/uninstall/uninstall.ffs
33+
cp -f mimes.uninstall.sql build/uninstall/mimes.uninstall.sql
3334

3435
## K5
3536
# Install

install.ffs

+2-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@ if [ "$VERSION" == "5.1.2" ]; then
4141
done
4242
fi
4343

44-
progress 40 "Backuping appreg.db"
45-
[ ! -f /var/local/appreg.db.bak ] && cp /var/local/appreg.db /var/local/appreg.db.bak
46-
47-
progress 60 "Updating appreg.db"
48-
sqlite3 /var/local/appreg.db < mimes.sql
44+
progress 40 "Updating appreg.db"
45+
sqlite3 /var/local/appreg.db < mimes.install.sql
4946

5047
if [ "$VERSION" \> "5.4" ]; then
5148
progress 70 "Creating the userstore exec flag file"

mimes.sql mimes.install.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
INSERT INTO "handlerIds" VALUES('com.github.koreader.kpvbooklet');
22
INSERT INTO "properties" VALUES('com.github.koreader.kpvbooklet','lipcId','com.github.koreader.kpvbooklet');
3-
INSERT INTO "properties" VALUES('com.github.koreader.kpvbooklet','jar','/opt/amazon/ebook/booklet/KPVBooklet.jar');
3+
INSERT INTO "properties" VALUES('com.github.koreader.kpvbooklet','jar','/var/local/KPVBooklet.jar');
44
INSERT INTO "properties" VALUES('com.github.koreader.kpvbooklet','detailFactoryPath','/opt/amazon/ebook/lib/detail_view.jar');
55
INSERT INTO "properties" VALUES('com.github.koreader.kpvbooklet','detailFactoryClass','com.amazon.ebook.booklet.reader.impl.detail.ReaderDetailViewFactory');
66

mimes.uninstall.sql

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
DELETE FROM "handlerIds" WHERE handlerId='com.github.koreader.kpvbooklet' or handlerId='com.lab126.booklet.kpvbooklet';
2+
DELETE FROM "properties" WHERE handlerId='com.github.koreader.kpvbooklet' or handlerId='com.lab126.booklet.kpvbooklet';
3+
DELETE FROM "associations" WHERE handlerId='com.github.koreader.kpvbooklet' or handlerId='com.lab126.booklet.kpvbooklet';
4+
5+
DELETE FROM "mimetypes" WHERE ext='djvu' OR ext='epub' OR ext='cbz' OR ext='chm' OR ext='doc';
6+
DELETE FROM "mimetypes" WHERE ext='fb2' OR ext='pdb' OR ext='rtf' OR ext='tcr' OR ext='xps' OR ext='zip';
7+
DELETE FROM "extenstions" WHERE ext='djvu' OR ext='epub' OR ext='cbz' OR ext='chm' OR ext='doc';
8+
DELETE FROM "extenstions" WHERE ext='fb2' OR ext='pdb' OR ext='rtf' OR ext='tcr' OR ext='xps' OR ext='zip';
9+
DELETE FROM "properties" WHERE value='DjVu' OR value='EPUB' OR value='CBZ' OR value='CHM' OR value='DOC';
10+
DELETE FROM "properties" WHERE value='FB2' OR value='PDB' OR value='RTF' OR value='TCR' OR value='XPS' OR value='ZIP';
11+
DELETE FROM "associations" WHERE contentId='GL:*.djvu' OR contentId='GL:*.epub' OR contentId='GL:*.cbz' OR contentId='GL:*.chm';
12+
DELETE FROM "associations" WHERE contentId='GL:*.doc' OR contentId='GL:*.fb2' OR contentId='GL:*.pdb' OR contentId='GL:*.rtf';
13+
DELETE FROM "associations" WHERE contentId='GL:*.tcr' OR contentId='GL:*.xps' OR contentId='GL:*.zip';

uninstall.ffs

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ progress 10 "Mounting r/w"
2525
mntroot rw || fail "Unable to mount r/w"
2626

2727
progress 20 "Removing KPVBooklet.jar"
28-
[ -f /opt/amazon/ebook/booklet/KPVBooklet.jar ] && rm /opt/amazon/ebook/booklet/KPVBooklet.jar || fail "Unable to delete KPVBooklet.jar"
28+
[ -f /opt/amazon/ebook/booklet/KPVBooklet.jar ] && rm /opt/amazon/ebook/booklet/KPVBooklet.jar
2929

3030
if [ "$VERSION" == "5.1.2" ]; then
3131
progress 30 "Removing extractors"
@@ -39,7 +39,8 @@ if [ "$VERSION" == "5.1.2" ]; then
3939
fi
4040

4141
progress 50 "Restoring appreg.db"
42-
[ -f /var/local/appreg.db.bak ] && mv -f /var/local/appreg.db.bak /var/local/appreg.db || fail "Unable to restore appreg.db"
42+
[ -f /var/local/appreg.db.bak ] && rm -f /var/local/appreg.db.bak
43+
sqlite3 /var/local/appreg.db < mimes.uninstall.sql
4344

4445
progress 80 "Mounting ro"
4546
mntroot ro || fail "Unable to mount ro"

0 commit comments

Comments
 (0)