Skip to content

Commit

Permalink
Run youtube_dl commands in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovenoboyo committed Jan 22, 2025
1 parent 3d0456c commit 9f89ead
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- platform: "ubuntu-22.04"

runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -49,7 +52,6 @@ jobs:

- name: build extensions
run: make
shell: bash

- name: Generate manifest
run: python3 gen-manifest.py
Expand Down
4 changes: 2 additions & 2 deletions youtube_dl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ all: install-deps build copy pack
install-deps:
python -m venv .venv
ls -l `which sh`
source .venv/bin/activate && pip install git+https://github.com/Moosync/wasm-extension-runner/#subdirectory=wasm-extension-py && pip install yt-dlp
bash -c "source .venv/bin/activate && pip install git+https://github.com/Moosync/wasm-extension-runner/#subdirectory=wasm-extension-py && pip install yt-dlp"

build:
mkdir -p $(DIST_DIR)
source .venv/bin/activate && moosync-edk extension.py -o $(DIST_DIR)/ext.wasm
bash -c "source .venv/bin/activate && moosync-edk extension.py -o $(DIST_DIR)/ext.wasm"

opt:
wasm-opt -Oz $(DIST_DIR)/ext.wasm -o $(DIST_DIR)/ext.wasm
Expand Down

0 comments on commit 9f89ead

Please sign in to comment.