windows patch
This commit is contained in:
parent
89687eecd6
commit
f497557264
1 changed files with 208 additions and 191 deletions
19
main.go
19
main.go
|
@ -7,8 +7,8 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"runtime" // for detecting system architecture and platform
|
||||
"time"
|
||||
"spitfire/spitfire"
|
||||
"time"
|
||||
//"errors"
|
||||
)
|
||||
|
||||
|
@ -86,6 +86,23 @@ func main() {
|
|||
}
|
||||
fmt.Printf("Initial working directory: %s\n", initialDir)
|
||||
|
||||
// Convert buildPath and uploadPath to absolute paths
|
||||
if buildPath != "" {
|
||||
buildPath, err = spitfire.ResolvePath(buildPath)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to convert buildPath to absolute path: %v", err)
|
||||
}
|
||||
fmt.Printf("Resolved buildPath: %s\n", buildPath)
|
||||
}
|
||||
|
||||
if uploadPath != "" {
|
||||
uploadPath, err = spitfire.ResolvePath(uploadPath)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to convert uploadPath to absolute path: %v", err)
|
||||
}
|
||||
fmt.Printf("Resolved uploadPath: %s\n", uploadPath)
|
||||
}
|
||||
|
||||
if all || buildFlag {
|
||||
BuildProcess()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue