mirror of
https://github.com/koreader/koreader
synced 2024-11-13 19:11:25 +00:00
a60544b1ad
Currently only tested on Ubuntu-touch emulator with framework ubuntu-sdk-14.10 for armhf. The ubuntu-touch port is binary compatible with the Kobo port major changes in this PR are: 1. rename the emulator device to sdl device since both the emulator and the ubuntu-touch target use libsdl to handle input/output. 2. ubuntu-touch app has no write access to the installation dir so all write-outs should be in a seperate dir definded in `datastorage`.
32 lines
785 B
Bash
Executable File
32 lines
785 B
Bash
Executable File
#!/bin/sh
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
# working directory of koreader
|
|
KOREADER_DIR="${0%/*}"
|
|
|
|
# update to new version from OTA directory
|
|
NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar"
|
|
INSTALLED="${KOREADER_DIR}/ota/koreader.installed.tar"
|
|
if [ -f $NEWUPDATE ]; then
|
|
# TODO: any graphic indication for the updating progress?
|
|
cd .. && tar xf $NEWUPDATE && mv $NEWUPDATE $INSTALLED
|
|
fi
|
|
|
|
# we're always starting from our working directory
|
|
cd $KOREADER_DIR
|
|
|
|
# export load library path for some old firmware
|
|
export LD_LIBRARY_PATH=${KOREADER_DIR}/libs:$LD_LIBRARY_PATH
|
|
|
|
# export trained OCR data directory
|
|
export TESSDATA_PREFIX="data"
|
|
|
|
# export external font directory
|
|
export EXT_FONT_DIR="~/fonts"
|
|
|
|
# set fullscreen mode
|
|
export SDL_FULLSCREEN=1
|
|
|
|
./reader.lua -d ~/Documents
|
|
|