2021-04-26 07:50:38 -05:00
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
"os/exec"
|
|
|
|
|
2021-11-25 08:53:44 -06:00
|
|
|
"github.com/digarok/appy/core/project"
|
2021-04-27 15:54:22 -05:00
|
|
|
"github.com/fatih/color"
|
2021-04-26 07:50:38 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func Assemble() {
|
2021-11-25 09:07:11 -06:00
|
|
|
// assemble all files in list
|
|
|
|
for _, filename := range project.AppyProj.Assemble {
|
2021-04-26 07:50:38 -05:00
|
|
|
fmt.Printf("Assembling %v\n", filename)
|
|
|
|
|
2021-11-25 08:53:44 -06:00
|
|
|
out, err := exec.Command(project.LocalConf.Programs.Merlin32, "-V", filename).Output()
|
2021-04-26 07:50:38 -05:00
|
|
|
if err != nil {
|
2021-04-27 15:54:22 -05:00
|
|
|
color.Cyan(string(out))
|
2021-04-26 07:50:38 -05:00
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|