mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2025-12-08 19:26:19 +00:00
23 lines
844 B
Batchfile
Executable File
23 lines
844 B
Batchfile
Executable File
:: Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
|
|
:: Use of this source code is governed by a MIT-style
|
|
:: license that can be found in the LICENSE file.
|
|
::
|
|
:: For more information, please visit: https://github.com/tengge1/ShadowEditor
|
|
:: You can also visit: https://gitee.com/tengge1/ShadowEditor
|
|
|
|
@echo off
|
|
|
|
:: For some well-known reasons, we can not install packages from golang.org in china;
|
|
:: and install packages from github.com is extremely slow
|
|
|
|
echo set go proxy
|
|
call go env -w GO111MODULE=on
|
|
call go env -w GOPROXY=https://goproxy.cn
|
|
|
|
:: For some well-known reasons, it is slow to install packages from https://www.npmjs.com/ in china.
|
|
:: So, we can set a proxy to make it faster to install third-party dependencies.
|
|
|
|
call echo set nodejs proxy
|
|
call npm config set registry https://registry.npm.taobao.org/
|
|
|
|
pause |