1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 01:22:19 +03:00

Removed appcast, only upload msi installer

This commit is contained in:
A_D 2020-12-08 18:51:00 +02:00 committed by Athanasius
parent 7bdbcd5538
commit d847fb8bc1

@ -296,52 +296,3 @@ elif sys.platform == 'win32':
else:
raise AssertionError('Unsupported platform')
if not exists(package_filename):
raise AssertionError(f'No {package_filename} found prior to appcast')
# Make appcast entry
appcast = open(f'appcast_{sys.platform == "darwin" and "mac" or "win"}_{appversion}.xml', 'w')
if sys.platform == 'win32':
style = '''body {
font-family:"Segoe UI","Tahoma";
font-size: 75%;
}
h2 {
font-family:"Segoe UI","Tahoma";
font-size: 105%;
}
'''
package_os = 'windows"\n\t\t\t\tsparkle:installerArguments="/passive LAUNCH=yes'
elif sys.platform == 'darwin':
style = 'h2 { font-size: 105%; }'
package_os = 'macos'
else:
raise AssertionError(f'Unknown platform for appcast {sys.platform}')
length = os.stat(package_filename).st_size
appcast.write(f'''
\t\t<item>
\t\t\t<title>Release {appversion}</title>
\t\t\t<description>
\t\t\t\t<![CDATA[
<style>{style}</style>
<h2>Release {appversion}</h2>
<ul>
</ul>
\t\t\t\t]]>
\t\t\t</description>
\t\t\t<enclosure
\t\t\t\turl="https://github.com/EDCD/EDMarketConnector/releases/download/rel-{appversion}/{package_filename}"
\t\t\t\tsparkle:os="{package_os}"
\t\t\t\tsparkle:version="{appversion}"
\t\t\t\tlength="{length}"
\t\t\t\ttype="application/octet-stream"
\t\t\t/>
\t\t</item>
''')