Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
6e794bc5
Commit
6e794bc5
authored
1 year ago
by
Tony Salomone
Browse files
Options
Downloads
Patches
Plain Diff
Download API using WSL curl instead of windows
parent
28612863
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/util.ts
+4
-3
4 additions, 3 deletions
src/main/util.ts
with
4 additions
and
3 deletions
src/main/util.ts
+
4
−
3
View file @
6e794bc5
...
@@ -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
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment