mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
31 lines
1.3 KiB
Makefile
31 lines
1.3 KiB
Makefile
|
UBUNTUTOUCH_DIR = $(PLATFORM_DIR)/ubuntu-touch
|
||
|
UBUNTUTOUCH_SDL_DIR = $(UBUNTUTOUCH_DIR)/ubuntu-touch-sdl
|
||
|
|
||
|
update: all
|
||
|
# ensure that the binaries were built for ARM
|
||
|
file $(INSTALL_DIR)/koreader/luajit | grep ARM || exit 1
|
||
|
# remove old package if any
|
||
|
rm -f koreader-ubuntu-touch-$(MACHINE)-$(VERSION).click
|
||
|
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.sh $(INSTALL_DIR)/koreader
|
||
|
ln -sf ../../$(UBUNTUTOUCH_DIR)/manifest.json $(INSTALL_DIR)/koreader
|
||
|
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.apparmor $(INSTALL_DIR)/koreader
|
||
|
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.apparmor.openstore $(INSTALL_DIR)/koreader
|
||
|
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.desktop $(INSTALL_DIR)/koreader
|
||
|
ln -sf ../../$(UBUNTUTOUCH_DIR)/koreader.png $(INSTALL_DIR)/koreader
|
||
|
ln -sf ../../../$(UBUNTUTOUCH_DIR)/libSDL2.so $(INSTALL_DIR)/koreader/libs
|
||
|
# create new package
|
||
|
cd $(INSTALL_DIR) && pwd && \
|
||
|
zip -9 -r \
|
||
|
../koreader-$(DIST)-$(MACHINE)-$(VERSION).zip \
|
||
|
koreader -x "koreader/resources/fonts/*" "koreader/ota/*" \
|
||
|
"koreader/resources/icons/src/*" "koreader/spec/*" \
|
||
|
$(ZIP_EXCLUDE)
|
||
|
# generate ubuntu touch click package
|
||
|
rm -rf $(INSTALL_DIR)/tmp && mkdir -p $(INSTALL_DIR)/tmp
|
||
|
cd $(INSTALL_DIR)/tmp && \
|
||
|
unzip ../../koreader-$(DIST)-$(MACHINE)-$(VERSION).zip && \
|
||
|
click build koreader && \
|
||
|
mv *.click ../../koreader-$(DIST)-$(MACHINE)-$(VERSION).click
|
||
|
|
||
|
.PHONY: update
|