From 8e990b053e4526f6214a03a72b531fb545d86dc8 Mon Sep 17 00:00:00 2001 From: Niles Date: Wed, 6 Mar 2024 11:52:27 +0700 Subject: [PATCH] Update setting-up-your-addon-with-github.md for better readability --- .../setting-up-your-addon-with-github.md | 41 +++++++++++++++---- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/_articles/tools/setting-up-your-addon-with-github.md b/_articles/tools/setting-up-your-addon-with-github.md index 4ba9962e..720e7706 100644 --- a/_articles/tools/setting-up-your-addon-with-github.md +++ b/_articles/tools/setting-up-your-addon-with-github.md @@ -1,19 +1,44 @@ --- title: Setting Up Your Addon With GitHub author: Veggiesama -date: 07.03.2015 +date: 06.03.2024 --- -Split the game into a game and content folder, then add junctions to link them with the dota files. - -Create the junctions: +Split the game into a `game` and `content` folder, then add junctions or symlinks to link them with the Dota files. +## Windows - Create the junctions +For `game` folder, run +```shell mklink /J "C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\" +# 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\ +``` -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\ - +For `content` folder, run +```shell mklink /J "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\" +#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\ +``` + +To remove junctions, simply remove the link directory +```shell +rmdir "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\" -force +``` + +## Linux - Create the symlinks +For `game` folder, run +```shell +ln -s /home/username/games/Steam/steamapps/common/dota2/game/dota_addons/my_custom_game /home/username/workspaces/dota2-workshops/my_custom_game/game +``` + +For `content` folder, run +```shell +ln -s /home/username/games/Steam/steamapps/common/dota2/content/dota_addons/my_custom_game /home/username/workspaces/dota2-workshops/my_custom_game/content +``` -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\ +Remove the symlinks by using +```shell +unlink /home/username/workspaces/dota2-workshops/my_custom_game/content +umlink /home/username/workspaces/dota2-workshops/my_custom_game/game +``` -Now you can do modifications from the steamapps folder and still use Github for version control from a desktop folder. +Now you can do modifications from the steamapps folder and still use Github for version control from a linked folder.