added macos fix

This commit is contained in:
KZacharski 2023-08-27 13:36:41 +02:00
parent 2b1ee6e483
commit 692de40cbe
4 changed files with 14 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -28,7 +28,7 @@
<p>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 <code class="language-bash">./diji</code></p>
<h3 class="sbtt">Way 2 (Adding to $PATH)</h3>
<h3 class="sbt">Linux:</h3>
(It might not work if you use a different shell instead of bash. In that case you can also try the macOS instructions. If that doesn't work either just look up online how to add files to $PATH on your shell.)
(It might not work if you use a different shell instead of bash. In that case you can also try the macOS instructions (replace <code class="language-bash">/User/[user]</code> with <code class="language-bash">/home/[user]</code> in the line you're adding to .zprofile). If that doesn't work either just look up online how to add files to $PATH on your shell.)
<p>Extract the downloaded zip and open the terminal.</p>
<p>Now run this command:</p>
<pre><code class="language-bash">cp -r ./Downloads/diji .local</code></pre>
@ -40,7 +40,7 @@
<p>Now you can either reboot/log out and back in to save the changes systemwide or if you're busy, run <code class="language-bash" style="white-space: nowrap;">source ~/.profile</code> to apply them in your current terminal session.</p>
<p>After doing this, running <code class="language-bash">diji</code> in your terminal should make diji start.</p>
<h3 class="sbt">macOS:</h3>
(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.)
(It might not work if you use a different shell instead of zsh. In that case you can also try the Linux instructions (replace <code class="language-bash">/home/[user]</code> with <code class="language-bash">/User/[user]</code> in the line you're adding to .profile). If that doesn't work either just look up online how to add files to $PATH on your shell.)
<p>Extract the downloaded zip and open the terminal.</p>
<p>Now run this command:</p>
<pre><code class="language-bash">cp -r ./Downloads/diji .local</code></pre>
@ -68,6 +68,16 @@
<img src="./assets/winscreen5.png" class="winscreen">
<p>Now press "OK"</p>
<p>After doing this, running <code class="language-bash">diji</code> in a new terminal window should make diji start.</p>
<h3 id="macosfix">macOS "developer not verified" fix</h3>
<p>When trying to run diji you might see this macOS dialog which doesn't allow you to actually run it:</p>
<img src="./assets/macscreen1.png" class="macscreen">
<p>It's because Apple keeps being overprotective and generally treating their users like digitally illiterate grandmas. While this dialog might be helpful if you're trying to install an app from a big company and protect you from a version that has been tampered with, in case of small, hobbyst developers all it does is just tries to force them into paying $99/year for their developer program which a lot of people just can't afford.</p>
<p>However there's an easy fix</p>
<p>Open a finder window in the diji folder in your $PATH with this command:</p>
<pre><code class="language-bash">open .local/diji</code></pre>
<p>Right click on the diji binary, hold ⌥ (option) and select the "Open" item in the context menu:</p>
<img src="./assets/macscreen2.png" class="winscreen">
<p>Now a similar dialog has appeared to the one before but not it has an "Open" button. Press it and diji will open in the default terminal app. Close the Terminal window and now running diji using the <code class="language-bash">diji</code> command will work.</p>
<div class="container2">
<div class="prev ge">
<a href="./introduction.html" style="text-decoration: none; color: white; height: 100%; width: 100%;">

View File

@ -460,4 +460,6 @@ pre {
text-decoration: none;
} .winscreen {
max-width: 100%;
} .macscreen {
max-width: 400px;
}