Last active
December 2, 2015 17:30
-
-
Save avtar/71dd356d506ca05739be to your computer and use it in GitHub Desktop.
Set up the GPII framework on Windows 8.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The build process will fail if an empty 'universal' directory exists | |
$strFolderName="c:\vagrant\node_modules" | |
If (Test-Path $strFolderName){ | |
Remove-Item -Recurse -Force -ErrorAction 0 $strFolderName | |
} | |
# Use ASCII characters for the npm tree drawing | |
$env:npm_config_unicode = "false" | |
# Build GPII | |
cd c:\vagrant\windows | |
npm install --ignore-scripts=true | |
grunt --no-color build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if not exist "C:\vagrant\J16.0.1925ENU-64bit.exe" ( | |
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('ftp://ftp.freedomscientific.com/users/hj/private/WebFiles/JAWS/J16.0.1925ENU-64bit.exe', 'C:\vagrant\J16.0.1925ENU-64bit.exe')" <NUL | |
) | |
C:\vagrant\J16.0.1925ENU-64bit.exe /Type Silent | |
REM TODO: JAWS seems to return an exit code other than zero | |
EXIT 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Install Chocolatey | |
powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" <NUL | |
:: Install GPII dependencies | |
choco install git -y | |
choco install mingw -y | |
choco install vcredist2010 -forcex86 -y | |
choco install nodejs -version 0.10.36 -forcex86 -y | |
choco install npm -forcex86 -y | |
choco install nvda -y | |
npm install -g grunt-cli | |
:: Set up Windows firewall | |
netsh advfirewall firewall add rule name="Nodejs" dir=in action=allow program="C:\ProgramData\chocolatey\bin\node.exe" enable=yes | |
netsh advfirewall firewall add rule name="Nodejs" dir=in action=allow program="C:\ProgramData\chocolatey\lib\nodejs.commandline.0.10.36\tools\node.exe" enable=yes | |
:: Boot straight to the desktop | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage" /v OpenAtLogon /t REG_DWORD /d 0 /f | |
:: Disable UAC | |
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_SZ /d 0 /f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment