From 33571324f5d030e442cb62c0be212800a2506ccd Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Tue, 3 Oct 2023 14:36:58 -0700 Subject: [PATCH 1/3] Added sudo to download instructions --- packages/lingua-franca/src/templates/pages/download.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/lingua-franca/src/templates/pages/download.tsx b/packages/lingua-franca/src/templates/pages/download.tsx index 40b8027be..4a9a2e8c3 100644 --- a/packages/lingua-franca/src/templates/pages/download.tsx +++ b/packages/lingua-franca/src/templates/pages/download.tsx @@ -66,12 +66,13 @@ const Index: React.FC = (props) => {

Install Script

Run the following command in your terminal to install the latest release (on Windows, use WSL): -

curl -Ls https://install.lf-lang.org | sh -s epoch

+

curl -Ls https://install.lf-lang.org | sudo sh -s epoch

You can also install the nightly pre-release: -

curl -Ls https://install.lf-lang.org | sh -s epoch nightly

+

curl -Ls https://install.lf-lang.org | sudo sh -s epoch nightly

You can use the --prefix=<path> argument to change the default install location.

+

You may not need the sudo part if you permission to write to the install location.

AUR

From 9f628fcc65be76c80719b7dd8657d64fb2ea42da Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Tue, 3 Oct 2023 14:43:19 -0700 Subject: [PATCH 2/3] Typo --- packages/lingua-franca/src/templates/pages/download.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lingua-franca/src/templates/pages/download.tsx b/packages/lingua-franca/src/templates/pages/download.tsx index 4a9a2e8c3..2c81bf6ed 100644 --- a/packages/lingua-franca/src/templates/pages/download.tsx +++ b/packages/lingua-franca/src/templates/pages/download.tsx @@ -72,7 +72,7 @@ const Index: React.FC = (props) => {

curl -Ls https://install.lf-lang.org | sudo sh -s epoch nightly

You can use the --prefix=<path> argument to change the default install location.

-

You may not need the sudo part if you permission to write to the install location.

+

You may not need the sudo part if you have permission to write to the install location.

AUR

From 51d164f485ce530fd4a032fe2e13ca5ddd457e42 Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Thu, 5 Oct 2023 08:35:21 -0700 Subject: [PATCH 3/3] Refine instructions --- packages/lingua-franca/src/templates/pages/download.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/lingua-franca/src/templates/pages/download.tsx b/packages/lingua-franca/src/templates/pages/download.tsx index 2c81bf6ed..aac88fb7c 100644 --- a/packages/lingua-franca/src/templates/pages/download.tsx +++ b/packages/lingua-franca/src/templates/pages/download.tsx @@ -66,13 +66,15 @@ const Index: React.FC = (props) => {

Install Script

Run the following command in your terminal to install the latest release (on Windows, use WSL): -

curl -Ls https://install.lf-lang.org | sudo sh -s epoch

+

curl -Ls https://install.lf-lang.org | sh -s epoch

You can also install the nightly pre-release: -

curl -Ls https://install.lf-lang.org | sudo sh -s epoch nightly

+

curl -Ls https://install.lf-lang.org | sh -s epoch nightly

You can use the --prefix=<path> argument to change the default install location.

-

You may not need the sudo part if you have permission to write to the install location.

+

The default prefix is /usr/local/bin on a Mac and ~/.local/bin on Linux and WSL. + You may not have write access to this directory by default, in which case, if you still want to use the default prefix, + you can replace sh with sudo sh in the above commands.

AUR