@contentauth/c2pa-node 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/postinstall.cjs +4 -1
package/package.json
CHANGED
package/scripts/postinstall.cjs
CHANGED
|
@@ -144,11 +144,14 @@ async function downloadBinary(appRoot) {
|
|
|
144
144
|
|
|
145
145
|
if (repoBase && version && platform) {
|
|
146
146
|
const fileName = `c2pa-node_${platform}-v${version}.zip`;
|
|
147
|
+
// Releases are tagged "<pkg>@<version>" by changesets
|
|
148
|
+
// (e.g. "@contentauth/c2pa-node@0.6.2"), not "v<version>".
|
|
149
|
+
const tag = `${pkg.name}@${version}`;
|
|
147
150
|
const downloadUrl = [
|
|
148
151
|
repoBase,
|
|
149
152
|
'releases',
|
|
150
153
|
'download',
|
|
151
|
-
|
|
154
|
+
encodeURIComponent(tag),
|
|
152
155
|
fileName,
|
|
153
156
|
].join('/');
|
|
154
157
|
return downloadFromUrl(appRoot, downloadUrl);
|