From 22fb19a550291b936393b85655e0dd422fb76c38 Mon Sep 17 00:00:00 2001 From: robogg133 Date: Sun, 2 Nov 2025 20:07:42 -0300 Subject: [PATCH] now installing files into the system --- cmd/packets/main.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/packets/main.go b/cmd/packets/main.go index d22d0bb..a458991 100644 --- a/cmd/packets/main.go +++ b/cmd/packets/main.go @@ -7,6 +7,7 @@ import ( "runtime" "strings" + "github.com/roboogg133/packets/pkg/install" "github.com/roboogg133/packets/pkg/packet.lua.d" "github.com/spf13/cobra" ) @@ -92,11 +93,21 @@ var executeCmd = &cobra.Command{ fmt.Printf("error: %s", err.Error()) os.Exit(1) } - pkg.ExecuteBuild(configs) pkg.ExecuteInstall(configs) os.Chdir(backupDir) + files, err := install.GetPackageFiles(configs.PacketDir) + if err != nil { + fmt.Printf("error: %s", err.Error()) + os.Exit(1) + } + + if err := install.InstallFiles(files, configs.PacketDir); err != nil { + fmt.Printf("error: %s", err.Error()) + os.Exit(1) + } + } }, }