Apply Choco Best Practices (#77)
* (maint) Corrected whitespace * (GH-15) Apply Choco Best Practices
This commit is contained in:
committed by
Yosef Durr
parent
f59fe23b7c
commit
ee2a2cf65b
@@ -36,12 +36,12 @@ executeScript "WSL.ps1";
|
||||
RefreshEnv
|
||||
executeScript "Docker.ps1";
|
||||
|
||||
choco install powershell-core
|
||||
choco install azure-cli
|
||||
choco install -y powershell-core
|
||||
choco install -y azure-cli
|
||||
Install-Module -Force Az
|
||||
Install-Module -Force posh-git
|
||||
choco install microsoftazurestorageexplorer
|
||||
choco install terraform
|
||||
choco install -y microsoftazurestorageexplorer
|
||||
choco install -y terraform
|
||||
|
||||
# Install tools in WSL instance
|
||||
write-host "Installing tools inside the WSL distro..."
|
||||
@@ -49,8 +49,8 @@ Ubuntu1804 run apt install ansible -y
|
||||
Ubuntu1804 run apt install nodejs -y
|
||||
|
||||
# personalize
|
||||
choco install microsoft-teams
|
||||
choco install office365business
|
||||
choco install -y microsoft-teams
|
||||
choco install -y office365business
|
||||
|
||||
# checkout recent projects
|
||||
mkdir C:\github
|
||||
|
||||
10
dev_app.ps1
10
dev_app.ps1
@@ -1,4 +1,4 @@
|
||||
# Description: Boxstarter Script
|
||||
# Description: Boxstarter Script
|
||||
# Author: Microsoft
|
||||
# Common dev settings for desktop app development
|
||||
|
||||
@@ -28,15 +28,15 @@ executeScript "RemoveDefaultApps.ps1";
|
||||
executeScript "CommonDevTools.ps1";
|
||||
|
||||
#--- Tools ---
|
||||
#--- Installing VS and VS Code with Git
|
||||
#--- Installing VS and VS Code with Git
|
||||
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
|
||||
# visualstudio2017community
|
||||
# visualstudio2017community
|
||||
# visualstudio2017professional
|
||||
# visualstudio2017enterprise
|
||||
|
||||
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
|
||||
choco install -y visualstudio2017community --package-parameters="'--add Microsoft.VisualStudio.Component.Git'"
|
||||
Update-SessionEnvironment #refreshing env due to Git install
|
||||
|
||||
#--- UWP Workload and installing Windows Template Studio ---
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Description: Boxstarter Script
|
||||
# Description: Boxstarter Script
|
||||
# Author: Microsoft
|
||||
# Common dev settings for desktop app development
|
||||
|
||||
@@ -28,15 +28,15 @@ executeScript "RemoveDefaultApps.ps1";
|
||||
executeScript "CommonDevTools.ps1";
|
||||
|
||||
#--- Tools ---
|
||||
#--- Installing VS and VS Code with Git
|
||||
#--- Installing VS and VS Code with Git
|
||||
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
|
||||
# visualstudio2017community
|
||||
# visualstudio2017community
|
||||
# visualstudio2017professional
|
||||
# visualstudio2017enterprise
|
||||
|
||||
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
|
||||
choco install -y visualstudio2017community --package-parameters="'--add Microsoft.VisualStudio.Component.Git'"
|
||||
Update-SessionEnvironment #refreshing env due to Git install
|
||||
|
||||
#--- UWP Workload and installing Windows Template Studio ---
|
||||
@@ -46,4 +46,4 @@ choco install -y visualstudio2017-workload-manageddesktop
|
||||
#--- reenabling critial items ---
|
||||
Enable-UAC
|
||||
Enable-MicrosoftUpdate
|
||||
Install-WindowsUpdate -acceptEula
|
||||
Install-WindowsUpdate -acceptEula
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Description: Boxstarter Script
|
||||
# Description: Boxstarter Script
|
||||
# Author: Microsoft
|
||||
# Common dev settings for desktop app development
|
||||
|
||||
@@ -28,15 +28,15 @@ executeScript "RemoveDefaultApps.ps1";
|
||||
executeScript "CommonDevTools.ps1";
|
||||
|
||||
#--- Tools ---
|
||||
#--- Installing VS and VS Code with Git
|
||||
#--- Installing VS and VS Code with Git
|
||||
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
|
||||
# visualstudio2017community
|
||||
# visualstudio2017community
|
||||
# visualstudio2017professional
|
||||
# visualstudio2017enterprise
|
||||
|
||||
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
|
||||
choco install -y visualstudio2017community --package-parameters="'--add Microsoft.VisualStudio.Component.Git'"
|
||||
Update-SessionEnvironment #refreshing env due to Git install
|
||||
|
||||
#--- UWP Workload and installing Windows Template Studio ---
|
||||
@@ -46,4 +46,4 @@ choco install -y visualstudio2017-workload-nativedesktop
|
||||
#--- reenabling critial items ---
|
||||
Enable-UAC
|
||||
Enable-MicrosoftUpdate
|
||||
Install-WindowsUpdate -acceptEula
|
||||
Install-WindowsUpdate -acceptEula
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Description: Boxstarter Script
|
||||
# Description: Boxstarter Script
|
||||
# Author: Microsoft
|
||||
# Common dev settings for desktop app development
|
||||
|
||||
@@ -28,15 +28,15 @@ executeScript "RemoveDefaultApps.ps1";
|
||||
executeScript "CommonDevTools.ps1";
|
||||
|
||||
#--- Tools ---
|
||||
#--- Installing VS and VS Code with Git
|
||||
#--- Installing VS and VS Code with Git
|
||||
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
|
||||
# visualstudio2017community
|
||||
# visualstudio2017community
|
||||
# visualstudio2017professional
|
||||
# visualstudio2017enterprise
|
||||
|
||||
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
|
||||
choco install -y visualstudio2017community --package-parameters="'--add Microsoft.VisualStudio.Component.Git'"
|
||||
Update-SessionEnvironment #refreshing env due to Git install
|
||||
|
||||
#--- UWP Workload and installing Windows Template Studio ---
|
||||
@@ -48,4 +48,4 @@ executeScript "GetUwpSamplesOffGithub.ps1";
|
||||
#--- reenabling critial items ---
|
||||
Enable-UAC
|
||||
Enable-MicrosoftUpdate
|
||||
Install-WindowsUpdate -acceptEula
|
||||
Install-WindowsUpdate -acceptEula
|
||||
|
||||
@@ -35,11 +35,11 @@ executeScript "WSL.ps1";
|
||||
RefreshEnv
|
||||
executeScript "Docker.ps1";
|
||||
|
||||
choco install powershell-core
|
||||
choco install azure-cli
|
||||
choco install -y powershell-core
|
||||
choco install -y azure-cli
|
||||
Install-Module -Force Az
|
||||
choco install microsoftazurestorageexplorer
|
||||
choco install terraform
|
||||
choco install -y microsoftazurestorageexplorer
|
||||
choco install -y terraform
|
||||
|
||||
# Install tools in WSL instance
|
||||
write-host "Installing tools inside the WSL distro..."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
# tools we expect devs across many scenarios will want
|
||||
choco install -y vscode
|
||||
choco install -y git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"'
|
||||
choco install -y git --package-parameters="'/GitAndUnixToolsOnPath /WindowsTerminal'"
|
||||
choco install -y python
|
||||
choco install -y 7zip.install
|
||||
choco install -y sysinternals
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Using vscode as a default IDE
|
||||
choco install -y vscode
|
||||
choco install -y git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"'
|
||||
choco install -y git --package-parameters="'/GitAndUnixToolsOnPath /WindowsTerminal'"
|
||||
|
||||
@@ -1 +1 @@
|
||||
choco install -y Microsoft-Hyper-V-All -source windowsFeatures
|
||||
choco install -y Microsoft-Hyper-V-All --source="'windowsFeatures'"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Install python
|
||||
choco install python --version 3.5.4 -y
|
||||
choco install -y python --version=3.5.4
|
||||
|
||||
# Refresh path
|
||||
refreshenv
|
||||
@@ -16,4 +16,4 @@ pip install tensorflow
|
||||
pip install keras
|
||||
|
||||
# Get Visual Studio C++ Redistributables
|
||||
choco install vcredist2015
|
||||
choco install -y vcredist2015
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures
|
||||
choco install -y Microsoft-Windows-Subsystem-Linux --source="'windowsfeatures'"
|
||||
|
||||
#--- Ubuntu ---
|
||||
# TODO: Move this to choco install once --root is included in that package
|
||||
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing
|
||||
Add-AppxPackage -Path ~/Ubuntu.appx
|
||||
# run the distro once and have it install locally with root user, unset password
|
||||
|
||||
|
||||
RefreshEnv
|
||||
Ubuntu1804 install --root
|
||||
Ubuntu1804 run apt update
|
||||
|
||||
Reference in New Issue
Block a user