Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
838ada36
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
838ada36
编写于
8月 09, 2016
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make code launchers specific on the flavor
上级
b7a19b42
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
28 addition
and
18 deletion
+28
-18
scripts/code.sh
scripts/code.sh
+10
-10
scripts/test.bat
scripts/test.bat
+7
-1
scripts/test.sh
scripts/test.sh
+11
-7
未找到文件。
scripts/code.sh
浏览文件 @
838ada36
...
...
@@ -10,15 +10,19 @@ fi
function
code
()
{
cd
$ROOT
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
NAME
=
`
node
-p
"require('./product.json').nameShort"
`
CODE
=
"./.build/electron/
$NAME
.app/Contents/MacOS/Electron"
else
NAME
=
`
node
-p
"require('./product.json').applicationName"
`
CODE
=
".build/electron/code-oss"
fi
# Node modules
test
-d
node_modules
||
./scripts/npm.sh
install
# Get electron
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
test
-d
.build/electron/Code
\
-
\
OSS.app
||
./node_modules/.bin/gulp electron
else
test
-d
.build/electron/code-oss
||
./node_modules/.bin/gulp electron
fi
test
-f
"
$CODE
"
||
./node_modules/.bin/gulp electron
# Build
test
-d
out
||
./node_modules/.bin/gulp compile
...
...
@@ -31,11 +35,7 @@ function code() {
export
ELECTRON_ENABLE_STACK_DUMPING
=
1
# Launch Code
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
exec
./.build/electron/Code
\
-
\
OSS.app/Contents/MacOS/Electron
.
"
$@
"
else
exec
./.build/electron/code-oss
.
"
$@
"
fi
exec
"
$CODE
"
.
"
$@
"
}
code
"
$@
"
scripts/test.bat
浏览文件 @
838ada36
...
...
@@ -9,7 +9,13 @@ if not "%BUILD_BUILDID%" == "" (
)
pushd
%~dp0
\..
.\.build\electron\code
-oss-dev
.exe .\node_modules\mocha\bin\_mocha
%
*
for
/f
"tokens=2 delims=:,"
%%a
in
(
'findstr /R /C:"\"nameShort\":.*" product.json'
)
do
set
NAMESHORT
=
%%~a
set
NAMESHORT
=
%NAMESHORT
:
"=
%
set NAMESHORT=
%NAMESHORT
:"
=
%
.exe
set
CODE
=
".build\electron\
%NAMESHORT%
"
%CODE%
.\node_modules\mocha\bin\_mocha
%
*
popd
endlocal
...
...
scripts/test.sh
浏览文件 @
838ada36
...
...
@@ -10,15 +10,19 @@ fi
cd
$ROOT
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
NAME
=
`
node
-p
"require('./product.json').nameShort"
`
CODE
=
"./.build/electron/
$NAME
.app/Contents/MacOS/Electron"
else
NAME
=
`
node
-p
"require('./product.json').applicationName"
`
CODE
=
".build/electron/code-oss"
fi
# Node modules
test
-d
node_modules
||
./scripts/npm.sh
install
# Get electron
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
test
-d
.build/electron/Code
\
-
\
OSS.app
||
./node_modules/.bin/gulp electron
else
test
-d
.build/electron/code-oss
||
./node_modules/.bin/gulp electron
fi
test
-f
"
$CODE
"
||
./node_modules/.bin/gulp electron
# Build
test
-d
out
||
./node_modules/.bin/gulp compile
...
...
@@ -26,10 +30,10 @@ test -d out || ./node_modules/.bin/gulp compile
# Unit Tests
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
cd
$ROOT
;
ulimit
-n
4096
;
ATOM_SHELL_INTERNAL_RUN_AS_NODE
=
1
\
./.build/electron/Code
\
-
\
OSS.app/Contents/MacOS/Electron
\
"
$CODE
"
\
node_modules/mocha/bin/_mocha
$*
else
cd
$ROOT
;
ATOM_SHELL_INTERNAL_RUN_AS_NODE
=
1
\
./.build/electron/code-oss
\
"
$CODE
"
\
node_modules/mocha/bin/_mocha
$*
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录