Git Product home page Git Product logo

eaio's Introduction

eaio (Electron All in One)

pdm-managed

一个通过将磁盘上所有Electron应用中相同文件硬链接到统一位置来减少磁盘占用的解决方案,就像pnpm一样。

GUI 应用管理 GUI 仓库管理

使用介绍

原理

硬链接会将多个文件指向同一磁盘位置,使得多个相同的文件只占用一份空间。

Q&A

  1. Q: 为什么不用更优雅的软链接?

    A: 软链接状态下的electron.exe无法正确判断运行目录(如有解决方法欢迎讨论),且可能因为一些原因造成误删。

  2. Q: 为什么不用electron命令行指定resources路径?

    A: 一些应用会在运行目录下放置额外的.exe.dll文件,指定应用路径可能会造成应用无法找到这些文件。

  3. Q: 只支持 Windows 吗?

    A: 其他系统暂未测试有效性,如本方案可用于其它系统,后续会支持。

注意事项

  1. 本工具会在执行linkcheck操作时,在目标应用所在的磁盘分区下创建.eaio仓库,用于存储硬链接的源文件,如无特殊情况请不要删、改
  2. 本工具的status操作可以检查所有磁盘分区下.eaio仓库中所有版本的完整性和有效性,可用于检查下载完成情况、源文件存在情况、源文件改动情况。
  3. 本工具的download操作可以下载目标版本和架构的Electron预编译程序到指定磁盘分区的.eaio仓库中,如果已存在则会进行覆盖,所以也可用于对源文件的恢复/修复
  4. 请不要对已链接的Electron应用进行文件粉碎操作,可能会导致源文件改动。
  5. 请不要对.eaio仓库进行文件粉碎操作,可能会导致已链接的Electron应用文件改动。

参与开发

  1. 拉取本仓库的代码
  2. 本项目使用pdm作为包管理工具,确保你已安装pdm并配置好其环境
  3. 执行pdm sync以安装依赖到虚拟环境
  4. 修改代码
  5. 推送修改并提交pr

todo

  • 全盘扫描 Electron 应用
  • 验证其他系统有效性

趋势

Star 趋势

eaio's People

Contributors

wankkoree avatar

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.