Skip to content

Commit

Permalink
#378 调整exe图标
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorReid committed Nov 10, 2024
1 parent eed8762 commit 77bbc95
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 1.开发环境

## 1.1.Python

推荐使用 [3.11.9](https://www.python.org/downloads/release/python-3119/)

## 1.2.虚拟环境

普通运行

```shell
pip install -r requirements-dev.txt
```

开发额外

```shell
pip install -r requirements-dev-ext.txt
```

生成最终使用

```shell
pip-compile --annotation-style=line --index-url=https://pypi.tuna.tsinghua.edu.cn/simple --output-file=requirements-prod.txt requirements-dev.txt
```

# 2.打包

## 2.1.安装器

生成spec文件

```shell

```
Binary file added assets/ui/installer_app.ico
Binary file not shown.
3 changes: 1 addition & 2 deletions requirements-prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --annotation-style=line --index-url=https://pypi.tuna.tsinghua.edu.cn/simple --output-file=requirements-prod-2.txt requirements-dev-2.txt
# pip-compile --annotation-style=line --index-url=https://pypi.tuna.tsinghua.edu.cn/simple --output-file=requirements-prod.txt requirements-dev.txt
#
--index-url https://pypi.tuna.tsinghua.edu.cn/simple

coloredlogs==15.0.1 # via onnxruntime-directml
darkdetect==0.8.0 # via pyside6-fluent-widgets
Expand Down
4 changes: 3 additions & 1 deletion src/one_dragon/envs/git_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ def clone_repository(self, progress_callback: Optional[Callable[[float, str], No
if progress_callback is not None:
progress_callback(-1, msg)
repo_url = self.get_git_repository(for_clone=True)
result = cmd_utils.run_command([self.env_config.git_path, 'clone', '-b', self.project_config.project_git_branch,
result = cmd_utils.run_command([self.env_config.git_path, 'clone',
'--depth', '10',
'-b', self.project_config.project_git_branch,
repo_url, temp_folder])
if result is None:
return False, '克隆仓库失败'
Expand Down
2 changes: 1 addition & 1 deletion src/sr_od/gui/sr_full_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, ctx: SrContext, parent=None):
win_title='%s %s' % (
gt(ctx.project_config.project_name, 'ui'), ctx.one_dragon_config.current_active_instance.name),
project_config=ctx.project_config,
app_icon='zzz_logo.ico',
app_icon='full_app.ico',
parent=parent
)

Expand Down
2 changes: 1 addition & 1 deletion src/sr_od/gui/sr_installer_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, ctx: OneDragonEnvContext, win_title: str, parent=None):
ctx=ctx,
win_title=win_title,
parent=parent,
app_icon='zzz_logo.ico'
app_icon='installer_app.ico'
)

def create_sub_interface(self):
Expand Down

0 comments on commit 77bbc95

Please sign in to comment.