added deps skip flag
This commit is contained in:
parent
2bb34d2f5c
commit
b876df0d83
2 changed files with 9 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@
|
||||||
/APPINDEX
|
/APPINDEX
|
||||||
/browser-amd64-nightly-linux.tar.gz
|
/browser-amd64-nightly-linux.tar.gz
|
||||||
/browser-amd64-nightly-windows.tar.gz
|
/browser-amd64-nightly-windows.tar.gz
|
||||||
|
/sourceforge_config.json
|
6
main.go
6
main.go
|
@ -42,6 +42,7 @@ var (
|
||||||
packageName = "spitfire-browser"
|
packageName = "spitfire-browser"
|
||||||
maintainer = "Internet Addict"
|
maintainer = "Internet Addict"
|
||||||
initialDir string
|
initialDir string
|
||||||
|
skipDeps bool
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -64,6 +65,7 @@ func init() {
|
||||||
flag.BoolVar(&run, "r", false, "Run the project after build")
|
flag.BoolVar(&run, "r", false, "Run the project after build")
|
||||||
flag.BoolVar(&upload, "upload", false, "Upload the compressed build file to SourceForge")
|
flag.BoolVar(&upload, "upload", false, "Upload the compressed build file to SourceForge")
|
||||||
flag.StringVar(&uploadPath, "upload-path", "", "Path to the file to upload if no build present")
|
flag.StringVar(&uploadPath, "upload-path", "", "Path to the file to upload if no build present")
|
||||||
|
flag.BoolVar(&skipDeps, "skip-deps", false, "Skip checking for required system dependencies")
|
||||||
flag.Bool("h", false, "Display help message")
|
flag.Bool("h", false, "Display help message")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,10 +115,12 @@ func main() {
|
||||||
printHelp()
|
printHelp()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check system dependencies
|
// Only check dependencies if NOT skipping them
|
||||||
|
if !skipDeps {
|
||||||
if err := checkDependencies(); err != nil {
|
if err := checkDependencies(); err != nil {
|
||||||
log.Fatalf("System check failed: %v", err)
|
log.Fatalf("System check failed: %v", err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Set version to current date if it's empty and release is nightly
|
// Set version to current date if it's empty and release is nightly
|
||||||
if version == "" && release == "nightly" {
|
if version == "" && release == "nightly" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue