Skip to content

Commit 8682876

Browse files
committed
chore: add package latest_url
1 parent 8405d41 commit 8682876

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

cdn/entries/com.sncommunity.minimal-markdown.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"base64": "f44b4d0ca78b3deed9931a568c526fe49a6b420258325a85e5f89e94cb2ca540",
1010
"binary": "253d19c1d84df15daa47c329a7299c6a50873c27929656ee96fa61ae988526d7",
1111
"url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/static/com.sncommunity.minimal-markdown/index.html",
12-
"download_url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/zips/com.sncommunity.minimal-markdown.zip"
12+
"download_url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/zips/com.sncommunity.minimal-markdown.zip",
13+
"latest_url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/entries/com.sncommunity.minimal-markdown.json"
1314
}

cdn/packages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"base64": "f44b4d0ca78b3deed9931a568c526fe49a6b420258325a85e5f89e94cb2ca540",
1111
"binary": "253d19c1d84df15daa47c329a7299c6a50873c27929656ee96fa61ae988526d7",
1212
"url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/static/com.sncommunity.minimal-markdown/index.html",
13-
"download_url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/zips/com.sncommunity.minimal-markdown.zip"
13+
"download_url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/zips/com.sncommunity.minimal-markdown.zip",
14+
"latest_url": "https://raw.githubusercontent.com/standardnotes/community-packages/main/cdn/entries/com.sncommunity.minimal-markdown.json"
1415
}
1516
}

scripts/Package.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ const packageFeature = async ({ feature, noZip }) => {
164164
...checksum,
165165
url: `${CdnInfoJson.host}/static/${feature.identifier}/${packageJsonFile.sn.main}`,
166166
download_url: `${CdnInfoJson.host}/zips/${feature.identifier}.zip`,
167+
latest_url: `${CdnInfoJson.host}/entries/${feature.identifier}.json`,
167168
}
168169

169170
PackagesJson[feature.identifier] = packageEntry

0 commit comments

Comments
 (0)