diff --git a/typst_unix.go b/cli_unix.go similarity index 100% rename from typst_unix.go rename to cli_unix.go diff --git a/cli_windows.go b/cli_windows.go new file mode 100644 index 0000000..d0387d6 --- /dev/null +++ b/cli_windows.go @@ -0,0 +1,10 @@ +//go:build windows + +package typst + +// The path to the typst executable. +// We assume the executable is in the current working directory. +//var ExecutablePath = "." + string(filepath.Separator) + filepath.Join("typst.exe") + +// The path to the typst executable. +var ExecutablePath = "typst.exe" diff --git a/typst_windows.go b/typst_windows.go deleted file mode 100644 index d41f48a..0000000 --- a/typst_windows.go +++ /dev/null @@ -1,9 +0,0 @@ -//go:build windows - -package typst - -import "path/filepath" - -// The path to the typst executable. -// We assume the executable is in the current working directory. -var ExecutablePath = "." + string(filepath.Separator) + filepath.Join("typst.exe")