diff --git a/setup.py b/setup.py index b04bd6a7..f131f8f2 100755 --- a/setup.py +++ b/setup.py @@ -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 -\t\t\tRelease {appversion} -\t\t\t -\t\t\t\t{style} -

Release {appversion}

- -\t\t\t\t]]> -\t\t\t
-\t\t\t -\t\t
-''')