Skip to content

Commit 06704bc

Browse files
authored
fix: remove version from targets (#148)
1 parent 13c59b0 commit 06704bc

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

Diff for: bin/start

+16-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,24 @@
22

33
# used for local development
44

5+
56
set -e
67

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

9-
MIX_ENV=dev mix release --overwrite
10+
function main() {
11+
local machine
12+
local arch
13+
local target
14+
machine="$(uname)"
15+
arch="$(uname -m)"
16+
target="${machine,,}_${arch,,}"
17+
18+
local
19+
20+
BURRITO_TARGET="$target" MIX_ENV=dev mix release --overwrite
21+
22+
exec "./burrito_out/next_ls_$target" "$@"
23+
}
1024

11-
./burrito_out/next_ls_macos "$@"
25+
main "$@"

Diff for: mix.exs

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ defmodule NextLS.MixProject do
3737
steps: [:assemble, &Burrito.wrap/1],
3838
burrito: [
3939
targets: [
40-
"#{@version}-darwin_arm64": [os: :darwin, cpu: :aarch64],
41-
"#{@version}-darwin_amd64": [os: :darwin, cpu: :x86_64],
42-
"#{@version}-linux_arm64": [os: :linux, cpu: :aarch64, libc: :gnu],
43-
"#{@version}-linux_amd64": [os: :linux, cpu: :x86_64, libc: :gnu],
44-
"#{@version}-linux_arm64_musl": [os: :linux, cpu: :aarch64, libc: :musl],
45-
"#{@version}-linux_amd64_musl": [os: :linux, cpu: :x86_64, libc: :musl],
46-
"#{@version}-windows_amd64": [os: :windows, cpu: :x86_64]
40+
darwin_arm64: [os: :darwin, cpu: :aarch64],
41+
darwin_amd64: [os: :darwin, cpu: :x86_64],
42+
linux_arm64: [os: :linux, cpu: :aarch64, libc: :gnu],
43+
linux_amd64: [os: :linux, cpu: :x86_64, libc: :gnu],
44+
linux_arm64_musl: [os: :linux, cpu: :aarch64, libc: :musl],
45+
linux_amd64_musl: [os: :linux, cpu: :x86_64, libc: :musl],
46+
windows_amd64: [os: :windows, cpu: :x86_64]
4747
]
4848
]
4949
]

0 commit comments

Comments
 (0)