Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
ad22530b
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,发现更多精彩内容 >>
提交
ad22530b
编写于
5月 18, 2017
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tfs: win64 package and setup
上级
ba7c0d32
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
30 deletion
+43
-30
build/gulpfile.vscode.win32.js
build/gulpfile.vscode.win32.js
+42
-29
build/win32/code.iss
build/win32/code.iss
+1
-1
未找到文件。
build/gulpfile.vscode.win32.js
浏览文件 @
ad22530b
...
...
@@ -15,8 +15,10 @@ const pkg = require('../package.json');
const
product
=
require
(
'
../product.json
'
);
const
repoPath
=
path
.
dirname
(
__dirname
);
const
buildPath
=
path
.
join
(
path
.
dirname
(
repoPath
),
'
VSCode-win32-ia32
'
);
const
zipPath
=
path
.
join
(
repoPath
,
'
.build
'
,
'
win32-ia32
'
,
'
archive
'
,
'
VSCode-win32-ia32.zip
'
);
const
buildPath
=
arch
=>
path
.
join
(
path
.
dirname
(
repoPath
),
`VSCode-win32-
${
arch
}
`
);
const
zipDir
=
arch
=>
path
.
join
(
repoPath
,
'
.build
'
,
`win32-
${
arch
}
`
,
'
archive
'
);
const
zipPath
=
arch
=>
path
.
join
(
zipDir
(
arch
),
`VSCode-win32-
${
arch
}
.zip`
);
const
setupDir
=
arch
=>
path
.
join
(
repoPath
,
'
.build
'
,
`win32-
${
arch
}
`
,
'
setup
'
);
const
issPath
=
path
.
join
(
__dirname
,
'
win32
'
,
'
code.iss
'
);
const
innoSetupPath
=
path
.
join
(
path
.
dirname
(
path
.
dirname
(
require
.
resolve
(
'
innosetup-compiler
'
))),
'
bin
'
,
'
ISCC.exe
'
);
...
...
@@ -36,37 +38,48 @@ function packageInnoSetup(iss, options, cb) {
.
on
(
'
exit
'
,
()
=>
cb
(
null
));
}
function
buildWin32Setup
(
cb
)
{
const
definitions
=
{
NameLong
:
product
.
nameLong
,
NameShort
:
product
.
nameShort
,
DirName
:
product
.
win32DirName
,
Version
:
pkg
.
version
,
RawVersion
:
pkg
.
version
.
replace
(
/-
\w
+$/
,
''
),
NameVersion
:
product
.
win32NameVersion
,
ExeBasename
:
product
.
nameShort
,
RegValueName
:
product
.
win32RegValueName
,
ShellNameShort
:
product
.
win32ShellNameShort
,
AppMutex
:
product
.
win32MutexName
,
AppId
:
product
.
win32AppId
,
AppUserId
:
product
.
win32AppUserModelId
,
SourceDir
:
buildPath
,
RepoDir
:
repoPath
};
function
buildWin32Setup
(
arch
)
{
return
cb
=>
{
const
definitions
=
{
NameLong
:
product
.
nameLong
,
NameShort
:
product
.
nameShort
,
DirName
:
product
.
win32DirName
,
Version
:
pkg
.
version
,
RawVersion
:
pkg
.
version
.
replace
(
/-
\w
+$/
,
''
),
NameVersion
:
product
.
win32NameVersion
,
ExeBasename
:
product
.
nameShort
,
RegValueName
:
product
.
win32RegValueName
,
ShellNameShort
:
product
.
win32ShellNameShort
,
AppMutex
:
product
.
win32MutexName
,
AppId
:
product
.
win32AppId
,
AppUserId
:
product
.
win32AppUserModelId
,
SourceDir
:
buildPath
(
arch
),
RepoDir
:
repoPath
,
OutputDir
:
setupDir
(
arch
)
};
packageInnoSetup
(
issPath
,
{
definitions
},
cb
);
packageInnoSetup
(
issPath
,
{
definitions
},
cb
);
};
}
gulp
.
task
(
'
clean-vscode-win32-ia32-setup
'
,
util
.
rimraf
(
'
.build/win32-ia32/setup
'
));
gulp
.
task
(
'
vscode-win32-ia32-setup
'
,
[
'
clean-vscode-win32-ia32-setup
'
],
buildWin32Setup
);
gulp
.
task
(
'
clean-vscode-win32-ia32-setup
'
,
util
.
rimraf
(
setupDir
(
'
ia32
'
)
));
gulp
.
task
(
'
vscode-win32-ia32-setup
'
,
[
'
clean-vscode-win32-ia32-setup
'
],
buildWin32Setup
(
'
ia32
'
)
);
function
archiveWin32Setup
(
cb
)
{
const
args
=
[
'
a
'
,
'
-tzip
'
,
zipPath
,
buildPath
,
'
-r
'
]
;
gulp
.
task
(
'
clean-vscode-win32-x64-setup
'
,
util
.
rimraf
(
setupDir
(
'
x64
'
)));
gulp
.
task
(
'
vscode-win32-x64-setup
'
,
[
'
clean-vscode-win32-x64-setup
'
],
buildWin32Setup
(
'
x64
'
))
;
cp
.
spawn
(
_7z
,
args
,
{
stdio
:
'
inherit
'
})
.
on
(
'
error
'
,
cb
)
.
on
(
'
exit
'
,
()
=>
cb
(
null
));
function
archiveWin32Setup
(
arch
)
{
return
cb
=>
{
const
args
=
[
'
a
'
,
'
-tzip
'
,
zipPath
(
arch
),
buildPath
(
arch
),
'
-r
'
];
cp
.
spawn
(
_7z
,
args
,
{
stdio
:
'
inherit
'
})
.
on
(
'
error
'
,
cb
)
.
on
(
'
exit
'
,
()
=>
cb
(
null
));
};
}
gulp
.
task
(
'
clean-vscode-win32-ia32-archive
'
,
util
.
rimraf
(
'
.build/win32-ia32/archive
'
));
gulp
.
task
(
'
vscode-win32-ia32-archive
'
,
[
'
clean-vscode-win32-ia32-archive
'
],
archiveWin32Setup
);
gulp
.
task
(
'
clean-vscode-win32-ia32-archive
'
,
util
.
rimraf
(
zipDir
(
'
ia32
'
)));
gulp
.
task
(
'
vscode-win32-ia32-archive
'
,
[
'
clean-vscode-win32-ia32-archive
'
],
archiveWin32Setup
(
'
ia32
'
));
gulp
.
task
(
'
clean-vscode-win32-x64-archive
'
,
util
.
rimraf
(
zipDir
(
'
x64
'
)));
gulp
.
task
(
'
vscode-win32-x64-archive
'
,
[
'
clean-vscode-win32-x64-archive
'
],
archiveWin32Setup
(
'
x64
'
));
build/win32/code.iss
浏览文件 @
ad22530b
...
...
@@ -14,7 +14,7 @@ AppUpdatesURL=https://code.visualstudio.com/
DefaultDirName={pf}\{#DirName}
DefaultGroupName={#NameLong}
AllowNoIcons=yes
OutputDir={#
RepoDir}\.build\win32-ia32\setup
OutputDir={#
OutputDir}
OutputBaseFilename=VSCodeSetup
Compression=lzma
SolidCompression=yes
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录