Separate builds for mac x64 and arm and add arch info to filename

develop
aandrew-me 1 year ago
parent b2b79336f1
commit de1325c191

@ -14,7 +14,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
os: [macos-latest, macos-13, ubuntu-latest, windows-latest]
steps:
- name: Checkout code
@ -36,13 +36,19 @@ jobs:
npx electron-builder -l --publish=always
npm run gh-linux
- name: Macos Build
- name: Macos Intel Build
if: matrix.os == 'macos-13'
run: |
curl https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_amd64 -o ffmpeg
chmod +x ffmpeg
npm i
npm run gh-mac
- name: Macos Arm Build
if: matrix.os == 'macos-latest'
run: |
curl https://evermeet.cx/ffmpeg/ffmpeg-6.0.zip -o ffmpeg.zip
unzip ffmpeg.zip
curl https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_arm64 -o ffmpeg
chmod +x ffmpeg
rm ffmpeg.zip
npm i
npm run gh-mac
@ -51,29 +57,4 @@ jobs:
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
npm run gh-windows

@ -76,7 +76,7 @@ A modern GUI video and audio downloader supporting [hundreds of sites](https://g
## Linux 🐧
Linux has several options available - Flatpak, AppImage, Snap and AUR.
Flatpak is recommended.
Flatpak is recommended. For arm processors, download from flathub.
- ### AppImage

@ -4,7 +4,7 @@
"yt-dlp-wrap-plus": "^2.3.19"
},
"name": "ytdownloader",
"version": "3.18.0",
"version": "3.18.1",
"main": "main.js",
"scripts": {
"start": "electron .",
@ -59,7 +59,7 @@
"zip",
"dmg"
],
"artifactName": "${productName}_Mac.${ext}"
"artifactName": "${productName}_Mac_${arch}.${ext}"
},
"dmg": {
"contents": [

Loading…
Cancel
Save