Skip to content

Commit e15f6fc

Browse files
committed
add @libedgetpu_runtime_version
1 parent 51c0295 commit e15f6fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mix.exs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ defmodule TfliteElixir.MixProject do
88
@prefer_precompiled "YES"
99
@github_url "https://github.com/cocoa-xu/tflite_elixir"
1010
@libedgetpu_runtime_github_url "https://github.com/cocoa-xu/libedgetpu"
11+
@libedgetpu_runtime_version "0.1.0"
1112
# only means compatible. need to write more tests
1213
@compatible_tflite_versions [
1314
"2.7.0",
@@ -309,8 +310,8 @@ defmodule TfliteElixir.MixProject do
309310

310311
defp download_edgetpu_runtime(edgetpu_libraries) do
311312
with {:ok, triplet} <- get_triplet(edgetpu_libraries) do
312-
filename = "edgetpu_runtime_#{triplet}_v#{@version}"
313-
runtime_url = "#{@libedgetpu_runtime_github_url}/releases/download/v#{@version}/#{filename}.zip"
313+
filename = "edgetpu_runtime_#{triplet}_v#{@libedgetpu_runtime_version}"
314+
runtime_url = "#{@libedgetpu_runtime_github_url}/releases/download/v#{@libedgetpu_runtime_version}/#{filename}.zip"
314315
unzip_to = Path.join([cache_dir(), filename])
315316
{download_archived_file("#{filename}.zip", runtime_url, unzip_to, :zip), filename, triplet}
316317
else

0 commit comments

Comments
 (0)