|
|
@ -300,10 +300,11 @@ OPTIONS:
|
|
|
|
|
|
|
|
|
|
|
|
-h=X, --screen-height=X set height of the emulator screen (default: 720)
|
|
|
|
-h=X, --screen-height=X set height of the emulator screen (default: 720)
|
|
|
|
-w=X, --screen-width=X set width of the emulator screen (default: 540)
|
|
|
|
-w=X, --screen-width=X set width of the emulator screen (default: 540)
|
|
|
|
|
|
|
|
-d=X, --screen-dpi=X set DPI of the emulator screen (default: 160)
|
|
|
|
--no-build run reader without rebuilding
|
|
|
|
--no-build run reader without rebuilding
|
|
|
|
--disable-touch use this if you want to simulate keyboard only devices
|
|
|
|
--disable-touch use this if you want to simulate keyboard only devices
|
|
|
|
-s=FOO --simulate=FOO simulate dimension and other specs for a given device model
|
|
|
|
-s=FOO --simulate=FOO simulate dimension and other specs for a given device model
|
|
|
|
supported model: kobo-aura-one, kindle3
|
|
|
|
supported model: kobo-aura-one, kindle3, hidpi
|
|
|
|
"
|
|
|
|
"
|
|
|
|
screen_width=540
|
|
|
|
screen_width=540
|
|
|
|
screen_height=720
|
|
|
|
screen_height=720
|
|
|
@ -323,6 +324,9 @@ OPTIONS:
|
|
|
|
-h | --screen-height)
|
|
|
|
-h | --screen-height)
|
|
|
|
screen_height=${VALUE}
|
|
|
|
screen_height=${VALUE}
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
-d | --screen-dpi)
|
|
|
|
|
|
|
|
screen_dpi=${VALUE}
|
|
|
|
|
|
|
|
;;
|
|
|
|
-s | --simulate)
|
|
|
|
-s | --simulate)
|
|
|
|
device_model=${VALUE}
|
|
|
|
device_model=${VALUE}
|
|
|
|
case ${device_model} in
|
|
|
|
case ${device_model} in
|
|
|
@ -333,6 +337,12 @@ OPTIONS:
|
|
|
|
kobo-aura-one)
|
|
|
|
kobo-aura-one)
|
|
|
|
screen_width=1404
|
|
|
|
screen_width=1404
|
|
|
|
screen_height=1872
|
|
|
|
screen_height=1872
|
|
|
|
|
|
|
|
screen_dpi=300
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
hidpi)
|
|
|
|
|
|
|
|
screen_width=1500
|
|
|
|
|
|
|
|
screen_height=2000
|
|
|
|
|
|
|
|
screen_dpi=600
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|
echo "ERROR: spec unknown for ${device_model}."
|
|
|
|
echo "ERROR: spec unknown for ${device_model}."
|
|
|
@ -375,7 +385,7 @@ OPTIONS:
|
|
|
|
|
|
|
|
|
|
|
|
RETURN_VALUE=85
|
|
|
|
RETURN_VALUE=85
|
|
|
|
while [ $RETURN_VALUE -eq 85 ]; do
|
|
|
|
while [ $RETURN_VALUE -eq 85 ]; do
|
|
|
|
EMULATE_READER_W=${screen_width} EMULATE_READER_H=${screen_height} \
|
|
|
|
EMULATE_READER_W=${screen_width} EMULATE_READER_H=${screen_height} EMULATE_READER_DPI=${screen_dpi} \
|
|
|
|
./reader.lua -d "$args"
|
|
|
|
./reader.lua -d "$args"
|
|
|
|
RETURN_VALUE=$?
|
|
|
|
RETURN_VALUE=$?
|
|
|
|
done
|
|
|
|
done
|
|
|
|