Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
99f9b13c
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,发现更多精彩内容 >>
提交
99f9b13c
编写于
5月 18, 2017
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
win32-ia32
上级
c33d2824
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
48 addition
and
33 deletion
+48
-33
build/gulpfile.vscode.js
build/gulpfile.vscode.js
+27
-19
build/gulpfile.vscode.win32.js
build/gulpfile.vscode.win32.js
+6
-6
build/tfs/linux/build.sh
build/tfs/linux/build.sh
+3
-0
build/tfs/win32/1_build.ps1
build/tfs/win32/1_build.ps1
+5
-1
build/tfs/win32/2_package.ps1
build/tfs/win32/2_package.ps1
+1
-1
build/tfs/win32/3_upload.ps1
build/tfs/win32/3_upload.ps1
+5
-5
build/win32/code.iss
build/win32/code.iss
+1
-1
未找到文件。
build/gulpfile.vscode.js
浏览文件 @
99f9b13c
...
...
@@ -136,20 +136,27 @@ const config = {
repo
:
product
.
electronRepository
||
void
0
};
gulp
.
task
(
'
clean-electron
'
,
util
.
rimraf
(
'
.build/electron
'
));
function
getElectron
(
arch
=
process
.
arch
)
{
return
()
=>
{
const
electronOpts
=
_
.
extend
({},
config
,
{
platform
:
process
.
platform
,
arch
,
ffmpegChromium
:
true
,
keepDefaultApp
:
true
});
return
gulp
.
src
(
'
package.json
'
)
.
pipe
(
json
({
name
:
product
.
nameShort
}))
.
pipe
(
electron
(
electronOpts
))
.
pipe
(
filter
([
'
**
'
,
'
!**/app/package.json
'
]))
.
pipe
(
vfs
.
dest
(
'
.build/electron
'
));
};
}
gulp
.
task
(
'
electron
'
,
[
'
clean-electron
'
],
()
=>
{
const
platform
=
process
.
platform
;
const
arch
=
process
.
env
.
VSCODE_ELECTRON_PLATFORM
||
(
platform
===
'
win32
'
?
'
ia32
'
:
process
.
arch
);
const
opts
=
_
.
extend
({},
config
,
{
platform
,
arch
,
ffmpegChromium
:
true
,
keepDefaultApp
:
true
});
const
name
=
product
.
nameShort
;
return
gulp
.
src
(
'
package.json
'
)
.
pipe
(
json
({
name
}))
.
pipe
(
electron
(
opts
))
.
pipe
(
filter
([
'
**
'
,
'
!**/app/package.json
'
]))
.
pipe
(
vfs
.
dest
(
'
.build/electron
'
));
});
gulp
.
task
(
'
clean-electron
'
,
util
.
rimraf
(
'
.build/electron
'
));
gulp
.
task
(
'
electron
'
,
[
'
clean-electron
'
],
getElectron
());
gulp
.
task
(
'
electron-ia32
'
,
[
'
clean-electron
'
],
getElectron
(
'
ia32
'
));
gulp
.
task
(
'
electron-x64
'
,
[
'
clean-electron
'
],
getElectron
(
'
x64
'
));
const
languages
=
[
'
chs
'
,
'
cht
'
,
'
jpn
'
,
'
kor
'
,
'
deu
'
,
'
fra
'
,
'
esn
'
,
'
rus
'
,
'
ita
'
];
...
...
@@ -187,9 +194,7 @@ function computeChecksum(filename) {
return
hash
;
}
function
packageTask
(
platform
,
arch
,
opts
)
{
opts
=
opts
||
{};
function
packageTask
(
platform
,
arch
,
opts
=
{})
{
const
destination
=
path
.
join
(
path
.
dirname
(
root
),
'
VSCode
'
)
+
(
platform
?
'
-
'
+
platform
:
''
)
+
(
arch
?
'
-
'
+
arch
:
''
);
platform
=
platform
||
process
.
platform
;
arch
=
platform
===
'
win32
'
?
'
ia32
'
:
arch
;
...
...
@@ -326,19 +331,22 @@ function packageTask(platform, arch, opts) {
const
buildRoot
=
path
.
dirname
(
root
);
gulp
.
task
(
'
clean-vscode-win32
'
,
util
.
rimraf
(
path
.
join
(
buildRoot
,
'
VSCode-win32
'
)));
gulp
.
task
(
'
clean-vscode-win32-ia32
'
,
util
.
rimraf
(
path
.
join
(
buildRoot
,
'
VSCode-win32-ia32
'
)));
gulp
.
task
(
'
clean-vscode-win32-x64
'
,
util
.
rimraf
(
path
.
join
(
buildRoot
,
'
VSCode-win32-x64
'
)));
gulp
.
task
(
'
clean-vscode-darwin
'
,
util
.
rimraf
(
path
.
join
(
buildRoot
,
'
VSCode-darwin
'
)));
gulp
.
task
(
'
clean-vscode-linux-ia32
'
,
util
.
rimraf
(
path
.
join
(
buildRoot
,
'
VSCode-linux-ia32
'
)));
gulp
.
task
(
'
clean-vscode-linux-x64
'
,
util
.
rimraf
(
path
.
join
(
buildRoot
,
'
VSCode-linux-x64
'
)));
gulp
.
task
(
'
clean-vscode-linux-arm
'
,
util
.
rimraf
(
path
.
join
(
buildRoot
,
'
VSCode-linux-arm
'
)));
gulp
.
task
(
'
vscode-win32
'
,
[
'
optimize-vscode
'
,
'
clean-vscode-win32
'
],
packageTask
(
'
win32
'
));
gulp
.
task
(
'
vscode-win32-ia32
'
,
[
'
optimize-vscode
'
,
'
clean-vscode-win32-ia32
'
],
packageTask
(
'
win32
'
,
'
ia32
'
));
gulp
.
task
(
'
vscode-win32-x64
'
,
[
'
optimize-vscode
'
,
'
clean-vscode-win32-x64
'
],
packageTask
(
'
win32
'
,
'
x64
'
));
gulp
.
task
(
'
vscode-darwin
'
,
[
'
optimize-vscode
'
,
'
clean-vscode-darwin
'
],
packageTask
(
'
darwin
'
));
gulp
.
task
(
'
vscode-linux-ia32
'
,
[
'
optimize-vscode
'
,
'
clean-vscode-linux-ia32
'
],
packageTask
(
'
linux
'
,
'
ia32
'
));
gulp
.
task
(
'
vscode-linux-x64
'
,
[
'
optimize-vscode
'
,
'
clean-vscode-linux-x64
'
],
packageTask
(
'
linux
'
,
'
x64
'
));
gulp
.
task
(
'
vscode-linux-arm
'
,
[
'
optimize-vscode
'
,
'
clean-vscode-linux-arm
'
],
packageTask
(
'
linux
'
,
'
arm
'
));
gulp
.
task
(
'
vscode-win32-min
'
,
[
'
minify-vscode
'
,
'
clean-vscode-win32
'
],
packageTask
(
'
win32
'
,
null
,
{
minified
:
true
}));
gulp
.
task
(
'
vscode-win32-ia32-min
'
,
[
'
minify-vscode
'
,
'
clean-vscode-win32-ia32
'
],
packageTask
(
'
win32
'
,
'
ia32
'
,
{
minified
:
true
}));
gulp
.
task
(
'
vscode-win32-x64-min
'
,
[
'
minify-vscode
'
,
'
clean-vscode-win32-x64
'
],
packageTask
(
'
win32
'
,
'
x64
'
,
{
minified
:
true
}));
gulp
.
task
(
'
vscode-darwin-min
'
,
[
'
minify-vscode
'
,
'
clean-vscode-darwin
'
],
packageTask
(
'
darwin
'
,
null
,
{
minified
:
true
}));
gulp
.
task
(
'
vscode-linux-ia32-min
'
,
[
'
minify-vscode
'
,
'
clean-vscode-linux-ia32
'
],
packageTask
(
'
linux
'
,
'
ia32
'
,
{
minified
:
true
}));
gulp
.
task
(
'
vscode-linux-x64-min
'
,
[
'
minify-vscode
'
,
'
clean-vscode-linux-x64
'
],
packageTask
(
'
linux
'
,
'
x64
'
,
{
minified
:
true
}));
...
...
build/gulpfile.vscode.win32.js
浏览文件 @
99f9b13c
...
...
@@ -15,8 +15,8 @@ const pkg = require('../package.json');
const
product
=
require
(
'
../product.json
'
);
const
repoPath
=
path
.
dirname
(
__dirname
);
const
buildPath
=
path
.
join
(
path
.
dirname
(
repoPath
),
'
VSCode-win32
'
);
const
zipPath
=
path
.
join
(
repoPath
,
'
.build
'
,
'
win32
'
,
'
archive
'
,
'
VSCode-win
32.zip
'
);
const
buildPath
=
path
.
join
(
path
.
dirname
(
repoPath
),
'
VSCode-win32
-ia32
'
);
const
zipPath
=
path
.
join
(
repoPath
,
'
.build
'
,
'
win32
-ia32
'
,
'
archive
'
,
'
VSCode-win32-ia
32.zip
'
);
const
issPath
=
path
.
join
(
__dirname
,
'
win32
'
,
'
code.iss
'
);
const
innoSetupPath
=
path
.
join
(
path
.
dirname
(
path
.
dirname
(
require
.
resolve
(
'
innosetup-compiler
'
))),
'
bin
'
,
'
ISCC.exe
'
);
...
...
@@ -57,8 +57,8 @@ function buildWin32Setup(cb) {
packageInnoSetup
(
issPath
,
{
definitions
},
cb
);
}
gulp
.
task
(
'
clean-vscode-win32-
setup
'
,
util
.
rimraf
(
'
.build/win
32/setup
'
));
gulp
.
task
(
'
vscode-win32-
setup
'
,
[
'
clean-vscode-win
32-setup
'
],
buildWin32Setup
);
gulp
.
task
(
'
clean-vscode-win32-
ia32-setup
'
,
util
.
rimraf
(
'
.build/win32-ia
32/setup
'
));
gulp
.
task
(
'
vscode-win32-
ia32-setup
'
,
[
'
clean-vscode-win32-ia
32-setup
'
],
buildWin32Setup
);
function
archiveWin32Setup
(
cb
)
{
const
args
=
[
'
a
'
,
'
-tzip
'
,
zipPath
,
buildPath
,
'
-r
'
];
...
...
@@ -68,5 +68,5 @@ function archiveWin32Setup(cb) {
.
on
(
'
exit
'
,
()
=>
cb
(
null
));
}
gulp
.
task
(
'
clean-vscode-win32-
archive
'
,
util
.
rimraf
(
'
.build/win
32/archive
'
));
gulp
.
task
(
'
vscode-win32-
archive
'
,
[
'
clean-vscode-win
32-archive
'
],
archiveWin32Setup
);
gulp
.
task
(
'
clean-vscode-win32-
ia32-archive
'
,
util
.
rimraf
(
'
.build/win32-ia
32/archive
'
));
gulp
.
task
(
'
vscode-win32-
ia32-archive
'
,
[
'
clean-vscode-win32-ia
32-archive
'
],
archiveWin32Setup
);
build/tfs/linux/build.sh
浏览文件 @
99f9b13c
...
...
@@ -20,6 +20,9 @@ step "Install dependencies" \
step
"Mix in repository from vscode-distro"
\
npm run gulp
--
mixin
step
"Get Electron"
\
npm run gulp
--
"electron-
$ARCH
"
step
"Install distro dependencies"
\
node build/tfs/common/installDistro.js
--arch
=
$ARCH
...
...
build/tfs/win32/1_build.ps1
浏览文件 @
99f9b13c
...
...
@@ -20,12 +20,16 @@ step "Mix in repository from vscode-distro" {
exec
{
&
npm
run
gulp
--
mixin
}
}
step
"Get Electron"
{
exec
{
&
npm
run
gulp
--
electron-ia32
}
}
step
"Install distro dependencies"
{
exec
{
&
node
build\tfs\common\installDistro.js
}
}
step
"Build minified"
{
exec
{
&
npm
run
gulp
--
--max_old_space_size
=
4096
vscode-win32-min
}
exec
{
&
npm
run
gulp
--
--max_old_space_size
=
4096
vscode-win32-
ia32-
min
}
}
step
"Run unit tests"
{
...
...
build/tfs/win32/2_package.ps1
浏览文件 @
99f9b13c
.
.
\build\tfs\win32\lib.ps1
step
"Create archive and setup package"
{
exec
{
&
npm
run
gulp
--
--max_old_space_size
=
4096
vscode-win32-
archive
vscode-win
32-setup
}
exec
{
&
npm
run
gulp
--
--max_old_space_size
=
4096
vscode-win32-
ia32-archive
vscode-win32-ia
32-setup
}
}
done
\ No newline at end of file
build/tfs/win32/3_upload.ps1
浏览文件 @
99f9b13c
...
...
@@ -8,9 +8,9 @@ Param(
$Repo
=
"
$(
pwd
)
"
$Root
= "
$Repo
\..
"
$Exe
= "
$Repo
\.build\win32\setup\VSCodeSetup.exe
"
$Zip
= "
$Repo
\.build\win32
\archive\VSCode-win
32.zip
"
$Build
= "
$Root
\VSCode-win32
"
$Exe
= "
$Repo
\.build\win32
-ia32
\setup\VSCodeSetup.exe
"
$Zip
= "
$Repo
\.build\win32
-ia32\archive\VSCode-win32-ia
32.zip
"
$Build
= "
$Root
\VSCode-win32
-ia32
"
# get version
$PackageJson
= Get-Content -Raw -Path "
$Build
\resources\app\package.json
" | ConvertFrom-Json
...
...
@@ -21,11 +21,11 @@ $env:MOONCAKE_STORAGE_ACCESS_KEY = $mooncakeStorageKey
$
env
:
AZURE_DOCUMENTDB_MASTERKEY
=
$documentDbKey
step "
Publish
archive
" {
exec { & node build/tfs/common/publish.js
$Quality
win32-archive archive "
VSCode-win32-
$Version
.
zip
"
$Version
true
$Zip
}
exec { & node build/tfs/common/publish.js
$Quality
win32-archive archive "
VSCode-win32-
ia32-
$Version
.
zip
"
$Version
true
$Zip
}
}
step "
Publish
setup
package
" {
exec { & node build/tfs/common/publish.js
$Quality
win32 setup "
VSCodeSetup-
$Version
.
exe
"
$Version
true
$Exe
}
exec { & node build/tfs/common/publish.js
$Quality
win32 setup "
VSCodeSetup-
ia32-
$Version
.
exe
"
$Version
true
$Exe
}
}
done
\ No newline at end of file
build/win32/code.iss
浏览文件 @
99f9b13c
...
...
@@ -14,7 +14,7 @@ AppUpdatesURL=https://code.visualstudio.com/
DefaultDirName={pf}\{#DirName}
DefaultGroupName={#NameLong}
AllowNoIcons=yes
OutputDir={#RepoDir}\.build\win32\setup
OutputDir={#RepoDir}\.build\win32
-ia32
\setup
OutputBaseFilename=VSCodeSetup
Compression=lzma
SolidCompression=yes
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录