From 406fa5dafa73f33b92cb25fb3e2a1889e27be370 Mon Sep 17 00:00:00 2001 From: David Vogel Date: Wed, 18 Dec 2024 20:31:28 +0100 Subject: [PATCH] Rename typst_*.go into cli_*.go --- typst_unix.go => cli_unix.go | 0 cli_windows.go | 10 ++++++++++ typst_windows.go | 9 --------- 3 files changed, 10 insertions(+), 9 deletions(-) rename typst_unix.go => cli_unix.go (100%) create mode 100644 cli_windows.go delete mode 100644 typst_windows.go 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")