Skip to content

Commit

Permalink
Windows script should now work as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
binhonglee committed May 25, 2017
1 parent acfc12e commit 123de79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ echo " "
echo "Installing GUI Tool"
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile("https://github.com/Nemixalone/GUI-tool-for-InstaPy-script/releases/download/0.4/InstaPy-GUI.exe","$pwd\InstaPy-GUI.exe")
mv "$pwd\InstaPy-GUI.exe" "$pwd\..\InstaPy-GUI.exe"
echo " "
cd ..\
echo "Downloading Chrome Driver..."
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile("https://chromedriver.storage.googleapis.com/2.29/chromedriver_win32.zip","$pwd\chromedriver.zip")
echo "Chrome Driver download completed."
echo " "
Expand All @@ -18,16 +21,15 @@ $shell = new-object -com shell.application
$zip = $shell.NameSpace("$pwd\chromedriver.zip")
foreach($item in $zip.items())
{
$shell.Namespace("$pwd\..\assets\").copyhere($item)
$shell.Namespace("$pwd\assets\").copyhere($item)
}
mv "$pwd\..\assets\chromedriver.exe" "$pwd\..\assets\chromedriver"
mv "$pwd\assets\chromedriver.exe" "$pwd\assets\chromedriver"
echo "Unzipping completed."
echo " "
echo "Removing unneeded files..."
rm chromedriver.zip
echo "Removal completed."
echo " "
cd ..\
python setup.py install
echo "Setup is completed."
pause

0 comments on commit 123de79

Please sign in to comment.