feat: add install scripts (actual installer)

This commit is contained in:
Slug-Boi
2024-12-01 20:25:38 +01:00
parent 5f7365cc22
commit 3862338350
6 changed files with 130 additions and 5 deletions
+2 -5
View File
@@ -113,14 +113,11 @@ func updateScript() {
func swapper(exec_path string) {
regExp, err := regexp.Compile("cocommit_go-darwin")
if err != nil {
log.Fatal(err)
}
regExp := regexp.MustCompile("cocommit-.+")
var new_binary string
err = filepath.Walk("./", func(path string, info os.FileInfo, err error) error {
err := filepath.Walk("./", func(path string, info os.FileInfo, err error) error {
if err == nil && regExp.MatchString(info.Name()) {
new_binary = info.Name()
return nil