Adding options for mac builds

pull/33/head
aandrew-me 3 years ago
parent c96061084c
commit f81fdb9c8f

@ -39,7 +39,6 @@ Download and install the exe file. Windows defender may create problems as usual
## Linux
Linux has several options available - AppImage, Deb, Snap and flatpak.
### AppImage
**AppImage** format is supported on most Linux distros and has Auto-Update support. So it is recommended.
@ -51,8 +50,15 @@ It just needs to be executed after downloading. See more about [AppImages here](
### Debian package
For Debian based distros like Ubuntu .deb file is available. Download and run -
```
sudo dpkg -i file_name.deb
sudo dpkg -i YTDownloader.deb
```
## macOS
Since the app is not signed, when you will try to open the app, macOS will not allow you to open it. So you will need to follow some steps to open it.
1. Click on **System Preferences** on your Mac Dock.
2. Choose **Security & Privacy**
3. The app will be shown there. Click on **Open**
## Internationalization 🌍
Translations into other languages would be highly appreciated. If you want to help translating the app to other languages, you can join from [here](https://crwd.in/ytdownloader). Open a new issue and that language will be added to Crowdin.
@ -90,4 +96,8 @@ npm run linux
To build for Windows
```
npm run windows
```
To build for macOS
```
npm run mac
```

@ -3,6 +3,7 @@
# The binary will be placed in the root dir of the app
rm ffmpeg.exe
rm ffmpeg
wget "https://github.com/yt-dlp/FFmpeg-Builds/releases/latest/download/ffmpeg-n5.1-latest-linux64-gpl-5.1.tar.xz"
tar xvf ffmpeg-n5.1-latest-linux64-gpl-5.1.tar.xz
cp ffmpeg-n5.1-latest-linux64-gpl-5.1/bin/ffmpeg ffmpeg

@ -0,0 +1,10 @@
#!/bin/bash
# Script to download the latest x64 mac version of ffmpeg
# The binary will be placed in the root dir of the app
rm ffmpeg
rm ffmpeg.exe
wget https://evermeet.cx/ffmpeg/ffmpeg-5.1.1.7z
7z e ffmpeg-5.1.1.7z
chmod 777 ffmpeg
rm ffmpeg-5.1.1.7z

@ -14,8 +14,10 @@
"debug": "electron --inspect=5858 .",
"windows": "./windows.sh && electron-builder -w",
"linux": "./linux.sh && electron-builder -l",
"publish-linux": "./linux.sh && electron-builder -l --publish=always",
"publish-windows": "./windows.sh && electron-builder -w --publish=always"
"mac":"./mac.sh && electron-builder -m",
"publish-linux": "cp ../ffmpeg-bin/ffmpeg . && electron-builder -l --publish=always",
"publish-windows": "cp ../ffmpeg-bin/ffmpeg.exe . && electron-builder -w --publish=always",
"publish-mac":"cp ../ffmpeg-bin/mac/ffmpeg . && electron-builder -m --publish=always"
},
"author": {
"name": "Andrew",

Loading…
Cancel
Save