mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fixes #28
This commit is contained in:
parent
c522d6ec2d
commit
d649726399
|
@ -222,6 +222,12 @@ function packageTask(platform, arch, opts) {
|
|||
|
||||
var resources = gulp.src('resources/*', { base: '.' });
|
||||
|
||||
if (platform === 'win32') {
|
||||
resources = es.merge(resources, gulp.src(product.icons.file.ico, { base: '.' }));
|
||||
} else if (platform === 'linux') {
|
||||
resources = es.merge(resources, gulp.src(product.icons.application.png, { base: '.' }));
|
||||
}
|
||||
|
||||
var all = es.merge(
|
||||
api,
|
||||
packageJson,
|
||||
|
@ -242,12 +248,6 @@ function packageTask(platform, arch, opts) {
|
|||
result = es.merge(result, gulp.src('resources/win/bin/**', { base: 'resources/win' }));
|
||||
}
|
||||
|
||||
if (platform === 'win32') {
|
||||
result = es.merge(result, gulp.src(product.icons.file.ico, { base: '.' }));
|
||||
} else if (platform === 'linux') {
|
||||
result = es.merge(result, gulp.src(product.icons.application.png, { base: '.' }));
|
||||
}
|
||||
|
||||
return result.pipe(opts.zip ? electron.zfsdest(destination + '.zip') : symdest(destination));
|
||||
};
|
||||
}
|
||||
|
|
10
product.json
10
product.json
|
@ -10,17 +10,17 @@
|
|||
"role": "Editor",
|
||||
"ostypes": ["TEXT", "utxt", "TUTX", "****"],
|
||||
"extensions": ["ascx", "asp", "aspx", "bash", "bash_login", "bash_logout", "bash_profile", "bashrc", "bat", "bowerrc", "c", "cc", "clj", "cljs", "cljx", "clojure", "cmd", "coffee", "config", "cpp", "cs", "cshtml", "csproj", "css", "csx", "ctp", "cxx", "dockerfile", "dot", "dtd", "editorconfig", "edn", "eyaml", "eyml", "fs", "fsi", "fsscript", "fsx", "gemspec", "gitattributes", "gitconfig", "gitignore", "go", "h", "handlebars", "hbs", "hh", "hpp", "htm", "html", "hxx", "ini", "jade", "jav", "java", "js", "jscsrc", "jshintrc", "jshtm", "json", "jsp", "less", "lua", "m", "makefile", "markdown", "md", "mdoc", "mdown", "mdtext", "mdtxt", "mdwn", "mkd", "mkdn", "ml", "mli", "nqp", "p6", "php", "phtml", "pl", "pl6", "pm", "pm6", "pod", "pp", "profile", "properties", "ps1", "psd1", "psgi", "psm1", "py", "r", "rb", "rhistory", "rprofile", "rs", "rt", "scss", "sh", "shtml", "sql", "svg", "svgz", "t", "ts", "txt", "vb", "wxi", "wxl", "wxs", "xaml", "xml", "yaml", "yml", "zsh"],
|
||||
"iconFile": "resources/mac/code_file.icns"
|
||||
"iconFile": "resources/darwin/code_file.icns"
|
||||
}],
|
||||
"icons": {
|
||||
"application": {
|
||||
"png": "resources/linux/code.png",
|
||||
"icns": "resources/mac/code.icns",
|
||||
"ico": "resources/win/code.ico"
|
||||
"icns": "resources/darwin/code.icns",
|
||||
"ico": "resources/win32/code.ico"
|
||||
},
|
||||
"file": {
|
||||
"icns": "resources/mac/code_file.icns",
|
||||
"ico": "resources/win/code_file.ico"
|
||||
"icns": "resources/darwin/code_file.icns",
|
||||
"ico": "resources/win32/code_file.ico"
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 202 KiB After Width: | Height: | Size: 202 KiB |
Loading…
Reference in a new issue