File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6724,11 +6724,12 @@ async function downloadCLI(osPlatform){
67246724 case 'win32' :
67256725 return await tc . extractZip ( await tc . downloadTool ( url ) ) ;
67266726 case 'darwin' :
6727- // return await tc.extractXar(await tc.downloadTool(url));
6728- let pkgFile = await tc . downloadTool ( url ) ;
6729- core . info ( `installing mac pkg: ${ pkgFile } ` ) ;
6730- execSync ( `sudo installer -pkg ${ pkgFile } -target "/"` ) ;
6731- return '/usr/local/bin' ;
6727+ // let tmpPath = await tc.extractXar(await tc.downloadTool(url));
6728+ let tmpPath = await tc . downloadTool ( url ) ;
6729+ core . info ( `extracting mac pkg in ${ tmpPath } ...` ) ;
6730+ const installPath = '~/Applications/stackql' ;
6731+ execSync ( `pkgutil --expand ${ tmpPath } ${ installPath } ` ) ;
6732+ return installPath ;
67326733 case 'linux' :
67336734 return await tc . extractZip ( await tc . downloadTool ( url ) ) ;
67346735 default :
@@ -6766,6 +6767,13 @@ async function setup() {
67666767
67676768 // download and extract stackql binary
67686769 const cliPath = await downloadCLI ( osPlatform )
6770+
6771+
6772+ // │ └── bdee0361-f719-433d-81b4-cce7f4d6c594
6773+ // │ ├── Bom
6774+ // │ ├── PackageInfo
6775+ // │ └── Payload
6776+
67696777 core . debug ( `path to cli: ${ cliPath } ` ) ;
67706778
67716779 // set perms and make executable
Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ async function downloadCLI(osPlatform){
2222 case 'win32' :
2323 return await tc . extractZip ( await tc . downloadTool ( url ) ) ;
2424 case 'darwin' :
25- // return await tc.extractXar(await tc.downloadTool(url));
26- let pkgFile = await tc . downloadTool ( url ) ;
27- core . info ( `installing mac pkg: ${ pkgFile } ` ) ;
28- execSync ( `sudo installer -pkg ${ pkgFile } -target "/"` ) ;
29- return '/usr/local/bin' ;
25+ // let tmpPath = await tc.extractXar(await tc.downloadTool(url));
26+ let tmpPath = await tc . downloadTool ( url ) ;
27+ core . info ( `extracting mac pkg in ${ tmpPath } ...` ) ;
28+ const installPath = '~/Applications/stackql' ;
29+ execSync ( `pkgutil --expand ${ tmpPath } ${ installPath } ` ) ;
30+ return installPath ;
3031 case 'linux' :
3132 return await tc . extractZip ( await tc . downloadTool ( url ) ) ;
3233 default :
@@ -64,6 +65,13 @@ async function setup() {
6465
6566 // download and extract stackql binary
6667 const cliPath = await downloadCLI ( osPlatform )
68+
69+
70+ // │ └── bdee0361-f719-433d-81b4-cce7f4d6c594
71+ // │ ├── Bom
72+ // │ ├── PackageInfo
73+ // │ └── Payload
74+
6775 core . debug ( `path to cli: ${ cliPath } ` ) ;
6876
6977 // set perms and make executable
You can’t perform that action at this time.
0 commit comments