mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
Fix nested conda pack
This commit is contained in:
65
.github/workflows/conda-pack-build.yml
vendored
65
.github/workflows/conda-pack-build.yml
vendored
@@ -283,29 +283,24 @@ jobs:
|
|||||||
ls -lh dist-package/
|
ls -lh dist-package/
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
- name: Create Windows ZIP archive
|
- name: Finalize Windows distribution package
|
||||||
if: steps.should_build.outputs.should_build == 'true' && matrix.platform == 'win-64'
|
if: steps.should_build.outputs.should_build == 'true' && matrix.platform == 'win-64'
|
||||||
run: |
|
run: |
|
||||||
echo ==========================================
|
echo ==========================================
|
||||||
echo Creating Windows ZIP archive (ZIP64 support for large files)...
|
echo Windows distribution package ready
|
||||||
echo Archive: unilab-pack-${{ matrix.platform }}.zip
|
|
||||||
echo Contents: install_unilab.bat + unilab-env-${{ matrix.platform }}.tar.gz + extras
|
|
||||||
echo.
|
echo.
|
||||||
|
echo Package will be uploaded as artifact
|
||||||
rem Use Python script with ZIP64 support instead of PowerShell Compress-Archive
|
echo GitHub Actions will automatically create ZIP
|
||||||
rem PowerShell Compress-Archive has a 2GB limitation
|
echo.
|
||||||
python scripts\create_zip_archive.py dist-package unilab-pack-${{ matrix.platform }}.zip
|
echo Contents:
|
||||||
|
dir /b dist-package
|
||||||
|
echo.
|
||||||
|
echo Users will download a ZIP containing:
|
||||||
|
echo - install_unilab.bat
|
||||||
|
echo - unilab-env-${{ matrix.platform }}.tar.gz
|
||||||
|
echo - verify_installation.py
|
||||||
|
echo - README.txt
|
||||||
echo ==========================================
|
echo ==========================================
|
||||||
echo.
|
|
||||||
echo Final package created:
|
|
||||||
dir unilab-pack-*
|
|
||||||
echo.
|
|
||||||
echo Users can now:
|
|
||||||
echo 1. Download unilab-pack-${{ matrix.platform }}.zip
|
|
||||||
echo 2. Extract it
|
|
||||||
echo 3. Run install_unilab.bat
|
|
||||||
echo.
|
|
||||||
|
|
||||||
- name: Create Unix/Linux TAR.GZ archive
|
- name: Create Unix/Linux TAR.GZ archive
|
||||||
if: steps.should_build.outputs.should_build == 'true' && matrix.platform != 'win-64'
|
if: steps.should_build.outputs.should_build == 'true' && matrix.platform != 'win-64'
|
||||||
@@ -333,7 +328,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: unilab-pack-${{ matrix.platform }}-${{ github.event.inputs.branch }}
|
name: unilab-pack-${{ matrix.platform }}-${{ github.event.inputs.branch }}
|
||||||
path: unilab-pack-*
|
path: dist-package/
|
||||||
retention-days: 90
|
retention-days: 90
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
@@ -347,17 +342,13 @@ jobs:
|
|||||||
echo Branch: ${{ github.event.inputs.branch }}
|
echo Branch: ${{ github.event.inputs.branch }}
|
||||||
echo Python version: 3.11.11
|
echo Python version: 3.11.11
|
||||||
echo.
|
echo.
|
||||||
echo Package contents:
|
echo Distribution package contents:
|
||||||
echo - unilab-pack-${{ matrix.platform }}.zip
|
dir dist-package
|
||||||
echo - unilab-env-${{ matrix.platform }}.tar.gz (packed environment)
|
|
||||||
echo - install_unilab.bat
|
|
||||||
echo - verify_installation.py
|
|
||||||
echo - README.txt
|
|
||||||
echo.
|
echo.
|
||||||
echo Package size:
|
echo Artifact name: unilab-pack-${{ matrix.platform }}-${{ github.event.inputs.branch }}
|
||||||
dir unilab-pack-*
|
|
||||||
echo.
|
echo.
|
||||||
echo Download the artifact and run the install script!
|
echo After download, extract the ZIP and run:
|
||||||
|
echo install_unilab.bat
|
||||||
echo ==========================================
|
echo ==========================================
|
||||||
|
|
||||||
- name: Display package info (Unix)
|
- name: Display package info (Unix)
|
||||||
@@ -371,15 +362,15 @@ jobs:
|
|||||||
echo "Branch: ${{ github.event.inputs.branch }}"
|
echo "Branch: ${{ github.event.inputs.branch }}"
|
||||||
echo "Python version: 3.11.11"
|
echo "Python version: 3.11.11"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Package contents:"
|
echo "Distribution package contents:"
|
||||||
echo " - unilab-pack-${{ matrix.platform }}.tar.gz"
|
ls -lh dist-package/
|
||||||
echo " - unilab-env-${{ matrix.platform }}.tar.gz (packed environment)"
|
|
||||||
echo " - install_unilab.sh"
|
|
||||||
echo " - verify_installation.py"
|
|
||||||
echo " - README.txt"
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Package size:"
|
echo "Package size (tar.gz):"
|
||||||
ls -lh unilab-pack-*
|
ls -lh unilab-pack-*.tar.gz
|
||||||
echo ""
|
echo ""
|
||||||
echo "Download the artifact and run the install script!"
|
echo "Artifact name: unilab-pack-${{ matrix.platform }}-${{ github.event.inputs.branch }}"
|
||||||
|
echo ""
|
||||||
|
echo "After download:"
|
||||||
|
echo " - Windows/macOS: Extract ZIP, then: tar -xzf unilab-pack-${{ matrix.platform }}.tar.gz"
|
||||||
|
echo " - Linux: Extract ZIP (or download tar.gz directly), run install_unilab.sh"
|
||||||
echo "=========================================="
|
echo "=========================================="
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ def get_readme_content(platform: str, branch: str) -> str:
|
|||||||
archive_ext = "zip"
|
archive_ext = "zip"
|
||||||
install_script = "install_unilab.bat"
|
install_script = "install_unilab.bat"
|
||||||
platform_instructions = """Windows:
|
platform_instructions = """Windows:
|
||||||
1. Extract unilab-pack-win-64.zip
|
1. Extract the downloaded ZIP file
|
||||||
2. Double-click install_unilab.bat (or run in cmd)
|
2. Double-click install_unilab.bat (or run in cmd)
|
||||||
3. Follow the prompts"""
|
3. Follow the prompts"""
|
||||||
else:
|
else:
|
||||||
@@ -52,9 +52,14 @@ def get_readme_content(platform: str, branch: str) -> str:
|
|||||||
install_script = "install_unilab.sh"
|
install_script = "install_unilab.sh"
|
||||||
platform_name = {"linux-64": "linux-64", "osx-64": "osx-64", "osx-arm64": "osx-arm64"}.get(platform, platform)
|
platform_name = {"linux-64": "linux-64", "osx-64": "osx-64", "osx-arm64": "osx-arm64"}.get(platform, platform)
|
||||||
platform_instructions = f"""macOS/Linux:
|
platform_instructions = f"""macOS/Linux:
|
||||||
1. Extract unilab-pack-{platform_name}.tar.gz
|
1. Download and extract unilab-pack-{platform_name}.tar.gz
|
||||||
2. Run: bash install_unilab.sh
|
2. Run: bash install_unilab.sh
|
||||||
3. Follow the prompts"""
|
3. Follow the prompts
|
||||||
|
|
||||||
|
Alternative (if downloaded from GitHub Actions):
|
||||||
|
1. Extract the artifact ZIP file
|
||||||
|
2. Extract unilab-pack-{platform_name}.tar.gz inside
|
||||||
|
3. Run: bash install_unilab.sh"""
|
||||||
|
|
||||||
# Generate README content
|
# Generate README content
|
||||||
readme = f"""UniLabOS Conda-Pack Environment
|
readme = f"""UniLabOS Conda-Pack Environment
|
||||||
|
|||||||
Reference in New Issue
Block a user