choco 自动安装 windows 电脑软件资源

windows 电脑软件资源使用统计

2318d645689fe9bbff2989926f98206c.jpg
类型名称备注
基础javaJDK javaJRE python2/3
浏览器chrome firefox flashplayerplugin
通信微信 QQ 钉钉
NVMnodejs Git svn tortoisesvn
编辑器vscode sublime3 微信web开发者工具 Android studio robo 3T
虚拟virtualbox genymotion teamviewer vagrant
开发调试fiddler4 postman openvpn vnc-viewer winrar
系统工具treesize free cmake imagemagick ccleaner autohotkey.portable
辅助网易有道词典 有道云笔记 迅雷极速版 lantern wps screenToGif Appium
模拟器夜神模拟器 mumu模拟器 靠谱助手

可以使用 choco 命令实现处理资源自动初始化安装。

参考以下实现:

echo 'Start install sources...'

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

choco install -y @(
  chocolatey-core.extension

  jre8
  jdk8
  python
  python2

  nvm

  flashplayerplugin
  googlechrome
  firefox

  virtualbox
  vagrant

  androidstudio
  vscode
  sublimetext3

  tortoisesvn
  git
  svn

  # 7zip.install
  winrar
  openvpn
  fiddler
  postman
  teamviewer
  vnc-viewer

  treesizefree
  cmake
  imagemagick
  ccleaner
  autohotkey.portable

  wps-office-free
  screentogif
  appium-desktop
  tim

  # 自行发布组件
  youdao-cidian
  youdao-ynote
  xunlei-topspeed

  # anaconda3
  # dart-sdk
  # mongodb
)

nodejs.ps1

# 利用 nvm 以下方式自动安装 nodejs 环境

echo 'Install nodejs...'

$Env:NVM_HOME="C:\ProgramData\nvm"
$Env:Path=$Env:Path+";%NVM_HOME%;C:\ProgramData\nvm"
$Env:Path=$Env:Path+";C:\Program Files\nodejs"
$Env:Path=$Env:Path+";%NVM_SYMLINK%;C:\Program Files\nodejs"

nvm install 10.15.3
nvm install 8.15.1
nvm use 8.15.1
node -v
npm -v
npm i nrm -g
nrm use taobao
npm i @vue/cli anyproxy eslint grunt-cli pm2 yarn appium tarojs/cli -g

nvm use 10.15.3
node -v
npm -v
npm i nrm -g
nrm use taobao
npm i react-native-cli expo-cli -g

Install

管理员方式运行 powershell 执行命令安装相关软件

Get-Content ./install.ps1 | PowerShell.exe -noprofile -
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值