1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-11-10 12:20:10 +00:00
jfa-go/embed
Harvey Tindall adbb5b9d38
Fix filepath separator and external files on windows
For some reason, '/' is used instead of '\' on windows when loading
lang. FSJoin will now use whatever already exists in the path.
app.GetPath now creates a DirFS from the containing directory instead of
app.systemFS, which fixes loading on windows.
2021-02-18 12:58:30 +00:00
..
external.go Fix filepath separator and external files on windows 2021-02-18 12:58:30 +00:00
internal.go move all scripts to scripts/ 2021-02-17 14:32:03 +00:00
README.md move all scripts to scripts/ 2021-02-17 14:32:03 +00:00

scripts/embed.py [internal/external] will copy the respective file into the main directory. If internal, //go:embed is used to embed the data/ directory in the binary. If external, os.DirFS is used to access the data/ directory, which should be placed next to the executable.