Tweak again
This commit is contained in:
parent
6cae898aa1
commit
7b6593db74
@ -46,40 +46,35 @@ jobs:
|
|||||||
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 "➤ Preparing ffmpeg"
|
echo "➤ Creating folder for CDM"
|
||||||
mkdir -p cdm/devices/chrome_1610
|
mkdir -p cdm/devices/chrome_1610
|
||||||
wget https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip -O ffmpeg.zip
|
|
||||||
|
|
||||||
sudo apt update && sudo apt install -y p7zip-full
|
echo "➤ Copying ffmpeg from system folder"
|
||||||
echo "➤ Extracting with 7z"
|
cp /opt/ffmpeg/ffmpeg-*/bin/ffmpeg.exe .
|
||||||
7z x ffmpeg.zip -obin -y > /dev/null
|
cp /opt/ffmpeg/ffmpeg-*/LICENSE LICENSE.ffmpeg
|
||||||
|
|
||||||
echo "➤ Moving files"
|
|
||||||
find bin -iname ffmpeg.exe -exec mv {} . \;
|
|
||||||
find bin -iname LICENSE -exec mv {} LICENSE.ffmpeg
|
|
||||||
|
|
||||||
echo "➤ Creating release zip"
|
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
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Create Gitea release
|
- name: Create Gitea release
|
||||||
uses: ./.gitea-actions/create-release
|
uses: ./.gitea-actions/create-release
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ gitea.ref }}
|
tag_name: ${{ gitea.ref }}
|
||||||
release_name: ${{ steps.version.outputs.version }}
|
release_name: ${{ steps.version.outputs.version }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
|
||||||
- name: Upload release asset
|
- name: Upload release asset
|
||||||
uses: ./.gitea-actions/upload-release-asset
|
uses: ./.gitea-actions/upload-release-asset
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||||
asset_path: ./OFDLV${{ steps.version.outputs.version }}.zip
|
asset_path: ./OFDLV${{ steps.version.outputs.version }}.zip
|
||||||
asset_name: OFDLV${{ steps.version.outputs.version }}.zip
|
asset_name: OFDLV${{ steps.version.outputs.version }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user