Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0fb99b70
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,发现更多精彩内容 >>
提交
0fb99b70
编写于
3月 29, 2017
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
💚
hopefully fix the linux tfs build
上级
4904bf0d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
17 deletion
+9
-17
build/gulpfile.vscode.linux.js
build/gulpfile.vscode.linux.js
+7
-7
build/lib/optimize.js
build/lib/optimize.js
+1
-5
build/lib/optimize.ts
build/lib/optimize.ts
+1
-5
未找到文件。
build/gulpfile.vscode.linux.js
浏览文件 @
0fb99b70
...
...
@@ -63,10 +63,10 @@ function prepareDebPackage(arch) {
.
pipe
(
replace
(
'
@@LICENSE@@
'
,
product
.
licenseName
))
.
pipe
(
rename
(
'
usr/share/appdata/
'
+
product
.
applicationName
+
'
.appdata.xml
'
));
const
icon
=
gulp
.
src
(
'
resources/linux/code.png
'
,
{
base
:
'
.
'
})
const
icon
=
gulp
.
src
(
'
resources/linux/code.png
'
,
{
base
:
'
.
'
,
buffer
:
false
})
.
pipe
(
rename
(
'
usr/share/pixmaps/
'
+
product
.
applicationName
+
'
.png
'
));
const
code
=
gulp
.
src
(
binaryDir
+
'
/**/*
'
,
{
base
:
binaryDir
})
const
code
=
gulp
.
src
(
binaryDir
+
'
/**/*
'
,
{
base
:
binaryDir
,
buffer
:
false
})
.
pipe
(
rename
(
function
(
p
)
{
p
.
dirname
=
'
usr/share/
'
+
product
.
applicationName
+
'
/
'
+
p
.
dirname
;
}));
let
size
=
0
;
...
...
@@ -111,7 +111,7 @@ function buildDebPackage(arch) {
'
mkdir -p deb
'
,
'
fakeroot dpkg-deb -b
'
+
product
.
applicationName
+
'
-
'
+
debArch
+
'
deb
'
,
'
dpkg-scanpackages deb /dev/null > Packages
'
],
{
cwd
:
'
.build/linux/deb/
'
+
debArch
});
],
{
cwd
:
'
.build/linux/deb/
'
+
debArch
});
}
function
getRpmBuildPath
(
rpmArch
)
{
...
...
@@ -139,7 +139,7 @@ function prepareRpmPackage(arch) {
.
pipe
(
replace
(
'
@@LICENSE@@
'
,
product
.
licenseName
))
.
pipe
(
rename
(
'
usr/share/appdata/
'
+
product
.
applicationName
+
'
.appdata.xml
'
));
const
icon
=
gulp
.
src
(
'
resources/linux/code.png
'
,
{
base
:
'
.
'
})
const
icon
=
gulp
.
src
(
'
resources/linux/code.png
'
,
{
base
:
'
.
'
,
buffer
:
false
})
.
pipe
(
rename
(
'
BUILD/usr/share/pixmaps/
'
+
product
.
applicationName
+
'
.png
'
));
const
code
=
gulp
.
src
(
binaryDir
+
'
/**/*
'
,
{
base
:
binaryDir
})
...
...
@@ -212,13 +212,13 @@ function prepareFlatpak(arch) {
.
pipe
(
replace
(
'
@@LICENSE@@
'
,
product
.
licenseName
))
.
pipe
(
rename
(
'
share/appdata/
'
+
flatpakManifest
.
appId
+
'
.appdata.xml
'
)));
all
.
push
(
gulp
.
src
(
binaryDir
+
'
/**/*
'
,
{
base
:
binaryDir
})
all
.
push
(
gulp
.
src
(
binaryDir
+
'
/**/*
'
,
{
base
:
binaryDir
,
buffer
:
false
})
.
pipe
(
rename
(
function
(
p
)
{
p
.
dirname
=
'
share/
'
+
product
.
applicationName
+
'
/
'
+
p
.
dirname
;
})));
return
es
.
merge
(
all
).
pipe
(
vfs
.
dest
(
destination
));
}
}
;
}
function
buildFlatpak
(
arch
)
{
...
...
@@ -249,7 +249,7 @@ function buildFlatpak(arch) {
}
return
function
(
cb
)
{
require
(
'
flatpak-bundler
'
).
bundle
(
manifest
,
buildOptions
,
cb
);
}
}
;
}
gulp
.
task
(
'
clean-vscode-linux-ia32-deb
'
,
util
.
rimraf
(
'
.build/linux/deb/i386
'
));
...
...
build/lib/optimize.js
浏览文件 @
0fb99b70
...
...
@@ -203,11 +203,7 @@ function uglifyWithCopyrights() {
var
output
=
input
.
pipe
(
flatmap
(
function
(
stream
,
f
)
{
return
stream
.
pipe
(
uglify
({
preserveComments
:
preserveComments
(
f
),
output
:
{
// linux tfs build agent is crashing, does this help?§
max_line_len
:
3200000
}
preserveComments
:
preserveComments
(
f
)
}));
}));
return
es
.
duplex
(
input
,
output
);
...
...
build/lib/optimize.ts
浏览文件 @
0fb99b70
...
...
@@ -275,11 +275,7 @@ function uglifyWithCopyrights(): NodeJS.ReadWriteStream {
const
output
=
input
.
pipe
(
flatmap
((
stream
,
f
)
=>
{
return
stream
.
pipe
(
uglify
({
preserveComments
:
preserveComments
(
<
FileWithCopyright
>
f
),
output
:
{
// linux tfs build agent is crashing, does this help?§
max_line_len
:
3200000
}
preserveComments
:
preserveComments
(
<
FileWithCopyright
>
f
)
}));
}));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录