Skip to content

Commit 5fa2e9b

Browse files
authored
Update setting-up-your-addon-with-github.md for better readability (#145)
1 parent 9df9401 commit 5fa2e9b

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed
Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,44 @@
11
---
22
title: Setting Up Your Addon With GitHub
33
author: Veggiesama
4-
date: 07.03.2015
4+
date: 06.03.2024
55
---
66

7-
Split the game into a game and content folder, then add junctions to link them with the dota files.
8-
9-
Create the junctions:
7+
Split the game into a `game` and `content` folder, then add junctions or symlinks to link them with the Dota files.
108

9+
## Windows - Create the junctions
10+
For `game` folder, run
11+
```shell
1112
mklink /J "C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\"
13+
# Junction created for C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\
14+
```
1215

13-
Junction created for C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\
14-
16+
For `content` folder, run
17+
```shell
1518
mklink /J "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\"
19+
#Junction created for C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\
20+
```
21+
22+
To remove junctions, simply remove the link directory
23+
```shell
24+
rmdir "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\" -force
25+
```
26+
27+
## Linux - Create the symlinks
28+
For `game` folder, run
29+
```shell
30+
ln -s /home/username/games/Steam/steamapps/common/dota2/game/dota_addons/my_custom_game /home/username/workspaces/dota2-workshops/my_custom_game/game
31+
```
32+
33+
For `content` folder, run
34+
```shell
35+
ln -s /home/username/games/Steam/steamapps/common/dota2/content/dota_addons/my_custom_game /home/username/workspaces/dota2-workshops/my_custom_game/content
36+
```
1637
17-
Junction created for C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\
38+
Remove the symlinks by using
39+
```shell
40+
unlink /home/username/workspaces/dota2-workshops/my_custom_game/content
41+
umlink /home/username/workspaces/dota2-workshops/my_custom_game/game
42+
```
1843
19-
Now you can do modifications from the steamapps folder and still use Github for version control from a desktop folder.
44+
Now you can do modifications from the steamapps folder and still use Github for version control from a linked folder.

0 commit comments

Comments
 (0)