Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linux datafiles and install target #40

Merged
merged 4 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ if(MINGW)
endif()

# Subprojects
add_subdirectory (libs)
add_subdirectory (libs EXCLUDE_FROM_ALL)
add_subdirectory (app)
12 changes: 11 additions & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@ if (APPLE)
target_sources(DeltaPatcher PRIVATE ${bundle_icon})
set_source_files_properties(${bundle_icon} PROPERTIES MACOSX_PACKAGE_LOCATION Resources/)
set_target_properties(DeltaPatcher PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/mac_stuff/Info.plist)
endif()
endif()

if(UNIX AND NOT APPLE)
install(TARGETS DeltaPatcher DESTINATION bin)
install(FILES linux_stuff/io.github.marco_calautti.DeltaPatcher.desktop DESTINATION share/applications)
install(FILES linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml DESTINATION share/metainfo)

foreach(SIZE "16" "24" "32" "48" "64" "128" "256")
install(FILES ../graphics/icon${SIZE}.png DESTINATION share/icons/hicolor/${SIZE}x${SIZE}/apps RENAME io.github.marco_calautti.DeltaPatcher.png)
endforeach()
endif()
10 changes: 10 additions & 0 deletions app/linux_stuff/io.github.marco_calautti.DeltaPatcher.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Created with jdDesktopEntryEdit 1.3
[Desktop Entry]
Type=Application
Name=Delta Patcher
GenericName=XDelta Patching Utility
Comment=Applies and creates patches in xdelta format
Icon=io.github.marco_calautti.DeltaPatcher
TryExec=DeltaPatcher
Exec=DeltaPatcher %f
Categories=Utility;
64 changes: 64 additions & 0 deletions app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version='1.0' encoding='utf-8'?>
<component type="desktop">
<!--Created with jdAppStreamEdit 8.0-->
<id>io.github.marco_calautti.DeltaPatcher</id>
<name>Delta Patcher</name>
<summary>Applies and creates patches in xdelta format</summary>
<developer_name>Marco Calautti</developer_name>
<launchable type="desktop-id">io.github.marco_calautti.DeltaPatcher.desktop</launchable>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
<description>
JakobDev marked this conversation as resolved.
Show resolved Hide resolved
<p>Delta Patcher is a GUI software that is able to create and apply xdelta patches as the ones supported by the xdelta tool developed by Joshua McDonald.</p>
</description>
<screenshots>
<screenshot type="default">
<image type="source">https://camo.githubusercontent.com/1ae80fce5add0b471914e86302cf9cfd2c27475870cc77f0094fe27e2a281860/68747470733a2f2f692e696d6775722e636f6d2f64516d547573782e706e67</image>
marco-calautti marked this conversation as resolved.
Show resolved Hide resolved
</screenshot>
</screenshots>
<releases>
<release version="3.1.2" date="2023-12-30" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1.2</url>
<description>
<ul>
<li>Log is now hidden by default: patch descriptions are shown in a tooltip when a patch is loaded.</li>
<li>For common patching errors (most notably checksum mismatch), a more user friendly message is shown to the user.</li>
</ul>
</description>
</release>
<release version="3.1.1" date="2023-12-28" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1.1</url>
</release>
<release version="3.1" date="2023-12-28" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1</url>
</release>
<release version="3.0.1" date="2022-09-10" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.0.1</url>
</release>
<release version="3.0.0" date="2022-08-27" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.0.0</url>
</release>
<release version="2.0.1" date="2017-07-19" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/2.0.1</url>
</release>
<release version="2.0b" date="2015-06-12" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/2.0b</url>
</release>
<release version="1.0" date="2014-11-06" type="stable">
<url>https://github.com/marco-calautti/DeltaPatcher/releases/tag/1.0</url>
</release>
</releases>
<url type="homepage">https://github.com/marco-calautti/DeltaPatcher</url>
<url type="bugtracker">https://github.com/marco-calautti/DeltaPatcher/issues</url>
<categories>
<category>Utility</category>
</categories>
<recommends>
<control>pointing</control>
<control>keyboard</control>
</recommends>
<content_rating type="oars-1.1"/>
<provides>
<binary>DeltaPatcher</binary>
</provides>
</component>