Giter VIP home page Giter VIP logo

Comments (7)

waruqi avatar waruqi commented on July 24, 2024

你好,这个确实是一个问题,之后有时间我抽空优化下。。

其中 xmake/packages目前只是临时方案,之后等把自动包依赖管理和下载搞定后,这个目录就可以移除了。。

core/tool主要用于windows下的编译安装,之前也是为了考虑大小问题,用7z进行了压缩,之后windows下可以改成vsproject,来进行编译,不依赖core/tool中的msys工具链,就会小很多。。

谢谢。

from xmake.

lc-soft avatar lc-soft commented on July 24, 2024

@waruqi 貌似移除 xmake/packages 后, git 仓库的版本历史依然会保留这些文件,仓库体积不会缩减。。。

from xmake.

lc-soft avatar lc-soft commented on July 24, 2024

关于 windows 下的编译安装,可以在脚本里做一下判断,如果当前系统为 windows 时自动下载 core/tool 这些东西,这样对于 linux 用户而言就不用花时间下载这些用不到的文件了。

from xmake.

waruqi avatar waruqi commented on July 24, 2024

到时候我改成 vsproject后,core/tool 我会整个删了的。。不需要在下载的时候判断。。

等删掉这些目录后,可以通过git gc压缩下历史信息,来减少大小,而且下载安装,并不需要下载整个xmake的git库,只需要:

$ git clone repo --detph 1 

只下载当前的最近commit版本,不下载历史版本就行了。。

from xmake.

lc-soft avatar lc-soft commented on July 24, 2024

@waruqi OK。

from xmake.

waruqi avatar waruqi commented on July 24, 2024

dev分支 我已经对xmake的源码和git库大小进行了裁剪优化。

  • 在windows上,使用xmake进行自举构建,移除整个core/tool目录
  • 移除xmake/packages目录,这个只有模板有用,现在暂时不内置进去,新建模板的时候,先手动放置,以后再做成自动包依赖下载和编译。

现在从github上直接下载整个xmake-dev.zip的压缩包,只需要3.2M,而git clone repo --depth 1需要下载15M。。

建议在脚本中通过直接下载zip的源码包进行安装,3.2M 下载应该很快的。。

如果想要进一步提升下载速度,可以从coding/osc的镜像git库中进行下载,这两个跟github都是同步更新的,下载很快。。

我这里测试从coding下载整个zip源码包,不到10s左右。。

目前还没有merge到master,等之后测试稳定后,我会merge过去,你可以先用dev的测试下。。

谢谢!

from xmake.

lc-soft avatar lc-soft commented on July 24, 2024

@waruqi 好的。

from xmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.