This repository was archived by the owner on Jul 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +30
-6
lines changed Expand file tree Collapse file tree 1 file changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -6691,13 +6691,37 @@ const tc = __nccwpck_require__(7784);
6691
6691
} ) ( ) ;
6692
6692
core . info ( `version: ${ version } ` ) ;
6693
6693
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
+ } ) ( ) ;
6698
6722
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 } ` ) ;
6701
6725
const cliPath = await tc . downloadTool ( url ) ;
6702
6726
6703
6727
core . info ( "Installing..." ) ;
You can’t perform that action at this time.
0 commit comments