如何构建发布版 vscode 版本 [英] How to build release vscode version

查看:69
本文介绍了如何构建发布版 vscode 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是针对开源 vscode(在 MIT 许可下),而不是 VS Code.我昨天花了很多时间试图找出如何构建某种发布版本.我的意思是,就像在 Visual Studio 中一样,我们有调试"和发布"版本.我是C#开发者,vscode都是基于web技术的,这么说吧.在大学里做过一些 javascript,现在是历史.我不知道从哪里开始.任何人都可以指出我正确的方向以及要学习的内容吗?对于初学者,如何使用自定义 exe 生成工作文件夹?

this question is for open source vscode(which is under MIT license), not VS Code. I spent yesterday trying to find out how to build some kind of release version. By that I mean, like in Visual Studio we have "Debug" and "Release" build. I am C# developer, and vscode is all based on web technology, to say it like that. Did some javascript in college, history now. I don't know where to start. Can anyone point me in the right direction and what to learn? For starters, just how to produce working folder with customized exe?

我发现了什么:我看到它与电子一起运行,按照 GitHub 上的从源代码构建和运行"的说明以调试模式启动它,但它是调试,我读到我需要将它放在电子应用程序"文件夹或包中,尝试过,但没有运气,不知道是哪些文件.完全缺乏知识.我找不到任何类似这个问题的教程,或者只是在其他如何用 vscode 构建某些东西"的海洋中看不到它,而不是 vscode 本身.谢谢你,我希望我对冗长的文字和糟糕的英语感到抱歉

What I did find out: I see that it runs with electron, started it in debug mode following instructions "Build and Run From Source" on GitHub, but it is debug, I read that I need to put it in electron "app" folder or pack, tried, but without luck, don't know which files. Total lack of knowledge. I couldn't find any tutorial like this question, or just couldn't see it in sea of other "how to do build something with vscode" but not vscode itself. Thank you, I hope I was clear and sorry for long text and lousy English

推荐答案

经过几天的阅读和学习,我确实找到了答案.对于windows构建有gulp任务,在项目目录gulp vscode-win32"中输入console,在名为VSCode-win32"的vscode目录之外找到准备使用的构建,其他构建任务在gulpfile.vscode.js".要学习,请阅读 gulp、electron、Node.js 以及它们如何协同工作和文件结构,从那里您可以了解它们如何协同工作以及如何进行自定义.

After couple of days of reading and learning I did find the answer. For windows build there is gulp task, type in console while in project directory "gulp vscode-win32", find ready to use build outside of vscode directory named "VSCode-win32", other build tasks are in "gulpfile.vscode.js". For learning, read about gulp, electron, Node.js, and how they work together, and file structure, from there you can understand how they work together and how to customize.

这篇关于如何构建发布版 vscode 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆