Skip to content

Commit

Permalink
Rename the platform name to win-arm64 (mozilla#681).
Browse files Browse the repository at this point in the history
  • Loading branch information
Cauacs committed Jul 18, 2024
1 parent d2266e9 commit 8c5558d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mozdownload/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
'mac64': 'dmg',
'win32': 'exe',
'win64': 'exe',
'win64-aarch64': 'exe'}
'win-arm64': 'exe'}

PLATFORM_FRAGMENTS = {'android-arm64-v8a': r'android-arm64-v8a',
'android-armeabi-v7a': r'android-armeabi-v7a',
Expand All @@ -88,7 +88,7 @@
'mac64': r'mac(64)?',
'win32': r'win32',
'win64': r'win64(-x86_64)?',
'win64-aarch64': r'win64-aarch64'}
'win-arm64': r'win64-aarch64'}

# Special versions for release and candidate builds
RELEASE_AND_CANDIDATE_LATEST_VERSIONS = {
Expand Down Expand Up @@ -577,7 +577,7 @@ def binary_regex(self):
'mac64': r'\.%(EXT)s$',
'win32': r'(\.installer%(STUB)s)?\.%(EXT)s$',
'win64': r'(\.installer%(STUB)s)?\.%(EXT)s$',
'win64-aarch64': r'(\.installer%(STUB)s)?\.%(EXT)s$'}
'win-arm64': r'(\.installer%(STUB)s)?\.%(EXT)s$'}

regex = regex_base_name + regex_suffix[self.platform]

Expand Down Expand Up @@ -678,7 +678,7 @@ def binary_regex(self):
r'^%(BINARY_NAME)s(%(STUB_NEW)s|(?:\sSetup\s|-)%(STUB)s%(VERSION)s)\.%(EXT)s$',
'win64':
r'^%(BINARY_NAME)s(%(STUB_NEW)s|(?:\sSetup\s|-)%(STUB)s%(VERSION)s)\.%(EXT)s$',
'win64-aarch64':
'win-arm64':
r'^%(BINARY_NAME)s(%(STUB_NEW)s|(?:\sSetup\s|-)%(STUB)s%(VERSION)s)\.%(EXT)s$',
'android-arm64-v8a': r'^%(BINARY_NAME)s-%(VERSION)s\.multi.%(PLATFORM)s\.%(EXT)s$',
'android-armeabi-v7a':
Expand Down
2 changes: 1 addition & 1 deletion tests/daily_scraper/test_daily_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
({'platform': 'win64'},
'2013-10-01-03-02-04-mozilla-central-firefox-27.0a1.en-US.win64.installer.exe',
'firefox/nightly/2013/10/2013-10-01-03-02-04-mozilla-central/firefox-27.0a1.en-US.win64.installer.exe'),
({'platform': 'win64-aarch64'},
({'platform': 'win-arm64'},
'2013-10-01-03-02-04-mozilla-central-firefox-27.0a1.en-US.win64-aarch64.installer.exe',
'firefox/nightly/2013/10/2013-10-01-03-02-04-mozilla-central/firefox-27.0a1.en-US.win64-aarch64.installer.exe'),
({'platform': 'linux'},
Expand Down

0 comments on commit 8c5558d

Please sign in to comment.