Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 95b600a

Browse files
author
github-actions
committed
update dist
1 parent 06e36ad commit 95b600a

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

dist/index.js

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6691,13 +6691,37 @@ const tc = __nccwpck_require__(7784);
66916691
})();
66926692
core.info(`version: ${version}`);
66936693

6694-
const platform = process.platform;
6695-
const arch = process.arch;
6696-
core.info(`platform: ${platform}`);
6697-
core.info(`arch: ${arch}`);
6694+
core.info(`platform: ${process.platform}`);
6695+
core.info(`arch: ${process.arch}`);
6696+
6697+
const platform = (() => {
6698+
switch (process.platform) {
6699+
case "win32":
6700+
return "Windows";
6701+
case "linux":
6702+
return "Linux";
6703+
case "darwin":
6704+
return "Darwin";
6705+
default:
6706+
return "Linux";
6707+
}
6708+
})();
6709+
6710+
const arch = (() => {
6711+
switch (process.arch) {
6712+
case "x64":
6713+
return "x86_64";
6714+
case "arm64":
6715+
return "arm64";
6716+
case "ia32":
6717+
return "i386";
6718+
default:
6719+
return "x86_64";
6720+
}
6721+
})();
66986722

6699-
core.info("Downloading...");
6700-
const url = `https://github.com/koki-develop/qiita-cli/releases/download/${version}/qiita_Linux_x86_64.tar.gz`;
6723+
const url = `https://github.com/koki-develop/qiita-cli/releases/download/${version}/qiita_${platform}_${arch}.tar.gz`;
6724+
core.info(`Downloading... ${url}`);
67016725
const cliPath = await tc.downloadTool(url);
67026726

67036727
core.info("Installing...");

0 commit comments

Comments
 (0)