From e4dc8a5a265799c0e6104aefa9b4fdf3facd621c Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Mon, 30 Oct 2023 11:05:43 -0300 Subject: [PATCH] more config --- lib/candlex/native.ex | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/candlex/native.ex b/lib/candlex/native.ex index a8f3502..471b6de 100644 --- a/lib/candlex/native.ex +++ b/lib/candlex/native.ex @@ -1,14 +1,17 @@ defmodule Candlex.Native do @moduledoc false - version = Mix.Project.config()[:version] - source_url = "https://github.com/mimiquate/candlex" + mix_config = Mix.Project.config() + version = mix_config[:version] + source_url = mix_config[:package][:links]["GitHub"] + mode = if Mix.env() in [:dev, :test], do: :debug, else: :release use RustlerPrecompiled, otp_app: :candlex, features: Application.compile_env(:candlex, :crate_features, []), base_url: "#{source_url}/releases/download/v#{version}", force_build: System.get_env("CANDLE_BUILD") in ["1", "true"], + mode: mode, version: version, nif_versions: ["2.16"], targets: [