Skip to content

Commit 181b880

Browse files
committed
simpler asset download
1 parent bd38583 commit 181b880

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/exstatic/native.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
defmodule Exstatic.Native do
22
@moduledoc false
3-
version = Mix.Project.config()[:version]
3+
config = Mix.Project.config()
44

55
use RustlerPrecompiled,
66
otp_app: :exstatic,
77
crate: "exstatic",
8-
base_url: {Exstatic.ReleaseHelper, :github_release_url!},
8+
base_url: "#{config[:source_url]}/releases/download/v#{config[:version]}",
99
force_build: System.get_env("EXSTATIC_BUILD") == "true",
1010
nif_versions: ["2.16"],
11-
version: version,
11+
version: config[:version],
1212
targets: ~w(
1313
aarch64-apple-darwin
1414
x86_64-apple-darwin

0 commit comments

Comments
 (0)