Skip to content

fix(installer): extract Python core to user directory and update configs#706

Merged
horizon220222 merged 1 commit intoiflytek:mainfrom
horizon220222:fix/installer-python-core-and-config-updates
Apr 1, 2026
Merged

fix(installer): extract Python core to user directory and update configs#706
horizon220222 merged 1 commit intoiflytek:mainfrom
horizon220222:fix/installer-python-core-and-config-updates

Conversation

@horizon220222
Copy link
Copy Markdown
Contributor

  • Extract python_core.7z to APPDATA during installation
  • Clean up existing python_core before extraction
  • Update scheduler default config to conf.yaml
  • Bump version to 1.1.8

📝 Pull Request 描述 | Description

🎯 变更类型 | Change Type

  • ✨ 新功能 | New Feature
  • 🐛 Bug 修复 | Bug Fix
  • 📚 文档更新 | Documentation
  • 🎨 代码格式/样式 | Code Style
  • ♻️ 重构 | Refactoring
  • ⚡ 性能优化 | Performance
  • ✅ 测试相关 | Tests
  • 🔧 配置变更 | Configuration
  • 🔨 构建/CI | Build/CI
  • 🌐 国际化 | Internationalization
  • ⬆️ 依赖升级 | Dependencies Update

/cc @horizon220222

- Extract python_core.7z to APPDATA during installation
- Clean up existing python_core before extraction
- Update scheduler default config to conf.yaml
- Bump version to 1.1.8
@horizon220222 horizon220222 merged commit c9cdc9c into iflytek:main Apr 1, 2026
1 of 2 checks passed
@horizon220222 horizon220222 deleted the fix/installer-python-core-and-config-updates branch April 1, 2026 02:10
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Electron app version to 1.1.8, changes the scheduler's default configuration file to a YAML format, and adds a cleanup step for the Python core archive in the build script. Feedback indicates that the primary logic for Python core extraction described in the PR summary is missing from the code changes. Additionally, it is recommended to add error handling to the archive deletion command in the build script to ensure build failures are caught.

{
"name": "astron-rpa",
"version": "1.1.6",
"version": "1.1.8",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The pull request title and description mention significant changes such as extracting the Python core to the user directory (APPDATA) and cleaning up the existing core before extraction. However, the current diff only includes a version bump, a default configuration path change, and a build script cleanup. The core logic for the extraction process (likely within the Electron main process or installer configuration) appears to be missing from this PR.

Comment thread build.bat
REM ============================================

echo Compressing python_core directory...
if exist "%SCRIPT_DIR%\%ARCHIVE_DIST_DIR%\python_core.7z" del /f /q "%SCRIPT_DIR%\%ARCHIVE_DIST_DIR%\python_core.7z"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This line correctly cleans up the previous build's archive. However, the PR description mentions 'Clean up existing python_core before extraction'. If this was intended to ensure a clean source directory before compression, you should consider removing the %PYTHON_CORE_DIR% directory earlier in the script (e.g., before line 176), as the current logic skips copying if python.exe already exists. Additionally, consider adding error handling to this command to ensure the build fails if the file cannot be deleted (e.g., due to being locked).

if exist "%SCRIPT_DIR%\%ARCHIVE_DIST_DIR%\python_core.7z" del /f /q "%SCRIPT_DIR%\%ARCHIVE_DIST_DIR%\python_core.7z" || exit /b 1

maomeideliu pushed a commit to maomeideliu/astron-rpa that referenced this pull request Apr 20, 2026
…igs (iflytek#706)

- Extract python_core.7z to APPDATA during installation
- Clean up existing python_core before extraction
- Update scheduler default config to conf.yaml
- Bump version to 1.1.8
doctorbruce pushed a commit that referenced this pull request Apr 21, 2026
…igs (#706)

- Extract python_core.7z to APPDATA during installation
- Clean up existing python_core before extraction
- Update scheduler default config to conf.yaml
- Bump version to 1.1.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant