Keep Windows releases on their existing beta channel
This commit is contained in:
@@ -19,7 +19,7 @@ class NoRedirect(urllib.request.HTTPRedirectHandler):
|
||||
def main():
|
||||
version = os.environ['VERSION']
|
||||
channel = os.environ['CHANNEL']
|
||||
if channel not in ('stable', 'beta', 'windows-beta', 'windows-stable'):
|
||||
if channel not in ('stable', 'beta', 'windows-beta'):
|
||||
raise ValueError('Unknown release channel')
|
||||
if not re.fullmatch(r'\d+\.\d+\.\d+(-beta\.\d+)?', version):
|
||||
raise ValueError('Invalid release version')
|
||||
@@ -33,7 +33,7 @@ def main():
|
||||
artifact = Path('ClaudeChecker-Installer.exe' if windows else 'ClaudeChecker.zip')
|
||||
notes = Path('windows/RELEASE_NOTES.md' if windows else 'RELEASE_NOTES.md').read_text()
|
||||
feed = {'stable': 'version.json', 'beta': 'version-beta.json',
|
||||
'windows-beta': 'version-windows-beta.json', 'windows-stable': 'version-windows.json'}[channel]
|
||||
'windows-beta': 'version-windows-beta.json'}[channel]
|
||||
server = os.environ['GITHUB_SERVER_URL'].rstrip('/')
|
||||
repo = os.environ['GITHUB_REPOSITORY']
|
||||
opener = urllib.request.build_opener(NoRedirect)
|
||||
|
||||
Reference in New Issue
Block a user