Skip to content

Commit

Permalink
Solve more issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Feb 23, 2024
1 parent 22e14df commit 9b66dde
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions metacall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ def install
# debug = "set -euxo pipefail\n"

metacall_extra = [
"LOC=/usr/local/Cellar/metacall/#{version}\n",
"export LOADER_LIBRARY=\"$LOC/lib\"\n",
"export SERIAL_LIBRARY_PATH=\"$LOC/lib\"\n",
"export DETOUR_LIBRARY_PATH=\"$LOC/lib\"\n",
"export PORT_LIBRARY_PATH=\"$LOC/lib\"\n",
"export CONFIGURATION_PATH=\"$LOC/configurations/global.json\"\n",
"PREFIX=/usr/local/Cellar/metacall/#{version}\n",
"export LOADER_LIBRARY=\"${PREFIX}/lib\"\n",
"export SERIAL_LIBRARY_PATH=\"${PREFIX}/lib\"\n",
"export DETOUR_LIBRARY_PATH=\"${PREFIX}/lib\"\n",
"export PORT_LIBRARY_PATH=\"${PREFIX}/lib\"\n",
"export CONFIGURATION_PATH=\"${PREFIX}/configurations/global.json\"\n",
]
cmds = [shebang, *metacall_extra]
cmds.append("export LOADER_SCRIPT_PATH=\"\${LOADER_SCRIPT_PATH:-\`pwd\`}\"\n")
cmds.append("$LOC/metacallcli $@\n")
cmds.append("${PREFIX}/bin/metacallcli $@\n")

File.open("metacall.sh", "w") do |f|
f.write(*cmds)
Expand All @@ -88,6 +88,7 @@ def install
chmod("u+x", "metacall.sh")
bin.install "metacall.sh" => "metacall"

# Clean build data
system "cmake", "--build", ".", "--target", "clean"
end

Expand Down

0 comments on commit 9b66dde

Please sign in to comment.