update pleroma-fe url
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 15 Jun 2022 17:18:23 +0000 (18:18 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 15 Jun 2022 17:18:23 +0000 (18:18 +0100)
config/config.exs
lib/pleroma/frontend.ex

index ad70966692b8d861e9a8b007178b908a2a808bf8..f4915a909ee13b0f47a9883b995f214432e7bdc5 100644 (file)
@@ -734,10 +734,11 @@ config :pleroma, :frontends,
     },
     "pleroma-fe" => %{
       "name" => "pleroma-fe",
-      "git" => "https://git.pleroma.social/pleroma/pleroma-fe",
+      "git" => "https://akkoma.dev/AkkomaGang/pleroma-fe",
       "build_url" =>
-        "https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
-      "ref" => "develop"
+        "https://akkoma-updates.s3-website.fr-par.scw.cloud/frontend/akkoma-fe.zip",
+      "ref" => "develop",
+      "build_dir" => "dist"
     },
     "fedi-fe" => %{
       "name" => "fedi-fe",
index 34b7befb86a1fdc2f8d851e29518fdb54b13f67a..cc0b47077f7a82f1130543af579c0669ff58a9c9 100644 (file)
@@ -32,20 +32,20 @@ defmodule Pleroma.Frontend do
 
     label = "#{name} (#{ref})"
     tmp_dir = Path.join(dir(), "tmp")
-
+    IO.puts("Downloading #{label}...")
     with {_, :ok} <-
            {:download_or_unzip, download_or_unzip(frontend_info, tmp_dir, opts[:file])},
-         Logger.info("Installing #{label} to #{dest}"),
+         IO.puts("Installing #{label} to #{dest}"),
          :ok <- install_frontend(frontend_info, tmp_dir, dest) do
       File.rm_rf!(tmp_dir)
-      Logger.info("Frontend #{label} installed to #{dest}")
+      IO.puts("Frontend #{label} installed to #{dest}")
     else
       {:download_or_unzip, _} ->
-        Logger.info("Could not download or unzip the frontend")
+        IO.puts("Could not download or unzip the frontend")
         {:error, "Could not download or unzip the frontend"}
 
       _e ->
-        Logger.info("Could not install the frontend")
+        IO.puts("Could not install the frontend")
         {:error, "Could not install the frontend"}
     end
   end