You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hooks/post_install.lua
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,13 @@ function PLUGIN:PostInstall(ctx)
28
28
elseifPRE_BUILT_OS_RELEASEthen
29
29
print("Erlang/OTP install from prebuilt release: " ..PRE_BUILT_OS_RELEASE)
30
30
localinstall_path=ctx.sdkInfo.erlang.path
31
-
31
+
32
32
ifRUNTIME.osType=="darwin" then
33
33
-- For MacOS prebuilts from @erlef/otp_builds, the tarball contains a ready-to-use installation
34
34
-- We need to move the contents to a 'release' subdirectory to match expected structure
35
-
localsetup_cmd="cd " ..install_path.." && mkdir -p release && for item in *; do if [ \"$item\" != \"release\" ]; then mv \"$item\" release/; fi; done 2>/dev/null || true"
35
+
localsetup_cmd="cd " ..
36
+
install_path..
37
+
" && mkdir -p release && for item in *; do if [ \"$item\" != \"release\" ]; then mv \"$item\" release/; fi; done 2>/dev/null || true"
36
38
localstatus=os.execute(setup_cmd)
37
39
ifstatus~=0then
38
40
error("Erlang/OTP install failed during file organization, please check the stdout for details.")
@@ -43,7 +45,7 @@ function PLUGIN:PostInstall(ctx)
43
45
localstatus=os.execute(install_cmd)
44
46
ifstatus~=0then
45
47
error(
46
-
"Erlang/OTP install failed, please check the stdout for details. Make sure you have the required utilties: https://www.erlang.org/doc/installation_guide/install#required-utilities")
48
+
"Erlang/OTP install failed, please check the stdout for details. Make sure you have the required utilties: https://www.erlang.org/doc/installation_guide/install#required-utilities")
47
49
end
48
50
end
49
51
else
@@ -55,19 +57,19 @@ function PLUGIN:PostInstall(ctx)
"If you enable some Erlang/OTP features, maybe you can reference this guide: https://github.com/erlang/otp/blob/master/HOWTO/INSTALL.md#configuring-1")
60
+
"If you enable some Erlang/OTP features, maybe you can reference this guide: https://github.com/erlang/otp/blob/master/HOWTO/INSTALL.md#configuring-1")
"Erlang/OTP install failed, please check the stdout for details. Make sure you have the required utilties: https://www.erlang.org/doc/installation_guide/install#required-utilities")
72
+
"Erlang/OTP install failed, please check the stdout for details. Make sure you have the required utilties: https://www.erlang.org/doc/installation_guide/install#required-utilities")
0 commit comments