feat: support macos

windows-fixes
TorchedSammy 2022-02-28 18:53:58 -04:00
parent 36cd4d4123
commit 52379dbdd7
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 21 additions and 1 deletions

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
goos: [linux, windows] goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64] goarch: ["386", amd64, arm64]
exclude: exclude:
- goarch: "386" - goarch: "386"

20
vars_darwin.go 100644
View File

@ -0,0 +1,20 @@
// +build darwin
package main
// String vars that are free to be changed at compile time
var (
requirePaths = commonRequirePaths + `.. ';'
.. hilbish.dataDir .. '/libs/?/init.lua;'
.. hilbish.dataDir .. '/libs/?/?.lua;'` + macosUserPaths
macosUserPaths = `
.. hilbish.userDir.data .. '/hilbish/libs/?/init.lua;'
.. hilbish.userDir.data .. '/hilbish/libs/?/?.lua;'
.. hilbish.userDir.data .. '/hilbish/libs/?.lua;'
.. hilbish.userDir.config .. '/hilbish/?/init.lua;'
.. hilbish.userDir.config .. '/hilbish/?/?.lua;'
.. hilbish.userDir.config .. '/hilbish/?.lua'`
dataDir = "/usr/local/share/hilbish"
preloadPath = dataDir + "/preload.lua"
sampleConfPath = dataDir + "/.hilbishrc.lua" // Path to default/sample config
)