-
Notifications
You must be signed in to change notification settings - Fork 48
How to use develop version of SnipeItPS
There's could be times when you want to test develop version of SnipeItPS. Develop version have no installer or package to download. You have to use git to download SnipeItPS code and manually install module to powershell module directory.
Following guide is for Windows, but most of it will work macos or linux as long you have git and powershell installed.
Remove-Module SnipeItPS
Uninstall-Module SnipeItPS
You can install any git to you system. I will assume that you have installed Git for Windows. For those who are new to git installer have many options, but don't worry installing with default options will work fine.
After you have installed it, open folder where you want download code to. Do now use powershell modules directory as codebase have folder structure that contains files and folders that should not be installed to modules directory. So you can use for example My Documents folder.
Right click selected folder background and from context menu select "Git Bash here"
To opened git prompt enter following commands to download code and which to develop branch. Don't worry about braches right now, those are used to separate published code from development version.
git clone https://github.com/snazy2000/SnipeitPS.git
git checkout develop
Thats it, now you use windows explorer and select second SnipeItPS folder inside first SnipeitPS folder. That one what contains only Private, Public folder and two other files. This is module folder that you will copy to powershells.
Right click folder, select copy and paste folder to modules folder.
Import-Module SnipeItPS
(get-module SnipeItPS).path
It should print out folder location where you copy folder to like:
C:\Users\petasi\Documents\WindowsPowerShell\Modules\SnipeitPS\SnipeItPS.psm1
Open git bash inside SnipeITPS folder that you cloned. From the just jus
git pull
And then copy and replace previous folder in powershell module folder.