Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MrYangLu
vscode
提交
79503a01
V
vscode
项目概览
MrYangLu
/
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,发现更多精彩内容 >>
提交
79503a01
编写于
7月 11, 2017
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make arch a script argument
上级
1e21c702
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
6 deletion
+9
-6
build/lib/snapshotLoader.js
build/lib/snapshotLoader.js
+4
-2
build/lib/snapshotLoader.ts
build/lib/snapshotLoader.ts
+3
-2
build/tfs/linux/build.sh
build/tfs/linux/build.sh
+1
-1
build/tfs/win32/1_build.ps1
build/tfs/win32/1_build.ps1
+1
-1
未找到文件。
build/lib/snapshotLoader.js
浏览文件 @
79503a01
...
...
@@ -11,6 +11,8 @@ var snaps;
var
cp
=
require
(
'
child_process
'
);
var
mksnapshot
=
path
.
join
(
__dirname
,
"
../../node_modules/.bin/
"
+
(
process
.
platform
===
'
win32
'
?
'
mksnapshot.cmd
'
:
'
mksnapshot
'
));
var
product
=
require
(
'
../../product.json
'
);
console
.
log
(
process
.
argv0
);
var
arch
=
/--arch=
(
.*
)
/
.
exec
(
process
.
argv
.
join
(
''
))[
1
];
//
var
loaderFilepath
;
var
startupBlobFilepath
;
...
...
@@ -21,8 +23,8 @@ var snaps;
break
;
case
'
win32
'
:
case
'
linux
'
:
loaderFilepath
=
"
VSCode-
"
+
process
.
platform
+
"
/loader.js
"
;
startupBlobFilepath
=
"
VSCode-
"
+
process
.
platform
+
"
/snapshot_blob.bin
"
;
loaderFilepath
=
"
VSCode-
"
+
process
.
platform
+
"
-
"
+
arch
+
"
/resources/app/out/vs
/loader.js
"
;
startupBlobFilepath
=
"
VSCode-
"
+
process
.
platform
+
"
-
"
+
arch
+
"
/snapshot_blob.bin
"
;
}
loaderFilepath
=
path
.
join
(
__dirname
,
'
../../../
'
,
loaderFilepath
);
startupBlobFilepath
=
path
.
join
(
__dirname
,
'
../../../
'
,
startupBlobFilepath
);
...
...
build/lib/snapshotLoader.ts
浏览文件 @
79503a01
...
...
@@ -14,6 +14,7 @@ namespace snaps {
const
mksnapshot
=
path
.
join
(
__dirname
,
`../../node_modules/.bin/
${
process
.
platform
===
'
win32
'
?
'
mksnapshot.cmd
'
:
'
mksnapshot
'
}
`
);
const
product
=
require
(
'
../../product.json
'
);
const
arch
=
process
.
argv
.
join
(
''
).
match
(
/--arch=
(
.*
)
/
)[
0
];
//
let
loaderFilepath
:
string
;
...
...
@@ -27,8 +28,8 @@ namespace snaps {
case
'
win32
'
:
case
'
linux
'
:
loaderFilepath
=
`VSCode-
${
process
.
platform
}
/resources/app/out/vs/loader.js`
;
startupBlobFilepath
=
`VSCode-
${
process
.
platform
}
/snapshot_blob.bin`
;
loaderFilepath
=
`VSCode-
${
process
.
platform
}
-
${
arch
}
/resources/app/out/vs/loader.js`
;
startupBlobFilepath
=
`VSCode-
${
process
.
platform
}
-
${
arch
}
/snapshot_blob.bin`
;
}
loaderFilepath
=
path
.
join
(
__dirname
,
'
../../../
'
,
loaderFilepath
);
...
...
build/tfs/linux/build.sh
浏览文件 @
79503a01
...
...
@@ -31,7 +31,7 @@ step "Build minified" \
npm run gulp
--
--max_old_space_size
=
4096
"vscode-linux-
$ARCH
-min"
step
"Create loader snapshot"
node build/lib/snapshotLoader.js
node build/lib/snapshotLoader.js
--arch
=
$ARCH
step
"Run unit tests"
\
./scripts/test.sh
--build
--reporter
dot
...
...
build/tfs/win32/1_build.ps1
浏览文件 @
79503a01
...
...
@@ -37,7 +37,7 @@ step "Build minified" {
}
step
"Create loader snapshot"
{
exec
{
&
node
build\lib\snapshotLoader.js
}
exec
{
&
node
build\lib\snapshotLoader.js
--arch
=
$
global
:
arch
}
}
step
"Run unit tests"
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录