- RxSpencer is no longer a dependency on Windows
- gvmap.sh is compatible with POSIX shells in addition to ksh
- sed is no longer a build dependency on Windows
+- SHA256 checksum generation? #1955
### Fixed
- Fix gvpr -? to actually print usage and exit non-zero
f.write(f'{hashlib.sha256(data.read()).hexdigest()} {path}\n')
yield check
+def is_macos_artifact(path: str) -> bool:
+ '''
+ is this a deployment artifact for macOS?
+ '''
+ return re.search(r'\bDarwin\b', path) is not None
+
+def is_windows_artifact(path: str) -> bool:
+ '''
+ is this a deployment artifact for Windows?
+ '''
+ return re.search(r'\bWindows\b', path) is not None
+
def main(args: List[str]) -> int:
# setup logging to print to stderr
assets.append(upload(package_version, path, path[len('Packages/'):]))
+ # if this is a standalone Windows or macOS package, also provide
+ # checksum(s)
+ if is_macos_artifact(path) or is_windows_artifact(path):
+ for c in checksum(path):
+ assets.append(upload(package_version, c, c[len('Packages/'):]))
+
# we only create Gitlab releases for stable version numbers
if not options.force:
if re.match(r'\d+\.\d+\.\d+$', options.version) is None: