mirror of
https://github.com/niess/python-appimage.git
synced 2025-07-21 04:41:14 +02:00
Update appstream meta & disable checks
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>scipy</id>
|
||||
<metadata_license>Python-2.0</metadata_license>
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>Python-2.0</project_license>
|
||||
<name>Scipy</name>
|
||||
<summary>A Python {{ python-fullversion }} runtime with {{ requirements }}
|
||||
</summary>
|
||||
<summary>A Python {{ python-fullversion }} runtime with {{ requirements }}</summary>
|
||||
<description>
|
||||
<p> A relocated Python {{ python-fullversion }} installation containing
|
||||
the scipy packages suite ({{ requirements }}) and running from an
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>tasmotizer</id>
|
||||
<metadata_license>Python-2.0</metadata_license>
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>Python-2.0</project_license>
|
||||
<name>Tasmotizer</name>
|
||||
<summary>ESP... The time has come to... Tasmotize</summary>
|
||||
|
@@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>xonsh</id>
|
||||
<metadata_license>Python-2.0</metadata_license>
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>Python-2.0</project_license>
|
||||
<name>Xonsh</name>
|
||||
<summary>Xonsh on Python {{ python-fullversion }}
|
||||
</summary>
|
||||
<summary>Xonsh on Python {{ python-fullversion }}</summary>
|
||||
<description>
|
||||
<p> Python {{ python-fullversion }} + Xonsh bundled in an AppImage.
|
||||
</p>
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
@@ -22,7 +23,7 @@ def build_appimage(appdir=None, destination=None):
|
||||
log('BUILD', appdir)
|
||||
ensure_appimagetool()
|
||||
|
||||
cmd = [APPIMAGETOOL, appdir]
|
||||
cmd = [APPIMAGETOOL, '--no-appstream', appdir]
|
||||
if destination is not None:
|
||||
cmd.append(destination)
|
||||
cmd = ' '.join(cmd)
|
||||
@@ -30,7 +31,10 @@ def build_appimage(appdir=None, destination=None):
|
||||
debug('SYSTEM', cmd)
|
||||
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT)
|
||||
stdout = []
|
||||
|
||||
appimage_pattern = re.compile('should be packaged as ([^ ]+[.]AppImage)')
|
||||
|
||||
stdout, appimage = [], None
|
||||
while True:
|
||||
out = decode(p.stdout.readline())
|
||||
stdout.append(out)
|
||||
@@ -44,9 +48,14 @@ def build_appimage(appdir=None, destination=None):
|
||||
elif line.startswith('Error'):
|
||||
raise RuntimeError(line)
|
||||
else:
|
||||
if destination is None:
|
||||
match = appimage_pattern.search(line)
|
||||
if match is not None:
|
||||
destination = match.group(1)
|
||||
debug('APPIMAGE', line)
|
||||
|
||||
rc = p.poll()
|
||||
if rc != 0:
|
||||
if rc != 0 and not os.path.exists(destination):
|
||||
print(''.join(stdout))
|
||||
sys.stdout.flush()
|
||||
raise RuntimeError('Could not build AppImage')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>python{{fullversion}}</id>
|
||||
<metadata_license>Python-2.0</metadata_license>
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>Python-2.0</project_license>
|
||||
<name>Python {{version}}</name>
|
||||
<summary>A Python {{version}} runtime</summary>
|
||||
|
Reference in New Issue
Block a user