Skip to content

Commit a6ee202

Browse files
Add freedesktop-metainfo
Get data from a single source for the Linux app.
1 parent d7f4810 commit a6ee202

5 files changed

+95
-31
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Type=Application
4+
Name=bittorrent-tracker-editor
5+
Comment=Add or remove tracker from torrent files.
6+
Categories=Utility;Qt;
7+
Icon=io.github.gerryferdinandus.bittorrent-tracker-editor
8+
Exec=trackereditor
9+
Terminal=false
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>io.github.gerryferdinandus.bittorrent-tracker-editor</id>
4+
<name>bittorrent-tracker-editor</name>
5+
<summary>Add or remove tracker from torrent files.</summary>
6+
<developer_name>Gerry Ferdinandus</developer_name>
7+
<launchable type="desktop-id">io.github.gerryferdinandus.bittorrent-tracker-editor.desktop</launchable>
8+
9+
<metadata_license>CC0-1.0</metadata_license>
10+
<project_license>MIT</project_license>
11+
12+
<url type="homepage">https://github.com/GerryFerdinandus/bittorrent-tracker-editor</url>
13+
<url type="bugtracker">https://github.com/GerryFerdinandus/bittorrent-tracker-editor/issues</url>
14+
15+
<content_rating type="oars-1.1" />
16+
17+
<description>
18+
<p>Features:</p>
19+
<ul>
20+
<li>Select one torrent file or a folder with torrent files</li>
21+
<li>Add one or more trackers at the same time</li>
22+
<li>Remove one or more trackers at the same time</li>
23+
<li>Remove all the trackers to create trackerless torrent. DHT torrent</li>
24+
<li>Change public/private flag. Warning: This will change the torrent info HASH</li>
25+
<li>Show torrent files content</li>
26+
<li>Download stable trackers from newTrackon or ngosang</li>
27+
</ul>
28+
<p>
29+
Warning: There is no backup function in this software. Use it at your own risk.
30+
</p>
31+
<p>
32+
BitTorrent works fine without this program. You probably don&apos;t need this software.
33+
</p>
34+
</description>
35+
36+
<screenshots>
37+
<screenshot type="default">
38+
<caption>The main window</caption>
39+
<image>
40+
https://github.com/GerryFerdinandus/bittorrent-tracker-editor/releases/download/V1.32.0/trackereditor_list_linux.png</image>
41+
</screenshot>
42+
<screenshot>
43+
<caption>Torrent info</caption>
44+
<image>
45+
https://github.com/GerryFerdinandus/bittorrent-tracker-editor/releases/download/V1.32.0/trackereditor_info_linux.png</image>
46+
</screenshot>
47+
</screenshots>
48+
49+
<releases>
50+
<release version="1.33.0" date="2023-11-18">
51+
<description>
52+
<p>
53+
This release adds the following features:
54+
</p>
55+
<ul>
56+
<li>Verify the working status of public trackers.</li>
57+
<li>Direct download support for ngosang via menu.</li>
58+
<li>Extra tabpage 'private torrent'.</li>
59+
<li>Support 'Info Source' tag for private trackers </li>
60+
<li>Wrong tracker URL format from torrent files should be unselected by default</li>
61+
<li>Upload trackers to newTrackon</li>
62+
</ul>
63+
<p>This release fixes the following bugs:</p>
64+
<ul>
65+
<li>support for '/announce.php'</li>
66+
<li>WebTorrent do not have '/announce'</li>
67+
</ul>
68+
</description>
69+
</release>
70+
</releases>
71+
</component>

snap/gui/bittorrent-tracker-editor.png renamed to metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.png

File renamed without changes.

snap/gui/bittorrent-tracker-editor.desktop

Lines changed: 0 additions & 10 deletions
This file was deleted.

snap/snapcraft.yaml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
name: bittorrent-tracker-editor
2-
version: '1.33.0'
2+
adopt-info: mainprogram
3+
icon: metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.png
4+
35
base: core22
4-
summary: Add or remove tracker from torrent files.
5-
description: |
6-
Features:
7-
- Select one torrent file or a folder with torrent files.
8-
- Add one or more trackers at the same time.
9-
- Remove one or more trackers at the same time.
10-
- Remove all the trackers to create trackerless torrent. DHT torrent
11-
- Change public/private flag. Warning: This will change the torrent info HASH.
12-
- Show torrent files content.
13-
- Download stable trackers from newTrackon or ngosang
146
grade: stable
157
confinement: strict
168

@@ -20,9 +12,10 @@ architectures:
2012

2113
apps:
2214
bittorrent-tracker-editor:
15+
desktop: mainprogram/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop
2316
extensions:
2417
- kde-neon
25-
command: app/trackereditor
18+
command: mainprogram/trackereditor
2619
environment:
2720
# Fallback to XWayland if running in a Wayland session.
2821
DISABLE_WAYLAND: 1
@@ -33,29 +26,30 @@ apps:
3326
- pulseaudio
3427

3528
parts:
36-
bittorrent-tracker-editor:
29+
mainprogram: # Build and add to snap the main program: mainprogram/trackereditor
3730
source: https://github.com/GerryFerdinandus/bittorrent-tracker-editor.git
31+
parse-info: [metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.metainfo.xml]
3832
plugin: nil
3933
override-build: |
40-
snapcraftctl build
34+
craftctl default
4135
lazbuild --build-mode=Release --widgetset=qt5 source/project/tracker_editor/trackereditor.lpi
42-
mkdir $CRAFT_PART_INSTALL/app
43-
mv enduser/trackereditor $CRAFT_PART_INSTALL/app
36+
mkdir $CRAFT_PART_INSTALL/mainprogram
37+
cp enduser/trackereditor $CRAFT_PART_INSTALL/mainprogram
38+
cp metainfo/io.github.gerryferdinandus.bittorrent-tracker-editor.desktop $CRAFT_PART_INSTALL/mainprogram
4439
build-packages:
4540
- fpc
46-
- fpc-source
47-
- lcl-nogui
4841
- lazarus
4942
- libqt5pas-dev
5043

51-
libQt5Pas:
44+
libQt5Pas: # Add to snap the libQt5Pas support library : usr/lib/*/libQt5Pas.*
5245
plugin: nil
5346
stage-packages:
5447
- libqt5pas1
5548
prime:
5649
- usr/lib/*/libQt5Pas.*
5750

58-
# Only 2 files are explicitly added in this snap: trackereditor + libQt5Pas.so
59-
# No need to add a cleanup process. There's nothing to clean up.
51+
# Only 3 files are explicitly added in this snap:
52+
# trackereditor + .desktop file via copy command
53+
# libQt5Pas.so via prime
6054
#
6155
# Use: 'unsquashfs *.snap' to look what is inside the snap file.

0 commit comments

Comments
 (0)