Skip to content

Commit

Permalink
added arm64 to platform mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
gavsidhu committed Sep 25, 2023
1 parent bb4eb48 commit 2f75d74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var ARCH_MAPPING = {
ia32: "386",
x64: "amd64",
arm: "arm",
arm64: "arm64",
};

// Mapping between Node's `process.platform` to Golang's
Expand Down Expand Up @@ -164,7 +165,7 @@ async function install(callback) {
console.info(
`Copying the relevant binary for your platform ${process.platform}`
);
const src = `./dist/example-cli-${process.platform}-${
const src = `./dist/templ8-${process.platform}-${
ARCH_MAPPING[process.arch]
}_${process.platform}_${ARCH_MAPPING[process.arch]}/${opts.binName}`;
await execShellCommand(`cp ${src} ${opts.binPath}/${opts.binName}`);
Expand Down

0 comments on commit 2f75d74

Please sign in to comment.