I’ve written a program in Go to create PDFs and zip recordsdata with LaTeX and working system board instruments (it has to work on Linux and Home windows). A number of days in the past, Home windows Defender categorized my exe as a Trojan. As a result of I share the file with mates: How can I be sure that my program shouldn’t be flagged as a virus or how does my code need to appear to be?
The PDFs and zip file are created in an export folder. The next steps are carried out:
- The export folder is emptied.
- A picture is examined for a particular dimension.
- .tex recordsdata are copied briefly.
- LaTex/Docker is began and generates varied PDFs utilizing .tex recordsdata.
- A zipper file is created.
- Briefly copies are eliminated
- Some recordsdata created by LaTeX are deleted
- Textual content within the console is displayed in inexperienced or pink.
So I take advantage of instructions like os.RemoveAll, os.Mkdir, exec.Command…
I compiled the programm with:
GOOS=home windows GOARCH=amd64 go construct -o start_myprogramm.exe -ldflags="-s -w" src/,y-programm.go;
My import appears to be like like this:
import (
"archive/zip"
"bufio"
"fmt"
"picture"
_ "picture/jpeg"
"io"
"log"
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"
"sync"
"time"
"github.com/fatih/coloration"
)
I’ve learn comparable instances. Amongst different issues, it stated which you can signal the file. May this be the answer to the issue? How can I work out the place the issue precisely is?