mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 10:23:06 +03:00
Merge pull request #792 from A-UNDERSCORE-D/actions/only-msi
Remove Appcast generation, only upload msi installer
This commit is contained in:
commit
7737766a58
5
.github/workflows/windows-build.yml
vendored
5
.github/workflows/windows-build.yml
vendored
@ -39,7 +39,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Built files
|
name: Built files
|
||||||
path: |
|
path: EDMarketConnector_win*.msi
|
||||||
EDMarketConnector_win*.msi
|
|
||||||
dist.win32\EDMarketConnector.exe
|
|
||||||
appcast_win_*.xml
|
|
||||||
|
33
setup.py
33
setup.py
@ -222,36 +222,3 @@ elif sys.platform == 'win32':
|
|||||||
os.system(r'cscript /nologo "%s\WiSubStg.vbs" %s %s\%d.mst %d' % (SDKPATH, PKG, gettempdir(), lcid, lcid))
|
os.system(r'cscript /nologo "%s\WiSubStg.vbs" %s %s\%d.mst %d' % (SDKPATH, PKG, gettempdir(), lcid, lcid))
|
||||||
else:
|
else:
|
||||||
raise AssertionError('Unsupported platform')
|
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<item>
|
|
||||||
\t\t\t<title>Release {VERSION}</title>
|
|
||||||
\t\t\t<description>
|
|
||||||
\t\t\t\t<![CDATA[
|
|
||||||
<style>{STYLE}</style>
|
|
||||||
<h2>Release {VERSION}</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-{VERSION}/{PKG}"
|
|
||||||
\t\t\t\tsparkle:os="{OS}"
|
|
||||||
\t\t\t\tsparkle:version="{VERSION}"
|
|
||||||
\t\t\t\tlength="{LENGTH}"
|
|
||||||
\t\t\t\ttype="application/octet-stream"
|
|
||||||
\t\t\t/>
|
|
||||||
\t\t</item>
|
|
||||||
'''.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)
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user