Tweak again
Some checks failed
Publish Docker image / Push docker image to registry (push) Failing after 5s
Publish release zip / build (push) Has been cancelled

This commit is contained in:
sim0n00ps 2025-05-04 18:11:44 +01:00
parent 296226d1f7
commit 6cae898aa1

View File

@ -38,35 +38,28 @@ jobs:
- name: Copy and patch extra files - name: Copy and patch extra files
run: | run: |
echo "➤ Copying rules.json"
cp ./OF\ DL/rules.json outwin/ cp ./OF\ DL/rules.json outwin/
echo "➤ Making binary executable"
chmod +x ./outlin/OF\ DL chmod +x ./outlin/OF\ DL
echo "➤ Running binary briefly"
cd outwin cd outwin
echo "➤ Running OF DL binary (timeout)"
timeout --preserve-status --kill-after=5s 30s ../outlin/OF\ DL --non-interactive || true timeout --preserve-status --kill-after=5s 30s ../outlin/OF\ DL --non-interactive || true
echo "➤ Binary finished" echo "➤ Binary finished"
echo "➤ Creating folder for CDM" echo "➤ Preparing ffmpeg"
mkdir -p cdm/devices/chrome_1610 mkdir -p cdm/devices/chrome_1610
echo "➤ Downloading ffmpeg"
wget https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip -O ffmpeg.zip wget https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip -O ffmpeg.zip
echo "➤ Download complete"
echo "➤ Unzipping ffmpeg" sudo apt update && sudo apt install -y p7zip-full
unzip -o -q ffmpeg.zip || { echo "Unzip failed"; ls -al; exit 1; } echo "➤ Extracting with 7z"
echo "➤ Unzip complete" 7z x ffmpeg.zip -obin -y > /dev/null
echo "➤ Moving ffmpeg.exe and LICENSE" echo "➤ Moving files"
mv ffmpeg*/bin/ffmpeg.exe . find bin -iname ffmpeg.exe -exec mv {} . \;
mv ffmpeg*/LICENSE LICENSE.ffmpeg find bin -iname LICENSE -exec mv {} LICENSE.ffmpeg
echo "➤ Zipping final release" echo "➤ Creating release zip"
zip ../OFDLV${{ steps.version.outputs.version }}.zip OF\ DL.exe e_sqlite3.dll rules.json config.conf cdm ffmpeg.exe LICENSE.ffmpeg zip ../OFDLV${{ steps.version.outputs.version }}.zip OF\ DL.exe e_sqlite3.dll rules.json config.conf cdm ffmpeg.exe LICENSE.ffmpeg
echo "➤ Zip complete"
cd .. cd ..
- name: Create Gitea release - name: Create Gitea release