From 033a3bb4da1b8b14517588b8bef54594ca982268 Mon Sep 17 00:00:00 2001 From: A_D Date: Tue, 8 Dec 2020 18:51:00 +0200 Subject: [PATCH] Removed appcast, only upload msi installer --- .github/workflows/windows-build.yml | 5 +---- setup.py | 35 +---------------------------- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 2e85ecd7..d0013a19 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -39,7 +39,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: Built files - path: | - EDMarketConnector_win*.msi - dist.win32\EDMarketConnector.exe - appcast_win_*.xml + path: EDMarketConnector_win*.msi diff --git a/setup.py b/setup.py index 12953b0f..a10b568d 100755 --- a/setup.py +++ b/setup.py @@ -221,37 +221,4 @@ elif sys.platform == 'win32': os.system(r'"%s\MsiTran.Exe" -g %s\%s_1033.msi %s\%s_%d.msi %s\%d.mst' % (SDKPATH, gettempdir(), APPNAME, gettempdir(), APPNAME, lcid, gettempdir(), lcid)) os.system(r'cscript /nologo "%s\WiSubStg.vbs" %s %s\%d.mst %d' % (SDKPATH, PKG, gettempdir(), lcid, lcid)) else: - raise AssertionError('Unsupported platform') - -if not exists(PKG): - raise AssertionError('No %s found prior to appcast' % (PKG)) -# Make appcast entry -appcast = open('appcast_%s_%s.xml' % (sys.platform=='darwin' and 'mac' or 'win', VERSION), 'w') -appcast.write(''' -\t\t -\t\t\tRelease {VERSION} -\t\t\t -\t\t\t\t{STYLE} -

Release {VERSION}

-
    - -
-\t\t\t\t]]> -\t\t\t
-\t\t\t -\t\t
-'''.format(VERSION=VERSION, - STYLE='{}'.format( - sys.platform=='win32' and 'body { font-family:"Segoe UI","Tahoma"; font-size: 75%; } h2 { font-family:"Segoe UI","Tahoma"; font-size: 105%; }' - or 'h2 { font-size: 105%; }'), - PKG=PKG, - OS=''.format(sys.platform=='win32' and 'windows"\n\t\t\t\tsparkle:installerArguments="/passive LAUNCH=yes' or 'macos'), - LENGTH=os.stat(PKG).st_size) -) + raise AssertionError('Unsupported platform') \ No newline at end of file