From d7f48102334f6515c750b94ecd7d6fd1fbf1a88c Mon Sep 17 00:00:00 2001 From: Gerry Ferdinandus Date: Tue, 12 Dec 2023 21:05:18 +0100 Subject: [PATCH 01/52] Fix: Text doesn't fit Under the private trackers tab. Some texts do not always fit in a certain font. [skip ci] --- source/code/main.lfm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/code/main.lfm b/source/code/main.lfm index b8b9bd1..a7a2be5 100644 --- a/source/code/main.lfm +++ b/source/code/main.lfm @@ -278,9 +278,9 @@ object FormTrackerModify: TFormTrackerModify Height = 21 Hint = 'Keep empty if you do not want to add or change anything.' Top = 56 - Width = 221 + Width = 240 EditLabel.Height = 13 - EditLabel.Width = 221 + EditLabel.Width = 240 EditLabel.Caption = 'Add/Change source tag value: (-SOURCE)' EditLabel.ParentColor = False ParentShowHint = False From a6ee202f4b3b1c914eeb4a5986a4c86eb38fc828 Mon Sep 17 00:00:00 2001 From: Gerry Ferdinandus Date: Tue, 12 Dec 2023 21:10:44 +0100 Subject: [PATCH 02/52] Add freedesktop-metainfo Get data from a single source for the Linux app. --- ...dinandus.bittorrent-tracker-editor.desktop | 9 +++ ...dus.bittorrent-tracker-editor.metainfo.xml | 71 ++++++++++++++++++ ...yferdinandus.bittorrent-tracker-editor.png | Bin snap/gui/bittorrent-tracker-editor.desktop | 10 --- snap/snapcraft.yaml | 36 ++++----- 5 files changed, 95 insertions(+), 31 deletions(-) create mode 100644 metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop create mode 100644 metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.metainfo.xml rename snap/gui/bittorrent-tracker-editor.png => metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.png (100%) delete mode 100644 snap/gui/bittorrent-tracker-editor.desktop diff --git a/metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop b/metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop new file mode 100644 index 0000000..798d0ca --- /dev/null +++ b/metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=bittorrent-tracker-editor +Comment=Add or remove tracker from torrent files. +Categories=Utility;Qt; +Icon=io.github.gerryferdinandus.bittorrent-tracker-editor +Exec=trackereditor +Terminal=false diff --git a/metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.metainfo.xml b/metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.metainfo.xml new file mode 100644 index 0000000..6793295 --- /dev/null +++ b/metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.metainfo.xml @@ -0,0 +1,71 @@ + + + io.github.gerryferdinandus.bittorrent-tracker-editor + bittorrent-tracker-editor + Add or remove tracker from torrent files. + Gerry Ferdinandus + io.github.gerryferdinandus.bittorrent-tracker-editor.desktop + + CC0-1.0 + MIT + + https://github.com/GerryFerdinandus/bittorrent-tracker-editor + https://github.com/GerryFerdinandus/bittorrent-tracker-editor/issues + + + + +

Features:

+
    +
  • Select one torrent file or a folder with torrent files
  • +
  • Add one or more trackers at the same time
  • +
  • Remove one or more trackers at the same time
  • +
  • Remove all the trackers to create trackerless torrent. DHT torrent
  • +
  • Change public/private flag. Warning: This will change the torrent info HASH
  • +
  • Show torrent files content
  • +
  • Download stable trackers from newTrackon or ngosang
  • +
+

+ Warning: There is no backup function in this software. Use it at your own risk. +

+

+ BitTorrent works fine without this program. You probably don't need this software. +

+
+ + + + The main window + + https://github.com/GerryFerdinandus/bittorrent-tracker-editor/releases/download/V1.32.0/trackereditor_list_linux.png + + + Torrent info + + https://github.com/GerryFerdinandus/bittorrent-tracker-editor/releases/download/V1.32.0/trackereditor_info_linux.png + + + + + + +

+ This release adds the following features: +

+
    +
  • Verify the working status of public trackers.
  • +
  • Direct download support for ngosang via menu.
  • +
  • Extra tabpage 'private torrent'.
  • +
  • Support 'Info Source' tag for private trackers
  • +
  • Wrong tracker URL format from torrent files should be unselected by default
  • +
  • Upload trackers to newTrackon
  • +
+

This release fixes the following bugs:

+
    +
  • support for '/announce.php'
  • +
  • WebTorrent do not have '/announce'
  • +
+
+
+
+
\ No newline at end of file diff --git a/snap/gui/bittorrent-tracker-editor.png b/metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.png similarity index 100% rename from snap/gui/bittorrent-tracker-editor.png rename to metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.png diff --git a/snap/gui/bittorrent-tracker-editor.desktop b/snap/gui/bittorrent-tracker-editor.desktop deleted file mode 100644 index a6cc131..0000000 --- a/snap/gui/bittorrent-tracker-editor.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Version=1.0 -Name=Bittorrent tracker editor -Comment=Software for add or remove tracker from torrent files. -Exec=bittorrent-tracker-editor -Icon=${SNAP}/meta/gui/bittorrent-tracker-editor.png -Terminal=false -Type=Application -Categories=Utility; -Keywords=bittorrent;tracker;editor; diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 7ee68be..3aabc9a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,16 +1,8 @@ name: bittorrent-tracker-editor -version: '1.33.0' +adopt-info: mainprogram +icon: metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.png + base: core22 -summary: Add or remove tracker from torrent files. -description: | - Features: - - Select one torrent file or a folder with torrent files. - - Add one or more trackers at the same time. - - Remove one or more trackers at the same time. - - Remove all the trackers to create trackerless torrent. DHT torrent - - Change public/private flag. Warning: This will change the torrent info HASH. - - Show torrent files content. - - Download stable trackers from newTrackon or ngosang grade: stable confinement: strict @@ -20,9 +12,10 @@ architectures: apps: bittorrent-tracker-editor: + desktop: mainprogram/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop extensions: - kde-neon - command: app/trackereditor + command: mainprogram/trackereditor environment: # Fallback to XWayland if running in a Wayland session. DISABLE_WAYLAND: 1 @@ -33,29 +26,30 @@ apps: - pulseaudio parts: - bittorrent-tracker-editor: + mainprogram: # Build and add to snap the main program: mainprogram/trackereditor source: https://github.com/GerryFerdinandus/bittorrent-tracker-editor.git + parse-info: [metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.metainfo.xml] plugin: nil override-build: | - snapcraftctl build + craftctl default lazbuild --build-mode=Release --widgetset=qt5 source/project/tracker_editor/trackereditor.lpi - mkdir $CRAFT_PART_INSTALL/app - mv enduser/trackereditor $CRAFT_PART_INSTALL/app + mkdir $CRAFT_PART_INSTALL/mainprogram + cp enduser/trackereditor $CRAFT_PART_INSTALL/mainprogram + cp metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop $CRAFT_PART_INSTALL/mainprogram build-packages: - fpc - - fpc-source - - lcl-nogui - lazarus - libqt5pas-dev - libQt5Pas: + libQt5Pas: # Add to snap the libQt5Pas support library : usr/lib/*/libQt5Pas.* plugin: nil stage-packages: - libqt5pas1 prime: - usr/lib/*/libQt5Pas.* -# Only 2 files are explicitly added in this snap: trackereditor + libQt5Pas.so -# No need to add a cleanup process. There's nothing to clean up. +# Only 3 files are explicitly added in this snap: +# trackereditor + .desktop file via copy command +# libQt5Pas.so via prime # # Use: 'unsquashfs *.snap' to look what is inside the snap file. From af12590ceb7165cc82f3027d217ebbaa5662267d Mon Sep 17 00:00:00 2001 From: Gerry Ferdinandus Date: Wed, 13 Dec 2023 16:19:21 +0100 Subject: [PATCH 03/52] fix: appstream-util validate error style-invalid: Content before