Sync languages and arabic support #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
branches: [release] | |
permissions: | |
contents: write | |
jobs: | |
build_and_release: | |
runs-on: ${{ matrix.os }} | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Linux Build | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo snap install snapcraft --classic | |
wget "https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_linux_amd64" | |
mv ffmpeg_linux_amd64 ffmpeg | |
chmod +x ffmpeg | |
npm i | |
npx electron-builder -l --publish=always | |
npm run gh-linux | |
- name: Macos Build | |
if: matrix.os == 'macos-latest' | |
run: | | |
curl https://evermeet.cx/ffmpeg/ffmpeg-6.0.zip -o ffmpeg.zip | |
unzip ffmpeg.zip | |
chmod +x ffmpeg | |
rm ffmpeg.zip | |
npm i | |
npm run gh-mac | |
- name: Windows Build | |
if: matrix.os == 'windows-latest' | |
run: | | |
Invoke-WebRequest -Uri "https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg.exe" -OutFile ffmpeg.exe | |
npm i | |
npm run gh-windows | |
# - name: Upload Artifacts | |
# id: upload-artifacts | |
# uses: softprops/action-gh-release@v1 | |
# with: | |
# files: | | |
# tgpt-linux-amd64 | |
# tgpt-linux-i386 | |
# tgpt-linux-arm64 | |
# tgpt-amd64.exe | |
# tgpt-i386.exe | |
# tgpt-mac-amd64 | |
# tgpt-mac-arm64 | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# draft: true | |
# tag_name: v | |
# name: tgpt | |
#Windows | |
# Invoke-WebRequest -Uri "https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.0-latest-win64-gpl-6.0.zip" -OutFile ffmpeg.zip | |
# Expand-Archive -Path ".\ffmpeg.zip" -DestinationPath ".\ffmpeg" | |
# pwd | |
# cp "D:\a\ytDownloader\ffmpeg\bin\ffmpeg.exe" .\ffmpeg.exe | |
# Remove-Item -Recurse -Force ffmpeg | |
# Remove-Item -Force ffmpeg.zip |