linux: Appimage packaging

Move some files around, so that AppImages can be packaged inside a .deb for convenience.
This commit is contained in:
Tom Dewey 2024-09-09 16:33:45 +01:00 committed by Tom Dewey
parent b6cab0f7d1
commit 9264c19f76
12 changed files with 61 additions and 31 deletions

View file

@ -457,15 +457,10 @@ else()
endif()
endif()
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/linux/rpi-imager.metainfo.xml.in"
"${CMAKE_CURRENT_BINARY_DIR}/rpi-imager.metainfo.xml"
@ONLY)
install(TARGETS rpi-imager DESTINATION bin)
install(FILES icons/rpi-imager.png DESTINATION share/icons/hicolor/128x128/apps)
install(FILES linux/org.raspberrypi.rpi-imager.desktop DESTINATION share/applications)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/rpi-imager.metainfo.xml" DESTINATION share/metainfo)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
install(FILES "${CMAKE_CURRENT_LIST_DIR}/../debian/rpi-imager.png" DESTINATION share/icons/hicolor/128x128/apps)
install(FILES "linux/org.raspberrypi.rpi-imager.desktop" DESTINATION share/applications)
install(FILES "${CMAKE_CURRENT_LIST_DIR}/../debian/rpi-imager.metainfo.xml" DESTINATION share/metainfo)
endif()
include_directories(${CURL_INCLUDE_DIR} ${LibArchive_INCLUDE_DIR} ${LIBLZMA_INCLUDE_DIRS} ${LIBDRM_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${ZSTD_INCLUDE_DIR})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View file

@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Imager
Name=Raspberry Pi Imager
Name[zh_CN]=
Comment=Raspberry Pi Imager
Comment[zh_CN]=

View file

@ -1,63 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<component type="desktop-application">
<id>org.raspberrypi.rpi-imager</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>Apache-2.0</project_license>
<name>Raspberry Pi Imager</name>
<summary>Raspberry Pi imaging utility</summary>
<description>
<p>
Raspberry Pi Imager downloads a .JSON file from the Raspberry Pi
website with a list of all current download options, ensuring you are
always installing the most up-to-date version.
</p>
<p>
Once youve selected an operating system from the available options,
the utility reads the relevant file directly from the Raspberry Pi
website and writes it straight to the SD card. This speeds up the
process quite considerably compared to the standard process of reading
it from the website, writing it to a file on your hard drive, and then,
as a separate step, reading it back from the hard drive and writing it
to the SD card.
</p>
<p>
During this process, Raspberry Pi Imager also caches the downloaded
operating system image that is to say, it saves a local copy on your
computer, so you can program additional SD cards without having to
download the file again.
</p>
</description>
<launchable type="desktop-id">org.raspberrypi.rpi-imager.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>http://downloads.raspberrypi.org/imager/IMAGING-UTILITY-MAIN.png</image>
<caption>Main window</caption>
</screenshot>
<screenshot>
<image>http://downloads.raspberrypi.org/imager/IMAGING-UTILITY-OS.png</image>
<caption>Choose OS</caption>
</screenshot>
<screenshot>
<image>http://downloads.raspberrypi.org/imager/IMAGING-UTILITY-SD.png</image>
<caption>Choose SD</caption>
</screenshot>
<screenshot>
<image>http://downloads.raspberrypi.org/imager/IMAGING-UTILITY-WRITE.png</image>
<caption>Write in progress</caption>
</screenshot>
<screenshot>
<image>http://downloads.raspberrypi.org/imager/IMAGING-UTILITY-DONE.png</image>
<caption>Write done</caption>
</screenshot>
</screenshots>
<url type="homepage">https://github.com/raspberrypi/rpi-imager</url>
<provides>
<binary>rpi-imager</binary>
</provides>
<releases>
<release version="@IMAGER_VERSION_STR@" />
</releases>
<content_rating type="oars-1.1">
<content_attribute id="social-info">moderate</content_attribute>
</content_rating>
</component>