Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ spctl --assess --type open --context context:primary-signature --verbose=4 \
dist/PreviewMD-<version>-<build>-macOS.dmg
```

The most recently accepted release is PreviewMD `1.8 (12)`. Its application
notarization submission is `561f54d2-cace-4732-aa60-569e2f2b9cdb`; the final
DMG submission is `efdec2e8-a377-4607-8bd4-3dea9ee9df78`.
The most recently accepted local release is PreviewMD `1.9 (13)`. Its application
notarization submission is `948b4107-14ea-4381-9b05-28d22af3ac7d`; the final
DMG submission is `9dc40a47-728c-49c1-bda7-3dd551090948`. Its release receipt is
`docs/releases/PreviewMD-1.9-13.json`. The public landing-page download remains
at `1.8 (12)` until a separate public publication is requested.

## Versioning

Expand Down
63 changes: 63 additions & 0 deletions docs/releases/PreviewMD-1.9-13.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"product": "PreviewMD",
"version": "1.9",
"build": "13",
"release_date": "2026-10-06",
"distribution": "local installer; no GitHub Release or landing-page download change",
"source_revision": "f8c4fdb23e758dd46b5d8c7dc15296dcfb6d84ab",
"fixes_main_revision": "bef87f24b1a49ec25e6aad3b430226a91ea4f99f",
"bundle_identifier": "pl.jesion.previewmd",
"quicklook_bundle_identifier": "pl.jesion.previewmd.quicklook",
"team_identifier": "4NZF9USX28",
"signing_identity": "Developer ID Application: Astrography Sp. z o.o. (4NZF9USX28)",
"architectures": [
"arm64",
"x86_64"
],
"quicklook_architectures": [
"arm64",
"x86_64"
],
"minimum_macos": "14.0",
"sdk": "27.0",
"hardened_runtime": true,
"notarization": {
"application": {
"submission_id": "948b4107-14ea-4381-9b05-28d22af3ac7d",
"status": "Accepted",
"ticket_stapled": true
},
"dmg": {
"submission_id": "9dc40a47-728c-49c1-bda7-3dd551090948",
"status": "Accepted",
"ticket_stapled": true
}
},
"gatekeeper": {
"application": "Notarized Developer ID",
"dmg": "Notarized Developer ID"
},
"artifacts": [
{
"filename": "PreviewMD-1.9-13-macOS.dmg",
"size_bytes": 7270765,
"sha256": "8ad40865c276a6dbfc7becf3cef7e216938195b6cf110d2377430a77ea631e99"
},
{
"filename": "PreviewMD-1.9-13-macOS.zip",
"size_bytes": 7026785,
"sha256": "8404a6157137ad7819f94d7f6a86f61892a0dc6dd1688cc9bbe7bebd514f9feb"
}
],
"repository_installer": "dist/PreviewMD-1.9-13-macOS.dmg",
"repository_fallback_archive": "dist/PreviewMD-1.9-13-macOS.zip",
"repository_application": "dist/releases/PreviewMD-1.9-13/PreviewMD.app",
"verification": {
"mounted_installer_checked": true,
"application_and_quicklook_versions_match": true,
"all_four_architecture_slices_checked": true,
"bundled_renderer_and_legal_files_match_source": true,
"additional_installer_copy_sha256_matches": true,
"previous_release_preserved": true
}
}
4 changes: 2 additions & 2 deletions scripts/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.8</string>
<string>1.9</string>
<key>CFBundleVersion</key>
<string>12</string>
<string>13</string>
<key>NSHumanReadableCopyright</key>
<string>© 2026 Adam Jesionkiewicz (adam@jesion.pl)</string>
<key>LSMinimumSystemVersion</key>
Expand Down
28 changes: 22 additions & 6 deletions site/test_server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

import hashlib
import http.client
import json
import plistlib
import re
import sqlite3
import threading
Expand Down Expand Up @@ -58,8 +58,12 @@ def test_custom_visual_presets_are_presented_with_reading_styles(self) -> None:
def test_release_archive_is_consistent_in_html_and_javascript(self) -> None:
html = (self.site_dir / "index.html").read_text(encoding="utf-8")
javascript = (self.site_dir / "main.js").read_text(encoding="utf-8")
app_info = plistlib.loads(
(self.site_dir.parent / "scripts" / "Info.plist").read_bytes()
# The working app may be a newer local release. Public download metadata
# must describe the exact installer that visitors can currently download.
release_info = json.loads(
(self.site_dir.parent / "docs/releases/PreviewMD-1.8-12.json").read_text(
encoding="utf-8"
)
)
release_links = set(
re.findall(r'href="(PreviewMD-[^"]+-macOS\.dmg)"', html)
Expand All @@ -71,9 +75,21 @@ def test_release_archive_is_consistent_in_html_and_javascript(self) -> None:
f'const DOWNLOAD_FILE = "{self.release_archive}";',
javascript,
)
self.assertEqual(app_info["CFBundleShortVersionString"], "1.8")
self.assertEqual(app_info["CFBundleVersion"], "12")
self.assertIn("v1.8 (build 12)", html)
self.assertEqual(release_info["version"], "1.8")
self.assertEqual(release_info["build"], "12")
self.assertEqual(
release_info["repository_installer"], f"site/{self.release_archive}"
)
self.assertIn(
f'v{release_info["version"]} (build {release_info["build"]})', html
)
artifact = next(
item for item in release_info["artifacts"]
if item["filename"] == self.release_archive
)
installer = (self.site_dir / self.release_archive).read_bytes()
self.assertEqual(len(installer), artifact["size_bytes"])
self.assertEqual(hashlib.sha256(installer).hexdigest(), artifact["sha256"])
self.assertIn('main.js?v=db-13', html)
self.assertNotIn("PreviewMD-1.6-10-macOS.dmg", html)
self.assertNotIn("PreviewMD-1.6-10-macOS.dmg", javascript)
Expand Down
Loading