Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call update-desktop-database to refresh Oxide's application cache on install #700

Merged
merged 39 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
453c114
Update oxide to v2.6
Eeems Jun 5, 2023
fb0880f
Style fixes
Eeems Jun 5, 2023
57299ec
Add missing pkgnames
Eeems Jun 5, 2023
1bb631d
Update image paths
Eeems Jun 6, 2023
9732329
Fix liboxide path
Eeems Jun 6, 2023
96efba8
Don't check to see if tarnish is active
Eeems Jun 7, 2023
94af2a1
update-desktop-database for all applicaitons
Eeems Jun 7, 2023
d28a78f
Update build image for plato
Eeems Jun 8, 2023
64cd72b
Re-trigger CI
LinusCDE Jun 8, 2023
6162db9
Merge branch 'testing' into oxide
Eeems Jun 8, 2023
ebe8786
Merge branch 'oxide' into update-desktop-database
Eeems Jun 8, 2023
91e8570
Update to latest image for zoneinfo-utils
Eeems Jun 8, 2023
416f7ac
Add libc6 build dependency to zoneinfo-utils
Eeems Jun 9, 2023
d03d26d
Revert all changes to zoneinfo-utils
Eeems Jun 9, 2023
e1a01dc
Merge branch 'testing' into oxide
Eeems Jun 27, 2023
63fc1f7
Merge branch 'testing' into oxide
Eeems Jul 22, 2023
f819a09
Merge branch 'oxide' into update-desktop-database
Eeems Jul 26, 2023
0f6559a
Merge branch 'testing' into oxide
Eeems Aug 2, 2023
22f3905
Merge branch 'testing' into oxide
Eeems Aug 2, 2023
1574f8b
Merge branch 'oxide' into update-desktop-database
Eeems Aug 2, 2023
510ee94
Merge branch 'testing' into oxide
Eeems Aug 8, 2023
e30928f
Merge branch 'oxide' into update-desktop-database
Eeems Aug 8, 2023
dd56852
Update all packages to use install-lib method
Eeems Aug 14, 2023
b4c29ba
Fix formatting
Eeems Aug 14, 2023
cac6f6e
Also run oxide hook for draft apps
Eeems Aug 24, 2023
83397b5
Merge branch 'testing' into update-desktop-database
Eeems Aug 26, 2023
9d3ab83
Remove manual reload-oxide-apps calls
Eeems Aug 26, 2023
ee22aa4
Bump all other packages that have draft/oxide files
Eeems Aug 26, 2023
a5181f1
Format fixes
Eeems Aug 26, 2023
2287edc
Add back missing documentation change
Eeems Aug 26, 2023
27135d3
Don't update whiteboard-hypercard
Eeems Aug 26, 2023
2fa927a
Merge branch 'testing' into update-desktop-database
Eeems Oct 3, 2023
47917c8
Merge branch 'testing' into update-desktop-database
Eeems Oct 29, 2023
5b6a8a6
Revert folly version
Eeems Oct 29, 2023
333a7f0
Bump whiteboard-hypercard now that the build is fixed
Eeems Oct 29, 2023
f61b9d1
Merge branch 'testing' into update-desktop-database
Eeems Nov 12, 2023
8541ffc
Merge branch 'testing' into update-desktop-database
Jayy001 Nov 21, 2023
8914942
Bump xochitl version number
Eeems Nov 22, 2023
3b64b17
Use github for KOReader release
Eeems Nov 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,3 +440,12 @@ When upgrading a package from version A to B, the following happens:
* `postupgrade B`, if it exists, is called from version A
* New package files are unpacked and installed
* `configure`, if it exists, is called from version B


### reload-oxide-apps hook

If a package contains one or more files in `/opt/etc/draft` or `/opt/usr/share/applications` the `reload-oxide-apps` method in `install-lib` will be appended to the following:

* `configure`
* `postupgrade`
* `postremove`
2 changes: 1 addition & 1 deletion package/calculator/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(calculator)
pkgdesc="Touch-based calculator"
url=https://github.com/reHackable/Calculator
pkgver=0.0.0-15
pkgver=0.0.0-16
timestamp=2020-08-20T12:28Z
section="math"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/chessmarkable/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(chessmarkable)
pkgdesc="Chess game"
url=https://github.com/LinusCDE/chessmarkable
pkgver=0.8.0-1
pkgver=0.8.0-2
timestamp=2021-07-22T12:04Z
section="games"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/doomarkable/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(doomarkable)
pkgdesc="DOOM game"
url=https://github.com/LinusCDE/doomarkable
pkgver=0.4.1-1
pkgver=0.4.1-2
timestamp=2021-10-31T16:15Z
section="games"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/fingerterm/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(fingerterm)
pkgdesc="Terminal emulator with an on-screen touch keyboard"
url=https://github.com/dixonary/fingerterm-reMarkable
pkgver=1.3.5-14
pkgver=1.3.5-15
timestamp=2020-10-27T12:02Z
section="admin"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/keywriter/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(keywriter)
pkgdesc="Markdown-enabled free writing app"
url=https://github.com/dps/remarkable-keywriter
pkgver=0.2~20-gddc9e73-1
pkgver=0.2~20-gddc9e73-2
timestamp=2022-02-09T07:05:03Z
section="writing"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions package/koreader/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(koreader)
pkgdesc="Ebook reader supporting PDF, DjVu, EPUB, FB2 and many more formats"
url=https://github.com/koreader/koreader
pkgver=2023.08-1
pkgver=2023.08-2
timestamp=2023-08-29T16:21:01Z
section="readers"
maintainer="raisjn <[email protected]>"
Expand All @@ -14,7 +14,7 @@ installdepends=(fbink fbdepth display rm2fb-client)

_srcver="v${pkgver%-*}"
source=(
"https://build.koreader.rocks/download/stable/$_srcver/koreader-remarkable-$_srcver.zip"
"https://github.com/koreader/koreader/releases/download/$_srcver/koreader-remarkable-$_srcver.zip"
koreader.draft
KOReader.oxide
koreader-toltec.service
Expand Down
2 changes: 1 addition & 1 deletion package/netsurf/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(netsurf)
pkgdesc="Lightweight web browser"
url=https://github.com/alex0809/netsurf-reMarkable
pkgver=0.4.0-2
pkgver=0.4.0-3
timestamp=2021-05-31T11:15+00:00
maintainer="Alex Friesenhahn <[email protected]>"
archs=(rmall)
Expand Down
19 changes: 0 additions & 19 deletions package/oxide/package
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ fret() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/fret
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.fret.oxide
}

configure() {
update-desktop-database
}
}

oxide() {
Expand All @@ -66,9 +62,6 @@ oxide() {
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.oxide.oxide
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/702x702/splash "$srcdir"/release/opt/usr/share/icons/oxide/702x702/splash/oxide.png
}
configure() {
update-desktop-database
}
}

rot() {
Expand Down Expand Up @@ -128,10 +121,6 @@ decay() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/decay
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.decay.oxide
}

configure() {
update-desktop-database
}
}
corrupt() {
pkgdesc="Task Switcher for Oxide"
Expand All @@ -142,10 +131,6 @@ corrupt() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/corrupt
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.corrupt.oxide
}

configure() {
update-desktop-database
}
}

anxiety() {
Expand All @@ -159,10 +144,6 @@ anxiety() {
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/48x48/apps "$srcdir"/release/opt/usr/share/icons/oxide/48x48/apps/image.png
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/702x702/splash "$srcdir"/release/opt/usr/share/icons/oxide/702x702/splash/anxiety.png
}

configure() {
update-desktop-database
}
}

oxide-utils() {
Expand Down
2 changes: 1 addition & 1 deletion package/plato/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(plato)
pkgdesc="Document reader"
url=https://github.com/LinusCDE/plato
pkgver=0.9.34-1
pkgver=0.9.34-2
timestamp=2023-03-08T17:58Z
section="readers"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/puzzles/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(puzzles)
timestamp=2021-03-04T14:03-08:00
maintainer="Mattéo Delabre <[email protected]>"
pkgver=0.2.2-3
pkgver=0.2.2-4
license=MIT
pkgdesc="Simon Tatham's Puzzle Package"
url="https://github.com/mrichards42/remarkable_puzzles"
Expand Down
2 changes: 1 addition & 1 deletion package/recrossable/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(recrossable)
pkgdesc="Solve crossword puzzles"
url=https://github.com/sandsmark/recrossable
pkgver=0.0.0-7
pkgver=0.0.0-8
timestamp=2021-01-15T12:58:22Z
section="games"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/regenda/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(regenda)
pkgdesc="Caldav agenda app"
url=https://github.com/tenJirka/reGenda
pkgver=0.0.2-1
pkgver=0.0.2-2
timestamp=2023-09-06T06:45Z
section="utils"
maintainer="tenJirka <[email protected]>"
Expand Down
8 changes: 1 addition & 7 deletions package/reterm/package
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgnames=(reterm)
pkgdesc="Landscape terminal support for the Remarkable 2 + type cover"
section="admin"
pkgver="20230628.1927-1"
pkgver="20230628.1927-2"
timestamp="2023-06-28T19:28:06Z"
maintainer="Eeems <[email protected]>"
url="https://github.com/i-am-shodan/ReTerm"
Expand Down Expand Up @@ -49,9 +49,3 @@ package() {
install -D -m 644 -t "$pkgdir"/opt/etc/draft/icons "$srcdir"/draft/reterm.png
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/oxide/reterm.oxide
}

configure() {
if is-active "tarnish.service"; then
type update-desktop-database &> /dev/null && update-desktop-database
fi
}
2 changes: 1 addition & 1 deletion package/retris/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(retris)
pkgdesc="Tetris game"
url=https://github.com/LinusCDE/retris
pkgver=0.6.3-3
pkgver=0.6.3-4
timestamp=2021-01-30T02:41Z
section="games"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/rmfm/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(rmfm)
pkgdesc="Bare-bones file manager using Node.js and sas"
url="https://forgejo.sny.sh/sun/rmFM"
pkgver=1.5.0-1
pkgver=1.5.0-2
timestamp=2023-08-08T22:19:23+02:00
section=utils
maintainer="Sunny <[email protected]>"
Expand Down
15 changes: 6 additions & 9 deletions package/rmkit/package
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ bufshot() {
dumbskull() {
pkgdesc="Dungeon Crawl themed Solitaire"
url="https://rmkit.dev/apps/dumbskull"
pkgver=0.0.1-2
pkgver=0.0.1-3
section="games"

package() {
install -D -m 755 "$srcdir"/src/build/dumbskull "$pkgdir"/opt/bin/dumbskull
install -D -m 644 "$srcdir"/src/dumbskull/dumbskull.draft "$pkgdir"/opt/etc/draft/dumbskull.draft
}

}

genie() {
Expand Down Expand Up @@ -80,7 +79,7 @@ genie() {
harmony() {
pkgdesc="Procedural sketching app"
url="https://rmkit.dev/apps/harmony"
pkgver=0.2.2-1
pkgver=0.2.2-2
section="drawing"

package() {
Expand Down Expand Up @@ -120,7 +119,7 @@ lamp() {
mines() {
pkgdesc="Mine detection game"
url="https://rmkit.dev/apps/minesweeper"
pkgver=0.1.4-2
pkgver=0.1.4-3
section="games"

package() {
Expand All @@ -133,7 +132,7 @@ mines() {
nao() {
pkgdesc="Nao Package Manager: opkg UI built with SAS"
url="https://rmkit.dev/apps/nao"
pkgver=0.1.2-3
pkgver=0.1.2-4
section="admin"
installdepends+=(simple)

Expand Down Expand Up @@ -179,15 +178,14 @@ remux() {
rpncalc() {
pkgdesc="RPN Calculator"
url="https://rmkit.dev/apps/rpncalc"
pkgver=0.0.3-2
pkgver=0.0.3-3
section="math"

package() {
install -D -m 755 "$srcdir"/src/build/rpncalc "$pkgdir"/opt/bin/rpncalc
install -D -m 644 "$srcdir"/src/rpncalc/rpncalc.draft "$pkgdir"/opt/etc/draft/rpncalc.draft
install -D -m 644 "$srcdir"/src/rpncalc/rpncalc.png "$pkgdir"/opt/etc/draft/icons/rpncalc.png
}

}

simple() {
Expand All @@ -204,12 +202,11 @@ simple() {
wordlet() {
pkgdesc="Wordle clone"
url="https://rmkit.dev/apps/wordlet"
pkgver=0.0.2-2
pkgver=0.0.2-3
section="games"

package() {
install -D -m 755 "$srcdir"/src/build/wordlet "$pkgdir"/opt/bin/wordlet
install -D -m 644 "$srcdir"/src/wordlet/wordlet.draft "$pkgdir"/opt/etc/draft/wordlet.draft
}

}
2 changes: 1 addition & 1 deletion package/sill/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(sill)
pkgdesc="Gesture-based text editor (and shell) for the reMarkable tablet"
url=https://github.com/bkirwi/sill
pkgver=0.1.1-alpha
pkgver=0.1.1-1
section="writing"
timestamp=2023-08-12T00:00Z
maintainer="Kai <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/tilem/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(tilem)
pkgdesc="TI-84+ calculator emulator"
url=https://github.com/timower/rM2-stuff/tree/master/apps/tilem
pkgver=0.0.7-2
pkgver=0.0.7-3
timestamp=2021-04-30T10:42Z
maintainer="Mattéo Delabre <[email protected]>"
license=GPL-3.0
Expand Down
2 changes: 1 addition & 1 deletion package/vnsee/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(vnsee)
pkgdesc="VNC client allowing you to use the device as a second screen"
url=https://github.com/matteodelabre/vnsee
pkgver=0.4.1-1
pkgver=0.4.1-2
timestamp=2021-08-29T13:45:26Z
section="screensharing"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/whiteboard-hypercard/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(whiteboard-hypercard)
pkgdesc="Real-time collaboration, drawing or whiteboarding"
url=https://github.com/fenollp/reMarkable-tools
pkgver=0.3.7-1
pkgver=0.3.7-2
timestamp=2023-10-11T12:57Z
section="drawing"
maintainer="Pierre Fenoll <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/wikipedia/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(wikipedia)
pkgdesc="The free encyclopedia"
url=https://github.com/dps/remarkable-wikipedia
pkgver=0.1.0-3
pkgver=0.1.0-4
timestamp=2021-03-11T04:50Z
section="readers"
maintainer="David Singleton <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/xochitl/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(xochitl)
pkgdesc="Read documents and take notes"
url=https://remarkable.com
pkgver=0.0.0-15
pkgver=0.0.0-16
timestamp=2022-11-07T20:19:57Z
section="readers"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/yaft/package
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pkgnames=(yaft)
pkgdesc="Yet another framebuffer terminal"
url=https://github.com/timower/rM2-stuff/tree/master/apps/yaft
_tag=0.0.10
pkgver=${_tag}-1
pkgver=${_tag}-2
timestamp=2023-08-12T14:31Z
maintainer="Mattéo Delabre <[email protected]>"
license=GPL-3.0
Expand Down
2 changes: 1 addition & 1 deletion package/zshelf/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(zshelf)
pkgdesc="Z-Library browser and downloader"
url=https://github.com/khanhas/zshelf
pkgver=0.3.1-3
pkgver=0.3.1-4
section=utils
timestamp=2021-02-20T01:45Z
maintainer="khanhas <[email protected]>"
Expand Down
12 changes: 10 additions & 2 deletions scripts/install-lib
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,18 @@ reload-oxide-apps() {
return
fi
echo -n "Reloading Oxide applications: "
if ! /opt/bin/rot apps call reload 2> /dev/null; then
echo "Failed!"
local ret
if type update-desktop-database &> /dev/null; then
update-desktop-database --quiet
ret=$?
else
/opt/bin/rot apps call reload 2> /dev/null
ret=$?
fi
if [ $ret -eq 0 ]; then
echo "Done!"
else
echo "Failed!"
fi
}

Expand Down
4 changes: 3 additions & 1 deletion scripts/toltec/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,9 @@ def _archive(self, package: Package, pkg_dir: str) -> None:
os.makedirs(ar_dir, exist_ok=True)

# Inject Oxide-specific hook for reloading apps
if os.path.exists(os.path.join(pkg_dir, "opt/usr/share/applications")):
if os.path.exists(
os.path.join(pkg_dir, "opt/usr/share/applications")
) or os.path.exists(os.path.join(pkg_dir, "opt/etc/draft")):
oxide_hook = "\nreload-oxide-apps\n"
package.functions["configure"] += oxide_hook
package.functions["postupgrade"] += oxide_hook
Expand Down