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

Adopt AppStream #6056

Merged
merged 2 commits into from
Jun 9, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name=Tribler
GenericName=P2P /Bittorrent/Youtube client
Exec=tribler %U
Icon=tribler
Icon=org.tribler.Tribler
Terminal=false
Type=Application
Categories=Application;Network;P2P
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.tribler.Tribler</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-3.0-only</project_license>
<name>Tribler</name>
<developer_name>The Tribler Community</developer_name>
<url type="homepage">https://tribler.org/</url>
<url type="bugtracker">https://github.com/Tribler/tribler/issues</url>
<url type="help">https://github.com/Tribler/tribler/wiki</url>
<summary>Towards making Bittorrent anonymous and impossible to shut down.</summary>
<description>
<p>We use our own dedicated Tor-like network for anonymous torrent downloading.</p>
<p>We are trying to make privacy, strong cryptography and authentication the Internet norm.</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://www.tribler.org/img/image0.png</image>
<caption>Screenshot of the Tribler UI</caption>
</screenshot>
<screenshot>
<image>https://www.tribler.org/img/image3.png</image>
<caption>Screenshot of the Tribler UI</caption>
</screenshot>
<screenshot>
<image>https://www.tribler.org/img/image1.png</image>
<caption>Screenshot of the Tribler UI</caption>
</screenshot>
<screenshot>
<image>https://www.tribler.org/img/image4.png</image>
<caption>Screenshot of the Tribler UI</caption>
</screenshot>
<screenshot>
<image>https://www.tribler.org/img/image9.png</image>
<caption>Screenshot of the Tribler UI</caption>
</screenshot>
<screenshot>
<image>https://www.tribler.org/img/image10.png</image>
<caption>Screenshot of the Tribler UI</caption>
</screenshot>
</screenshots>
<launchable type="desktop-id">org.tribler.Tribler.desktop</launchable>
<content_rating type="oars-1.1">
<content_attribute id="social-info">mild</content_attribute>
</content_rating>
<releases>
</releases>
</component>
18 changes: 17 additions & 1 deletion build/update_version_from_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,24 @@ def run_command(cmd):
with open('.TriblerVersion', 'w') as f:
f.write(version_id)

if sys.platform == 'linux2':
if sys.platform == 'linux2' or sys.platform == 'linux':
run_command('dch -v {} New upstream release.'.format(version_id).split())
logger.info('Writing AppStream version info.')
import time
import xml.etree.ElementTree as xml
import defusedxml.ElementTree as defxml

releaseDate = time.strftime("%Y-%m-%d", time.localtime())
attrib = {'version': f'{version_id}', 'date':f'{releaseDate}'}

tree = defxml.parse(path.join('build', 'debian', 'tribler', 'usr', 'share', 'metainfo',
'org.tribler.Tribler.metainfo.xml'))
xmlRoot = tree.getroot()
releases = xmlRoot.find('releases')
release = xml.SubElement(releases, 'release', attrib)
tree.write(path.join('build', 'debian', 'tribler', 'usr', 'share', 'metainfo',
'org.tribler.Tribler.metainfo.xml'))

elif sys.platform == 'win32':
logger.info('Replacing NSI string.')
with open(path.join('build', 'win', 'resources', 'tribler.nsi'), 'r+') as f:
Expand Down