Skip to content
Snippets Groups Projects
Commit 6e794bc5 authored by Tony Salomone's avatar Tony Salomone
Browse files

Download API using WSL curl instead of windows

parent 28612863
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ export async function checkForMissingSystemRequirements() { ...@@ -81,7 +81,7 @@ export async function checkForMissingSystemRequirements() {
// Everything checks out OK! // Everything checks out OK!
return false; return false;
// Currently nothing to check for on other platforms // Currently nothing to check for on other platforms
default: default:
return false; return false;
} }
...@@ -194,9 +194,10 @@ export async function installLocalServer() { ...@@ -194,9 +194,10 @@ export async function installLocalServer() {
// We can download the API in one line for linux/mac // We can download the API in one line for linux/mac
// but it's a little more complicated for windows, so call a bat file // but it's a little more complicated for windows, so call a bat file
console.log("Platform:" + process.platform); console.log("Platform:" + process.platform);
const download_cmd = `curl https://raw.githubusercontent.com/transformerlab/transformerlab-api/main/install.sh | bash -s -- download_transformer_lab`;
const installScriptCommand = isPlatformWindows() const installScriptCommand = isPlatformWindows()
? `download_windows_api.bat` ? `wsl ` + download_cmd
: `curl https://raw.githubusercontent.com/transformerlab/transformerlab-api/main/install.sh | bash -s -- download_transformer_lab`; : download_cmd;
const options = isPlatformWindows() const options = isPlatformWindows()
? {} ? {}
: { shell: '/bin/bash', cwd: root_dir }; : { shell: '/bin/bash', cwd: root_dir };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment