From ecf6a8c70a5671cab7194554482390b5f4b67750 Mon Sep 17 00:00:00 2001 From: KZacharski Date: Sun, 27 Aug 2023 02:53:25 +0200 Subject: [PATCH] added macos installation --- docs/docs/installation.html | 16 +++++++++++++++- docs/docs/style.css | 19 ++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/docs/docs/installation.html b/docs/docs/installation.html index 994a072..de78cd9 100644 --- a/docs/docs/installation.html +++ b/docs/docs/installation.html @@ -20,7 +20,9 @@

Installation

-

Last edited: 26 August 2023
Open on GitHub

+

Last edited: 27 August 2023
Open on GitHub

+
+

macOS users: If you can't run diji because of it "not coming from a verified developer" according to Apple, click here for a solution

After downloading diji you have 2 choices. You can either put it in a folder where you're gonna create all of your projects (for example Documents) or add it to $PATH and use it anywhere.

Way 1 (Storing in the projects folder)

Extract the zip you downloaded earlier and open the folder that was extracted from it. Now select both the diji binary and the diji-config folder and copy them to a folder you want to use for creating your projects. Now you can run diji by opening the terminal (or PowerShell on windows if you don't have Windows Terminal installed) in that folder and running it with a command ./diji

@@ -37,6 +39,18 @@

Of course save the file afterwards

Now you can either reboot/log out and back in to save the changes systemwide or if you're busy, run source ~/.profile to apply them in your current terminal session.

After doing this, running diji in your terminal should make diji start.

+

macOS:

+ (It might not work if you use a different shell instead of zsh. In that case you can also try the Linux instructions. If that doesn't work either just look up online how to add files to $PATH on your shell.) +

Extract the downloaded zip and open the terminal.

+

Now run this command:

+
cp -r ./Downloads/diji .local
+

Open .profile in your favorite editor (in my case neovim):

+
nvim .zprofile
+

Go to the end of the file and paste this line (replace [user] with your username):

+
export PATH=$PATH:/Users/[user]/.local/diji
+

Of course save the file afterwards

+

Now you can either reboot/log out and back in to save the changes systemwide or if you're busy, run source ~/.zprofile to apply them in your current terminal session.

+

After doing this, running diji in your terminal should make diji start. (It will quite likely display a dialog about the developer "not being verified". Here's the fix)