Skip to content

Commit 54c669a

Browse files
committed
Automate dependency setup in GitHub Actions
- Use setup-binaries.sh in GitHub Actions to download Python runtime and FFmpeg - Remove system-level Python and FFmpeg installations in CI - Ensure actions/build.yml and actions/build-artifacts.yml use script-driven setup
1 parent e4332d6 commit 54c669a

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/build-artifacts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
# Install Python dependencies for Windows
3737
cd python-runtime-windows
3838
./python.exe get-pip.py
39-
./Scripts/pip.exe install -r ../requirements.txt
39+
# Wait a moment for pip to be properly installed
40+
sleep 2
41+
./python.exe -m pip install -r ../requirements.txt
4042
4143
- name: Build Windows application
4244
run: npm run build:win

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ jobs:
3737
chmod +x setup-binaries.sh
3838
if [ "${{ matrix.os }}" = "windows-latest" ]; then
3939
./setup-binaries.sh windows
40+
# Install Python dependencies for Windows
4041
cd python-runtime-windows
4142
./python.exe get-pip.py
42-
./Scripts/pip.exe install -r ../requirements.txt
43+
# Wait a moment for pip to be properly installed
44+
sleep 2
45+
./python.exe -m pip install -r ../requirements.txt
4346
else
4447
./setup-binaries.sh macos
4548
fi
46-
4749
- name: Build Windows application
4850
if: matrix.os == 'windows-latest'
4951
run: npm run build:win

setup-binaries.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ setup_windows() {
9494
echo "import site" >> python-runtime-windows/python._pth
9595

9696
print_success "Windows Python runtime downloaded"
97-
print_warning "Note: You'll need to install pip and dependencies manually on Windows:"
98-
print_warning " cd python-runtime-windows && python get-pip.py"
99-
print_warning " Scripts/pip install -r ../requirements.txt"
97+
print_warning "Note: To install dependencies on Windows:"
98+
print_warning " cd python-runtime-windows"
99+
print_warning " python get-pip.py"
100+
print_warning " python -m pip install -r ../requirements.txt"
100101
else
101102
print_warning "Windows Python runtime already exists, skipping..."
102103
fi

0 commit comments

Comments
 (0)