mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
Fix one-key installation build for windows
This commit is contained in:
8
.github/workflows/conda-pack-build.yml
vendored
8
.github/workflows/conda-pack-build.yml
vendored
@@ -203,17 +203,11 @@ jobs:
|
|||||||
mamba run -n unilab python scripts/verify_installation.py --auto-install || echo "Warning: Verification script reported issues"
|
mamba run -n unilab python scripts/verify_installation.py --auto-install || echo "Warning: Verification script reported issues"
|
||||||
echo "Environment verification complete!"
|
echo "Environment verification complete!"
|
||||||
|
|
||||||
- name: Conda pack installation (Windows)
|
|
||||||
if: steps.should_build.outputs.should_build == 'true' && matrix.platform == 'win-64'
|
|
||||||
run: |
|
|
||||||
echo Packing unilab environment with conda-pack...
|
|
||||||
mamba install conda-pack -c conda-forge -y
|
|
||||||
|
|
||||||
- name: Pack conda environment (Windows)
|
- name: Pack conda environment (Windows)
|
||||||
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 Packing unilab environment with conda-pack...
|
echo Packing unilab environment with conda-pack...
|
||||||
conda pack -n unilab -o unilab-env-${{ matrix.platform }}.tar.gz --ignore-missing-files
|
mamba activate unilab && conda pack -n unilab -o unilab-env-${{ matrix.platform }}.tar.gz --ignore-missing-files
|
||||||
echo Pack file created:
|
echo Pack file created:
|
||||||
dir unilab-env-${{ matrix.platform }}.tar.gz
|
dir unilab-env-${{ matrix.platform }}.tar.gz
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ Examples:
|
|||||||
with open(output_path, "w", encoding="utf-8") as f:
|
with open(output_path, "w", encoding="utf-8") as f:
|
||||||
f.write(readme_content)
|
f.write(readme_content)
|
||||||
|
|
||||||
print(f"✓ README.txt created: {output_path}")
|
print(f" README.txt created: {output_path}")
|
||||||
print(f" Platform: {args.platform}")
|
print(f" Platform: {args.platform}")
|
||||||
print(f" Branch: {args.branch}")
|
print(f" Branch: {args.branch}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user