Skip to content

Commit 2b93f05

Browse files
nikole-duniximarler8997
authored andcommitted
feat: Include homebrew command on website for improved developer introp
1 parent 80e76dd commit 2b93f05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,12 @@
145145
var current_arch = -1;
146146
var include_curl = true;
147147
var include_wget = true;
148+
var include_homebrew = false;
148149

149150
function updateInstallDiv() {
150151
var arch_os = null;
151152
var archive_ext = null;
153+
include_homebrew = false;
152154
if (current_os == OS_LINUX) {
153155
archive_ext = ".tar.gz";
154156
if (current_arch == ARCH_X86_64) {
@@ -157,6 +159,7 @@
157159
arch_os = "aarch64-linux";
158160
}
159161
} else if (current_os == OS_MACOS) {
162+
include_homebrew = true;
160163
archive_ext = ".tar.gz";
161164
if (current_arch == ARCH_X86_64) {
162165
arch_os = "x86_64-macos";
@@ -180,6 +183,9 @@
180183
html += '<br/><h2>Command Line Install:</h2>';
181184
html += "<section><div class='Commands'>";
182185
var ids = { next_id: 0 };
186+
if (include_homebrew) {
187+
html += generateCommandHtml(ids, "brew install zigup");
188+
}
183189
if (include_curl) {
184190
html += generateCommandHtml(ids, 'curl -L ' + archive_url + ' | tar xz');
185191
}

0 commit comments

Comments
 (0)