Skip to content

Commit dcc4ae2

Browse files
authored
Fix Windows installation paths (#5)
1 parent b3ba917 commit dcc4ae2

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

INSTALL.md

+16-22
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,43 @@
22

33
#### Install using Git
44

5-
1. Clone the [`OpenSCAD` repository](https://github.com/dracula/openscad):
5+
1. Clone the [`OpenSCAD` repository](https://github.com/dracula/openscad):
66

77
```sh
88
git clone https://github.com/dracula/openscad.git
99
```
1010

11-
2. Move into the cloned repository:
11+
2. Move into the cloned repository:
1212

1313
Linux & Mac:
14-
1514
```bash
1615
cd ./openscad
1716
```
1817

1918
Windows
20-
2119
```PowerShell
2220
Set-Location -Path ".\openscad"
2321
```
2422

25-
3. Create the directories `OpenSCAD/color-schemes/editor` and `OpenSCAD/color-schemes/render` in the application's config directory if they do not exist.
23+
3. Create the directories `OpenSCAD/color-schemes/editor` and `OpenSCAD/color-schemes/render` in the application's config directory if they do not exist.
2624
2725
Linux:
28-
2926
```bash
3027
mkdir -p $HOME/.config/OpenSCAD/color-schemes/editor $HOME/.config/OpenSCAD/color-schemes/render
3128
```
3229
3330
Mac:
34-
3531
```bash
36-
mkdir -p "$HOME/Library/Application Support/OpenSCAD/color-schemes/editor" "$HOME/Library/Application Support/OpenSCAD/color-schemes/render"
32+
mkdir -p $HOME/Library/Application Support/OpenSCAD/color-schemes/editor $HOME/Library/Application Support/OpenSCAD/color-schemes/render
3733
```
3834
3935
Windows:
40-
4136
```PowerShell
42-
New-Item -Path "C:\Documents and Settings\$env:username\Local Settings\Application Data\OpenSCAD\color-schemes\editor" -ItemType Directory
43-
New-Item -Path "C:\Documents and Settings\$env:username\Local Settings\Application Data\OpenSCAD\color-schemes\render" -ItemType Directory
37+
New-Item -Path "C:\Users\$env:username\AppData\Local\OpenSCAD\color-schemes\editor" -ItemType Directory
38+
New-Item -Path "C:\Users\$env:username\AppData\Local\OpenSCAD\color-schemes\render" -ItemType Directory
4439
```
4540
46-
4. Finally, create two symbolic links from the local repository to [OpenSCAD](https://openscad.org/)’s editor and render folders:
41+
4. Finally, create two symbolic links from the local repository to [OpenSCAD](https://openscad.org/)’s editor and render folders:
4742
4843
Linux:
4944
@@ -53,33 +48,32 @@
5348
```
5449
5550
Mac:
56-
5751
```bash
58-
ln -s "$PWD/dracula.json" "$HOME/Library/Application Support/OpenSCAD/color-schemes/editor"
59-
ln -s "$PWD/transylvania.json" "$HOME/Library/Application Support/OpenSCAD/color-schemes/render"
52+
ln -s $PWD/dracula.json $HOME/Library/Application Support/OpenSCAD/color-schemes/editor
53+
ln -s $PWD/transylvania.json $HOME/Library/Application Support/OpenSCAD/color-schemes/render
6054
```
6155
6256
Windows:
63-
6457
```PowerShell
65-
New-Item -Path "$pwd\dracula.json" -ItemType SymbolicLink -Value "C:\Documents and Settings\$env:username\Local Settings\Application Data\OpenSCAD\color-schemes\editor"
66-
New-Item -Path "$pwd\transylvania.json" -ItemType SymbolicLink -Value "C:\Documents and Settings\$env:username\Local Settings\Application Data\OpenSCAD\color-schemes\render"
58+
New-Item -Path "$pwd\dracula.json" -ItemType SymbolicLink -Value "C:\Users\$env:username\AppData\Local\OpenSCAD\color-schemes\editor"
59+
New-Item -Path "$pwd\transylvania.json" -ItemType SymbolicLink -Value "C:\Users\$env:username\AppData\Local\OpenSCAD\color-schemes\render"
6760
```
6861
6962
#### Install manually
7063
71-
1. Download the [`OpenSCAD` archive](https://github.com/dracula/openscad/archive/main.zip) and extract it.
64+
1. Download the [`OpenSCAD` archive](https://github.com/dracula/openscad/archive/main.zip) and extract it.
7265
73-
2. Linux:
66+
2. Linux:
7467
Create the directories `OpenSCAD/color-schemes/editor` and `OpenSCAD/color-schemes/render` if it does not exist in `$HOME/.config/`.
7568
7669
Mac:
7770
Create the directories `OpenSCAD/color-schemes/editor` and `OpenSCAD/color-schemes/render` if it does not exist in `$HOME/Library/Application Support/`.
7871
7972
Windows:
80-
Create the directories `OpenSCAD/color-schemes/editor` and `OpenSCAD/color-schemes/render` if it does not exist in `C:\Documents and Settings\$env:username\Local Settings\Application Data\`.
73+
Create the directories `OpenSCAD/color-schemes/editor` and `OpenSCAD/color-schemes/render` if it does not exist in `C:\Users\$env:username\AppData\Local\`.
74+
75+
3. Move the `dracula.json` file from the extracted archive to [OpenSCAD](https://github.com/dracula/openscad/archive/main.zip)’s `editor` folder, and `transylvania.json` to [OpenSCAD](https://github.com/dracula/openscad/archive/main.zip)’s `render` folder.
8176
82-
3. Move the `dracula.json` file from the extracted archive to [OpenSCAD](https://github.com/dracula/openscad/archive/main.zip)’s `editor` folder, and `transylvania.json` to [OpenSCAD](https://github.com/dracula/openscad/archive/main.zip)’s `render` folder.
8377
8478
#### Activating theme
8579

0 commit comments

Comments
 (0)