From e47cc412171e6863e6ef0a3316d3a9446be892b0 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Wed, 3 Jan 2024 13:01:39 +0100 Subject: [PATCH 1/4] Add linux datafiles and install target --- app/CMakeLists.txt | 10 ++- ...github.marco_calautti.DeltaPatcher.desktop | 10 +++ ...b.marco_calautti.DeltaPatcher.metainfo.xml | 66 +++++++++++++++++++ 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 app/linux_stuff/io.github.marco_calautti.DeltaPatcher.desktop create mode 100644 app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index f1c025a..8a7288e 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -15,4 +15,12 @@ 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() \ No newline at end of file +endif() + +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() diff --git a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.desktop b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.desktop new file mode 100644 index 0000000..4f86017 --- /dev/null +++ b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.desktop @@ -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; diff --git a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml new file mode 100644 index 0000000..4261fba --- /dev/null +++ b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml @@ -0,0 +1,66 @@ + + + + io.github.marco_calautti.DeltaPatcher + Delta Patcher + Applies and creates patches in xdelta format + Marco Calautti + io.github.marco_calautti.DeltaPatcher.desktop + CC0-1.0 + GPL-2.0 + +

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.

+

Delta patcher is fully self-contained and does not depend on the xdelta3 tool at all. This sets Delta Patcher apart from all other tools out there that are just frontends to the xdelta3 binary. Moreover, such frontends do not support some options of the encoder/decoder at all, like main and secondary compression level for encoding and checksum checking for decoding/encoding. Also, they are all written in .NET (0_0).

+

So, this tool was designed to be self-contained (for Windows, MacOS and GTK-based Linux systems). It's written in C++ using wxWidgets for the GUI components and all the needed libraries are statically linked to the executable (except for GTK for linux builds). Last, but not the least, Delta Patcher is GPL2'd and cross-platform: it runs fine on Windows, Linux and MacOS.

+
+ + + https://camo.githubusercontent.com/1ae80fce5add0b471914e86302cf9cfd2c27475870cc77f0094fe27e2a281860/68747470733a2f2f692e696d6775722e636f6d2f64516d547573782e706e67 + + + + + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1.2 + +
    +
  • Log is now hidden by default: patch descriptions are shown in a tooltip when a patch is loaded.
  • +
  • For common patching errors (most notably checksum mismatch), a more user friendly message is shown to the user.
  • +
+
+
+ + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1.1 + + + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1 + + + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.0.1 + + + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.0.0 + + + https://github.com/marco-calautti/DeltaPatcher/releases/tag/2.0.1 + + + https://github.com/marco-calautti/DeltaPatcher/releases/tag/2.0b + + + https://github.com/marco-calautti/DeltaPatcher/releases/tag/1.0 + +
+ https://github.com/marco-calautti/DeltaPatcher + https://github.com/marco-calautti/DeltaPatcher/issues + + Utility + + + pointing + keyboard + + + + DeltaPatcher + +
From 3316552da3b312774a150213914e9a4987bc70e6 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Wed, 3 Jan 2024 13:40:44 +0100 Subject: [PATCH 2/4] Fix Release names --- .../io.github.marco_calautti.DeltaPatcher.metainfo.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml index 4261fba..d1414b0 100644 --- a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml +++ b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml @@ -19,7 +19,7 @@ - + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1.2
    @@ -28,16 +28,16 @@
- + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1.1 - + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.1 - + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.0.1 - + https://github.com/marco-calautti/DeltaPatcher/releases/tag/v3.0.0 From a70f7eab2dd6be8f64796f9b691a896ff9614ff4 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Wed, 3 Jan 2024 15:05:25 +0100 Subject: [PATCH 3/4] Only use first paragraph --- .../io.github.marco_calautti.DeltaPatcher.metainfo.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml index d1414b0..c1c47e0 100644 --- a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml +++ b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml @@ -10,9 +10,6 @@ GPL-2.0

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.

-

Delta patcher is fully self-contained and does not depend on the xdelta3 tool at all. This sets Delta Patcher apart from all other tools out there that are just frontends to the xdelta3 binary. Moreover, such frontends do not support some options of the encoder/decoder at all, like main and secondary compression level for encoding and checksum checking for decoding/encoding. Also, they are all written in .NET (0_0).

-

So, this tool was designed to be self-contained (for Windows, MacOS and GTK-based Linux systems). It's written in C++ using wxWidgets for the GUI components and all the needed libraries are statically linked to the executable (except for GTK for linux builds). Last, but not the least, Delta Patcher is GPL2'd and cross-platform: it runs fine on Windows, Linux and MacOS.

-
https://camo.githubusercontent.com/1ae80fce5add0b471914e86302cf9cfd2c27475870cc77f0094fe27e2a281860/68747470733a2f2f692e696d6775722e636f6d2f64516d547573782e706e67 From 4aff9378bb5eb31fbe2cf0b31480565f0a8d6050 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Wed, 3 Jan 2024 16:26:13 +0100 Subject: [PATCH 4/4] Update files --- CMakeLists.txt | 2 +- app/CMakeLists.txt | 14 ++++++++------ ...github.marco_calautti.DeltaPatcher.metainfo.xml | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13e12c3..143d78b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,5 +9,5 @@ if(MINGW) endif() # Subprojects -add_subdirectory (libs) +add_subdirectory (libs EXCLUDE_FROM_ALL) add_subdirectory (app) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 8a7288e..877d838 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -17,10 +17,12 @@ if (APPLE) set_target_properties(DeltaPatcher PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/mac_stuff/Info.plist) endif() -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) +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() + 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() diff --git a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml index c1c47e0..8a2646c 100644 --- a/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml +++ b/app/linux_stuff/io.github.marco_calautti.DeltaPatcher.metainfo.xml @@ -10,6 +10,7 @@ GPL-2.0

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.

+
https://camo.githubusercontent.com/1ae80fce5add0b471914e86302cf9cfd2c27475870cc77f0094fe27e2a281860/68747470733a2f2f692e696d6775722e636f6d2f64516d547573782e706e67