Skip to content

Commit

Permalink
fix: remove version from targets (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg authored Aug 9, 2023
1 parent 13c59b0 commit 06704bc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
18 changes: 16 additions & 2 deletions bin/start
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@

# used for local development


set -e

cd "$(dirname "$0")"/.. || exit 1

MIX_ENV=dev mix release --overwrite
function main() {
local machine
local arch
local target
machine="$(uname)"
arch="$(uname -m)"
target="${machine,,}_${arch,,}"

local

BURRITO_TARGET="$target" MIX_ENV=dev mix release --overwrite

exec "./burrito_out/next_ls_$target" "$@"
}

./burrito_out/next_ls_macos "$@"
main "$@"
14 changes: 7 additions & 7 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ defmodule NextLS.MixProject do
steps: [:assemble, &Burrito.wrap/1],
burrito: [
targets: [
"#{@version}-darwin_arm64": [os: :darwin, cpu: :aarch64],
"#{@version}-darwin_amd64": [os: :darwin, cpu: :x86_64],
"#{@version}-linux_arm64": [os: :linux, cpu: :aarch64, libc: :gnu],
"#{@version}-linux_amd64": [os: :linux, cpu: :x86_64, libc: :gnu],
"#{@version}-linux_arm64_musl": [os: :linux, cpu: :aarch64, libc: :musl],
"#{@version}-linux_amd64_musl": [os: :linux, cpu: :x86_64, libc: :musl],
"#{@version}-windows_amd64": [os: :windows, cpu: :x86_64]
darwin_arm64: [os: :darwin, cpu: :aarch64],
darwin_amd64: [os: :darwin, cpu: :x86_64],
linux_arm64: [os: :linux, cpu: :aarch64, libc: :gnu],
linux_amd64: [os: :linux, cpu: :x86_64, libc: :gnu],
linux_arm64_musl: [os: :linux, cpu: :aarch64, libc: :musl],
linux_amd64_musl: [os: :linux, cpu: :x86_64, libc: :musl],
windows_amd64: [os: :windows, cpu: :x86_64]
]
]
]
Expand Down

0 comments on commit 06704bc

Please sign in to comment.