Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
feat: 准备打包
Browse files Browse the repository at this point in the history
  • Loading branch information
WankkoRee committed May 22, 2023
1 parent 8aa39e1 commit 03b2fa1
Show file tree
Hide file tree
Showing 10 changed files with 695 additions and 12 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@ usage: eaio {link,l,check,c,status,s,download,d,help,h} ...
3. 执行`pdm sync`以安装依赖到虚拟环境
4. 修改代码
5. 推送修改并提交pr

## todo

- [ ] 下载可设置代理
- [ ] 优化输出显示效果
- [ ] 全盘扫描 Electron 应用
- [ ] 验证其他系统有效性
Empty file added eaio/__init__.py
Empty file.
8 changes: 4 additions & 4 deletions main.py → eaio/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

from loguru import logger

from check import check
from download import download
from link import link
from status import status
from eaio.check import check
from eaio.download import download
from eaio.link import link
from eaio.status import status


def main():
Expand Down
2 changes: 1 addition & 1 deletion check.py → eaio/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from loguru import logger
import pefile

from utils import dir_tree, download_electron, file_crc
from eaio.utils import dir_tree, download_electron, file_crc


def is_electron_exe(path: Path) -> tuple[str, str] | None:
Expand Down
2 changes: 1 addition & 1 deletion download.py → eaio/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from loguru import logger

from utils import download_electron
from eaio.utils import download_electron


def download(drive: Path, version: str, arch: str):
Expand Down
4 changes: 2 additions & 2 deletions link.py → eaio/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from loguru import logger

from check import find_electron_exe
from utils import dir_tree, download_electron, file_crc
from eaio.check import find_electron_exe
from eaio.utils import dir_tree, download_electron, file_crc


def create_link(repo: Path, repo_name: Path | str, target: Path, target_name: Path | str):
Expand Down
2 changes: 1 addition & 1 deletion status.py → eaio/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from loguru import logger

from utils import get_drives, file_crc
from eaio.utils import get_drives, file_crc


def status():
Expand Down
File renamed without changes.
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

[project]
name = "electron-all-in-one"
version = "0.1.0"
description = ""
description = "一个通过将磁盘上所有 Electron 应用中相同文件硬链接到统一位置来减少磁盘占用的解决方案,就像 pnpm 一样。"
authors = [
{name = "Wankko Ree", email = "[email protected]"},
]
Expand All @@ -13,8 +12,11 @@ dependencies = [
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
license = {text = "GPLv3"}

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[project.scripts]
eaio = "eaio.__main__:main"

0 comments on commit 03b2fa1

Please sign in to comment.