windows patch

This commit is contained in:
partisan 2024-09-10 23:02:25 +02:00
parent f2f704bccf
commit f9cc59e40a

19
main.go
View file

@ -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()
}