From e15f6fc25b67c58112f1a0f042670671fec661e8 Mon Sep 17 00:00:00 2001 From: Cocoa Date: Fri, 5 Aug 2022 19:23:50 +0100 Subject: [PATCH] add @libedgetpu_runtime_version --- mix.exs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 4d886a5..f0a1a37 100644 --- a/mix.exs +++ b/mix.exs @@ -8,6 +8,7 @@ defmodule TfliteElixir.MixProject do @prefer_precompiled "YES" @github_url "https://github.com/cocoa-xu/tflite_elixir" @libedgetpu_runtime_github_url "https://github.com/cocoa-xu/libedgetpu" + @libedgetpu_runtime_version "0.1.0" # only means compatible. need to write more tests @compatible_tflite_versions [ "2.7.0", @@ -309,8 +310,8 @@ defmodule TfliteElixir.MixProject do defp download_edgetpu_runtime(edgetpu_libraries) do with {:ok, triplet} <- get_triplet(edgetpu_libraries) do - filename = "edgetpu_runtime_#{triplet}_v#{@version}" - runtime_url = "#{@libedgetpu_runtime_github_url}/releases/download/v#{@version}/#{filename}.zip" + filename = "edgetpu_runtime_#{triplet}_v#{@libedgetpu_runtime_version}" + runtime_url = "#{@libedgetpu_runtime_github_url}/releases/download/v#{@libedgetpu_runtime_version}/#{filename}.zip" unzip_to = Path.join([cache_dir(), filename]) {download_archived_file("#{filename}.zip", runtime_url, unzip_to, :zip), filename, triplet} else