Release 0.9.1-3 with RetroBrowser, PPC audio, XP diagnostics and LP64 repair
This commit is contained in:
@@ -55,5 +55,8 @@ for os in "${oses[@]}"; do
|
||||
d=build/cross/packages/$os
|
||||
if [[ -d $d ]]; then printf '%s\r\n' 'MARS VME development preview. NOT a validated driver release.' 'See LEGACY-BUILD.md, CROSS-BUILD.md and WINDOWS.md. Use an isolated VM. IPXDIAG.EXE checks only local IPX.' > "$d/README.TXT"; fi
|
||||
done
|
||||
if [[ $mode == all || $mode == WINXP ]]; then
|
||||
cp clients/windows/diag/{XPDIAG.BAT,XP-SETUP.TXT} build/cross/packages/WINXP/
|
||||
fi
|
||||
log "Result: $report (not an OS compatibility certification)"
|
||||
exit "$rc"
|
||||
|
||||
31
cross/package-macclassic.py
Normal file
31
cross/package-macclassic.py
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Package only successfully built PPC Classic artifacts; never claim runtime verification."""
|
||||
from pathlib import Path
|
||||
import hashlib, json, zipfile
|
||||
root=Path(__file__).resolve().parents[1]
|
||||
out=root/'releases/browser';out.mkdir(parents=True,exist_ok=True)
|
||||
build=root/'build/macclassic/ppc'
|
||||
raw=(build/'RetroBrowser.bin').read_bytes()
|
||||
assert raw[65:69]==b'APPL', 'Not an APPL MacBinary'
|
||||
assert (build/'RetroBrowser.pef').read_bytes()[:8]==b'Joy!peff', 'Not a PEF executable'
|
||||
with zipfile.ZipFile(out/'macclassic-powerpc.zip','w',zipfile.ZIP_DEFLATED) as z:
|
||||
for name in ['RetroBrowser.bin','RetroBrowser.dsk']:z.write(build/name,name)
|
||||
z.write(root/'clients/retro-browser/macclassic/README.md','README.md')
|
||||
z.write(root/'COPYING','COPYING')
|
||||
z.write(root/'clients/retro-browser/macclassic/AUDIO-TEST.md','AUDIO-TEST.md')
|
||||
with zipfile.ZipFile(out/'macclassic-powerpc-source.zip','w',zipfile.ZIP_DEFLATED) as z:
|
||||
for directory in ['clients/retro-browser/macclassic','clients/retro-browser/sdl12','clients/retro-browser/common']:
|
||||
for p in (root/directory).rglob('*'):
|
||||
if p.is_file():z.write(p,p.relative_to(root))
|
||||
for p in (root/'build/macclassic/vendor').glob('*.tar.gz'):z.write(p,p.relative_to(root))
|
||||
for p in (build/'CMakeFiles/RetroBrowser.dir').rglob('*.obj'):z.write(p,p.relative_to(root))
|
||||
for name in ['build-retrobrowser.sh','COPYING','cross/package-macclassic.py','tests/test_mac_audio.py','tests/test_mac_audio_mock.c']:
|
||||
z.write(root/name,name)
|
||||
statuspath=out/'STATUS.json'
|
||||
status=json.loads(statuspath.read_text()) if statuspath.exists() else {}
|
||||
status['macclassic']='PowerPC built; target System 7.5.3–Mac OS 9 with Open Transport; Sound Manager audio linked with F9 self-test; audio/runtime UNTESTED. 68k link blocked by OT API and ASLM/Retro68 ABI issues.'
|
||||
statuspath.write_text(json.dumps(status,indent=2)+'\n')
|
||||
(out/'SHA256SUMS').write_text(''.join(hashlib.sha256(p.read_bytes()).hexdigest()+' '+p.name+'\n' for p in sorted(out.glob('*.zip'))))
|
||||
for name in ['macclassic-powerpc.zip','macclassic-powerpc-source.zip']:
|
||||
with zipfile.ZipFile(out/name) as z:assert z.testzip() is None
|
||||
print(out/name)
|
||||
28
cross/package-release.py
Normal file
28
cross/package-release.py
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Assemble a versioned local bundle; never install services or publish remotely."""
|
||||
from pathlib import Path
|
||||
import hashlib,json,zipfile,sys
|
||||
root=Path(__file__).resolve().parents[1];out=root/'releases'
|
||||
version=sys.argv[1] if len(sys.argv)>1 else '0.9.1-3'
|
||||
if not version or any(c not in '0123456789.-' for c in version):raise SystemExit('Invalid version')
|
||||
name='MARS_NWE-'+version
|
||||
src=out/(name+'-source.zip')
|
||||
folders=['src','native','websetup','browser','clients','cross','packaging','tests','upstream-adapter']
|
||||
allowed={'.c','.h','.cpp','.js','.cjs','.mjs','.py','.sh','.html','.css','.md','.json','.txt','.example','.service','.timer','.pa','.r','.patch','.cmake','.bat','.inf','.asm','.s','.rc','.def','.mak'}
|
||||
with zipfile.ZipFile(src,'w',zipfile.ZIP_DEFLATED) as z:
|
||||
for p in root.iterdir():
|
||||
if p.is_file() and (p.suffix.lower() in allowed or p.name in ['Makefile','COPYING']):z.write(p,'mars_nwe/'+p.name)
|
||||
for folder in folders:
|
||||
for p in (root/folder).rglob('*'):
|
||||
if p.is_file() and (p.suffix.lower() in allowed or p.name in ['Makefile','CMakeLists.txt']) and '__pycache__' not in p.parts:z.write(p,'mars_nwe/'+str(p.relative_to(root)))
|
||||
files=[out/'README.md',src,out/('deb/mars-vme_'+version+'_amd64.deb')]
|
||||
for folder in ['browser','windows','dos']:files.extend(p for p in (out/folder).iterdir() if p.is_file())
|
||||
manifest=out/('BUILD-'+version+'.json')
|
||||
manifest.write_text(json.dumps({'version':version,'runtime_status':'Mac audio and XP connectivity unverified; no native 68k binary','existing_database':'LP64 Bindery requires reviewed migration; installation guarded','artifacts':{str(p.relative_to(out)):hashlib.sha256(p.read_bytes()).hexdigest() for p in files}},indent=2)+'\n')
|
||||
files.append(manifest)
|
||||
bundle=out/(name+'.zip')
|
||||
with zipfile.ZipFile(bundle,'w',zipfile.ZIP_DEFLATED) as z:
|
||||
for p in files:z.write(p,name+'/'+str(p.relative_to(out)))
|
||||
with zipfile.ZipFile(bundle) as z:assert z.testzip() is None
|
||||
(out/(name+'.sha256')).write_text(''.join(hashlib.sha256(p.read_bytes()).hexdigest()+' '+p.name+'\n' for p in [bundle,src]))
|
||||
print(bundle)
|
||||
30
cross/package-retrobrowser.py
Normal file
30
cross/package-retrobrowser.py
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python3
|
||||
from pathlib import Path
|
||||
import zipfile,hashlib,json
|
||||
root=Path(__file__).resolve().parents[1];out=root/'releases/browser';out.mkdir(parents=True,exist_ok=True)
|
||||
readme='''MARS RetroBrowser 0.9.1 - built client, runtime not validated.
|
||||
Enable browser in the MARS web frontend, create a token and configure a LAN bind address.
|
||||
Windows: SET RBP_TOKEN=<64-character-token>, then RETROB.EXE IPv4 port
|
||||
Linux: RBP_TOKEN=<token> ./mars-retrobrowser-x11 IPv4 port https://example.org
|
||||
The browser engine runs on the Linux server, not on the retro computer.
|
||||
Tokens are private. RBP is unencrypted: use an isolated trusted network.
|
||||
Windows executable: PE32 GUI 4.0, Winsock 1.1; OS runtime testing still required.
|
||||
'''
|
||||
for name,src,filename in [('linux-x11','clients/retro-browser/mars-retrobrowser-x11','mars-retrobrowser-x11'),('windows-x86','clients/retro-browser/win32/retrobrowser.exe','RETROB.EXE')]:
|
||||
with zipfile.ZipFile(out/(name+'.zip'),'w',zipfile.ZIP_DEFLATED) as z:
|
||||
z.write(root/src,filename);z.writestr('README.TXT',readme);z.write(root/'BROWSER.md','BROWSER.md')
|
||||
with zipfile.ZipFile(out/'browser-client-source.zip','w',zipfile.ZIP_DEFLATED) as z:
|
||||
for p in (root/'clients/retro-browser').rglob('*'):
|
||||
if p.is_file() and (p.suffix in ('.c','.h','.md','.example') or p.name=='Makefile'):z.write(p,p.relative_to(root/'clients'))
|
||||
for os in ['WIN95','WIN98','WINME','WINNT40','WIN2000','WINXP']:
|
||||
d=root/'build/cross/packages'/os
|
||||
(d/'RETROB.EXE').write_bytes((root/'clients/retro-browser/win32/retrobrowser.exe').read_bytes())
|
||||
(d/'RETROB.TXT').write_text(readme)
|
||||
status={'linux-x11':'built, runtime untested','windows-x86':'built PE32 GUI4.0; included in all six Windows ZIPs; runtime untested','amiga500':'not built: m68k-amigaos toolchain absent','amiga-sdl':'not built: Amiga compiler and SDL libraries absent','atari':'not built: MiNT compiler and SDL libraries absent','macosx':'not built: target SDK and SDL libraries absent','macclassic':'not built: target SDK, OpenTransport and SDL libraries absent','dos':'no native DOS browser client in supplied sources'}
|
||||
(out/'STATUS.json').write_text(json.dumps(status,indent=2)+'\n')
|
||||
(out/'SHA256SUMS').write_text(''.join(hashlib.sha256(p.read_bytes()).hexdigest()+' '+p.name+'\n' for p in sorted(out.glob('*.zip'))))
|
||||
|
||||
# Preserve/rebuild the separately compiled Classic PPC package when available.
|
||||
if (root/'build/macclassic/ppc/RetroBrowser.bin').exists():
|
||||
import subprocess
|
||||
subprocess.run(['python3',str(root/'cross/package-macclassic.py')],check=True)
|
||||
Reference in New Issue
Block a user