Skip to content

Commit

Permalink
Atualiza upload para novos arquivos do Metro
Browse files Browse the repository at this point in the history
  • Loading branch information
migeyel committed Dec 2, 2023
1 parent a3d6b5e commit 4ba1f03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions upload.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ function getManifestAsset(metaEntry, url) {
function getManifestBundleAsset(path, url) {
const hasher = createHash("sha256");
hasher.update(readFileSync(join(OUT_DIR, path)));
const re = new RegExp("^" + platform + "\\-([^\\.]+)\\.[^\\.]+$");
return {
hash: hasher.digest().toString("base64url"),
key: basename(path).slice(platform.length + 1, -".js".length),
contentType: "text/javascript",
key: re.exec(basename(path))[1],
contentType: "application/javascript",
url,
};
}
Expand Down

0 comments on commit 4ba1f03

Please sign in to comment.