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
Add support for prebuilt Erlang/OTP installations on MacOS using @erlef/otp_builds (#13), close#10
* Initial plan
* Add MacOS prebuilt support using @erlef/otp_builds
Co-authored-by: yeshan333 <39296814+yeshan333@users.noreply.github.com>
* Improve MacOS prebuilt file organization logic
Co-authored-by: yeshan333 <39296814+yeshan333@users.noreply.github.com>
* feat: add support for macOS prebuilt versions and update related configurations
* fix: macos prebuilt download link
* feat: fetch macOS prebuilt versions and integrate into version update workflow
* refactor: optimize version handling and download URL construction for macOS and Windows
* fix: update USE_PREBUILT_OTP environment variable to boolean and remove obsolete test script [skip ci].
* fix: update macOS prebuilt versions URL to point to the main branch [skip ci]
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yeshan333 <39296814+yeshan333@users.noreply.github.com>
Co-authored-by: yeshan.ye <yeshan.ye@alibaba-inc.com>
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,15 +85,32 @@ You can reference the E2E test in in windows-2022: [.github/workflows/e2e_test_w
85
85
86
86
## install a prebuilt Erlang/OTP version
87
87
88
-
After vfox-erlang v1.1.0, you can also install a prebuilt Erlang/OTP version in Ubuntu linux system.
88
+
After vfox-erlang v1.1.0, you can also install a prebuilt Erlang/OTP version in Ubuntu linux system and MacOS.
89
89
90
90
**Before install, you must disable vfox search cache.** Reference: [https://vfox.lhan.me/guides/configuration.html#cache-settings](https://vfox.lhan.me/guides/configuration.html#cache-settings)
91
91
92
+
### Linux (Ubuntu)
93
+
92
94
This is an installation example in Bash Shell:
93
95
94
96
```shell
95
97
# install an available version, you can also a avaliable version in: https://bobs-list.kobrakai.de/
**USE_PREBUILT_OTP** var value for Linux is one of: ["ubuntu-14.04", "ubuntu-16.04", "ubuntu-18.04", "ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"].
103
+
104
+
### MacOS
105
+
106
+
For MacOS, you can use prebuilt Erlang/OTP versions from [@erlef/otp_builds](https://github.com/erlef/otp_builds) by setting the `USE_PREBUILT_OTP` environment variable:
107
+
108
+
```shell
109
+
# install a prebuilt version for MacOS (automatically detects architecture)
110
+
USE_PREBUILT_OTP=true vfox search erlang
111
+
USE_PREBUILT_OTP=true vfox install erlang@26.2.3
97
112
```
98
113
99
-
**USE_PREBUILT_OTP** var value is one of: ["ubuntu-14.04", "ubuntu-16.04", "ubuntu-18.04", "ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"].
114
+
**USE_PREBUILT_OTP** can be set to any non-empty value (e.g., "1", "true", "macos") to enable prebuilt mode.
115
+
116
+
Supported architectures: amd64, x86_64, arm64, aarch64. macOS uses a dedicated prebuilt version list that differs from the Ubuntu prebuilt versions.
0 commit comments