Update Mac build scripts (#1198)

This commit is contained in:
Wojtek Mach 2022-05-20 14:17:40 +02:00 committed by GitHub
parent 3cf20e521f
commit cf587e7115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 19 deletions

View file

@ -5,8 +5,8 @@ main() {
export MAKEFLAGS=-j$(getconf _NPROCESSORS_ONLN)
wxwidgets_vsn="3.1.5"
otp_vsn="24.2"
elixir_vsn="1.13.2"
otp_vsn="25.0"
elixir_vsn="1.13.4"
target=$(target)

View file

@ -9,7 +9,7 @@
set -e
sh .github/scripts/app/bootstrap_mac.sh
. tmp/bootstrap_env.sh
sh tmp/bootstrap_env.sh
# If CODESIGN_IDENITY is set, let's build the .dmg which would also notarize it.
# Otherwise, let's build just the .app.

View file

@ -72,7 +72,7 @@ defmodule Standalone do
end
defp download_elixir_at_destination(destination, version) do
url = "https://github.com/elixir-lang/elixir/releases/download/v#{version}/Precompiled.zip"
url = "https://repo.hex.pm/builds/elixir/v#{version}-otp-#{System.otp_release()}.zip"
path = Path.join(System.tmp_dir!(), "elixir_#{version}.zip")
unless File.exists?(path) do
@ -115,19 +115,4 @@ defmodule Standalone do
defp cp_r!(source, destination) do
File.cp_r!(source, destination, fn _, _ -> false end)
end
# From https://github.com/fishcakez/dialyze/blob/6698ae582c77940ee10b4babe4adeff22f1b7779/lib/mix/tasks/dialyze.ex#L168
defp otp_version do
major = :erlang.system_info(:otp_release) |> List.to_string()
vsn_file = Path.join([:code.root_dir(), "releases", major, "OTP_VERSION"])
try do
vsn_file |> File.read!() |> String.split("\n", trim: true)
else
[full] -> full
_ -> major
catch
:error, _ -> major
end
end
end