Skip to content

Commit

Permalink
update tool to generate metadata translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pazos committed May 25, 2024
1 parent 40814bf commit b614cee
Show file tree
Hide file tree
Showing 4 changed files with 310 additions and 53 deletions.
2 changes: 1 addition & 1 deletion make/appimage.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ update: all
$(SYMLINK) $(abspath $(APPIMAGE_DIR)/AppRun) $(INSTALL_DIR)/koreader/
$(SYMLINK) $(abspath $(APPIMAGE_DIR)/koreader.desktop) $(INSTALL_DIR)/koreader/
$(SYMLINK) $(abspath resources/koreader.png) $(INSTALL_DIR)/koreader/
sed -e 's/%%VERSION%%/$(VERSION)/' -e 's/%%DATE%%/$(RELEASE_DATE)/' $(APPIMAGE_DIR)/koreader.appdata.xml >$(INSTALL_DIR)/koreader/koreader.appdata.xml
sed -e 's/%%VERSION%%/$(VERSION)/' -e 's/%%DATE%%/$(RELEASE_DATE)/' $(PLATFORM_DIR)/common/koreader.metainfo.xml >$(INSTALL_DIR)/koreader/koreader.appdata.xml
# TODO at best this is DebUbuntu specific
$(SYMLINK) /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 $(INSTALL_DIR)/koreader/libs/libSDL2.so
# required for our stock Ubuntu SDL even though we don't use sound
Expand Down
3 changes: 2 additions & 1 deletion make/linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ update: all
$(INSTALL_DIR)/linux/bin \
$(INSTALL_DIR)/linux/lib \
$(INSTALL_DIR)/linux/share/pixmaps \
$(INSTALL_DIR)/linux/share/metainfo \
$(INSTALL_DIR)/linux/share/applications \
$(INSTALL_DIR)/linux/share/doc/koreader \
$(INSTALL_DIR)/linux/share/man/man1
sed -e 's/%%VERSION%%/$(VERSION)/' -e 's/%%DATE%%/$(RELEASE_DATE)/' $(PLATFORM_DIR)/appimage/koreader.appdata.xml >$(INSTALL_DIR)/linux/koreader.appdata.xml
sed -e 's/%%VERSION%%/$(VERSION)/g' -e 's/%%DATE%%/$(RELEASE_DATE)/' $(PLATFORM_DIR)/common/koreader.metainfo.xml >$(INSTALL_DIR)/linux/metainfo/koreader.metainfo.xml
cp -pv resources/koreader.png $(INSTALL_DIR)/linux/share/pixmaps
cp -pv $(LINUX_DIR)/koreader.desktop $(INSTALL_DIR)/linux/share/applications
cp -pv $(LINUX_DIR)/copyright COPYING $(INSTALL_DIR)/linux/share/doc/koreader
Expand Down
7 changes: 6 additions & 1 deletion platform/appimage/koreader.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@
<launchable type="desktop-id">rocks.koreader.KOReader.desktop</launchable>

<releases>
<release version="%%VERSION%%" date="%%DATE%%"/>
<release version="%%VERSION%%" date="%%DATE%%">
<description>
<p>Release notes are available on the link below</p>
</description>
<url>https://github.com/koreader/koreader/releases/tag/%%VERSION%%</url>
</release>
</releases>

<content_rating type="oars-1.1"/>
Expand Down

0 comments on commit b614cee

Please sign in to comment.