Added 'Binary Output' and 'Compilation Directory' config options and parameters, removed test packages and added other small improvements

This commit is contained in:
CapCreeperGR
2024-07-07 22:02:57 +03:00
parent 124802ecc1
commit f9ef17cd66
11 changed files with 26 additions and 48 deletions
+6 -1
View File
@@ -8,11 +8,16 @@ import (
type BPMConfigStruct struct {
CompilationEnv []string `yaml:"compilation_env"`
SilentCompilation bool `yaml:"silent_compilation"`
BinaryOutputDir string `yaml:"binary_output_dir"`
CompilationDir string `yaml:"compilation_dir"`
}
var BPMConfig BPMConfigStruct = BPMConfigStruct{
CompilationEnv: make([]string, 0),
SilentCompilation: false}
SilentCompilation: false,
BinaryOutputDir: "/var/lib/bpm/compiled/",
CompilationDir: "/var/tmp/",
}
func ReadConfig() {
if _, err := os.Stat("/etc/bpm.conf"); os.IsNotExist(err) {